Riskfolio module not found when launching Streamlit - works from command

Summary

When I try to run this .py using “streamlit run app.py” I get the following error saying the module does not exist but when I run it locally the .py works ok. I also do have the module installed as the app can run ok, with no problems from editor.


Please can you tell me how to fix it?

Steps to reproduce

Code snippet:

add code here

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

Explain what you expect to happen when you run the code above.

Actual behavior:

Explain the undesired behavior or error you see when you run the code above.
If you’re seeing an error message, share the full contents of the error message here.

Debug info

  • Streamlit version: (get it with $ streamlit version)
  • Python version: (get it with $ python --version)
  • Using Conda? PipEnv? PyEnv? Pex?
  • OS version:
  • Browser version:

Requirements file

Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.

Links

  • Link to your GitHub repo:
  • Link to your deployed app:

Additional information

If needed, add any other context about the problem here.

Can you share the contents of your requirements.txt file?

Also, are you using a virtual environment for your local development?

Hi Tony managed to solve this. Not using a requirement text file as it is run locally in my IDE for now.
What happened is the .py first launched on the conda base then went on to my conda environment. Conda environment had the module but not the base env and that created the error. Now pip installed the library on both base and env works great as usual. Thanks for the help!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.