Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launching gui from command line fails, while tests succeed #344

Open
JuliaS92 opened this issue Sep 26, 2024 · 0 comments
Open

Launching gui from command line fails, while tests succeed #344

JuliaS92 opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JuliaS92
Copy link
Collaborator

JuliaS92 commented Sep 26, 2024

Describe the bug
I can't run the app using alphastats gui from the current development branch. I get an error on the command line:

Traceback (most recent call last):
  File "/Users/schessner/anaconda3/envs/alphastats_dev/bin/alphastats", line 5, in <module>
    from alphastats.gui.gui import run
ModuleNotFoundError: No module named 'alphastats.gui.gui'

If I run streamlit run alphastats/gui/AlphaPeptStats.py instead, the app starts, but I get ModuleNotFound errors on all pages.

File "/Users/schessner/Documents/gitrepos/alphapeptstats/alphastats/gui/AlphaPeptStats.py", line 5, in <module>
    from alphastats.gui.utils.ui_helper import (
ModuleNotFoundError: No module named 'alphastats.gui.utils'

Only if I run python -m streamlit run alphastats/gui/AlphaPeptStats.py the app runs correctly.

This fix was found via a related issue on streamlit

Important: Testing the individual pages via pytest succeeds.

To Reproduce
Do the above with the enclosed pip freeze brokenenv.txt at this commit state. I also checked older commits and this, which is prior to the recent refactoring, also does not work anymore, although it used to.

Version (please complete the following information):

  • OS: MacOS Sonoma 14.5
  • Installation Type: conda env, see pip freeze above, python 3.9
  • I also have the one-click installed version running, but this was not done right before the behaviour changed
@JuliaS92 JuliaS92 added the bug Something isn't working label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants