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

streamlit run app.py -- 0 shows No module named 'minitorch' #20

Closed
zeyuanyin opened this issue Jan 27, 2022 · 3 comments
Closed

streamlit run app.py -- 0 shows No module named 'minitorch' #20

zeyuanyin opened this issue Jan 27, 2022 · 3 comments

Comments

@zeyuanyin
Copy link

I finished Task 0.1-0.4 and passed the tests.

For Task 0.5: Visualization, when run streamlit run app.py -- 0, browser shows an error:

ModuleNotFoundError: No module named 'minitorch'
Traceback:
File "/home/zeyuan/.conda/envs/torch/lib/python3.8/site-packages/streamlit/script_runner.py", line 379, in _run_script
    exec(code, module.__dict__)
File "/mnt/e/workspace/Module/Module-0/project/app.py", line 3, in <module>
    from interface.train import render_train_interface
File "/mnt/e/workspace/Module/Module-0/project/interface/train.py", line 5, in <module>
    import graph_builder
File "/mnt/e/workspace/Module/Module-0/project/graph_builder.py", line 1, in <module>
    import minitorch

How should I do to solve this problem?

@Arlaz
Copy link

Arlaz commented Feb 8, 2022

I have the same issue

@srush
Copy link
Contributor

srush commented Feb 11, 2022

You need to run streamlit in the same virtual environment that you installed minitorch (pip install -Ue . ) .

@zeyuanyin
Copy link
Author

I reinstalled the environment that works well at this time. Thanks a lot @srush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants