File "/mount/src/rhev-subtype-webapp/p-distance-calc.py", line 3, in <module>
from Bio import SeqIO, Align
ModuleNotFoundError: No module named 'Bio'
streamlit==1.42.2, python=3.12
Hi streamlit community. I’ve been trying to get my webapp on the community cloud for the past week but can’t for the life of me get it to run correctly. I’ve tried editing the environment.yml file to install biopython using conda and pip as well as using older versions of biopython. The webapp works perfectly in a local session. The environment.yml was created using:
conda env export --no-builds > environment.yml
The streamlit-app.py also contains a from Bio import line but does not appear to break the script. It only breaks when it tries to import Bio as part of the p-distance-calc.py script.
In general, external dependencies should be listed in a packages.txt file (see App dependencies for your Community Cloud app - Streamlit Docs). I would expect biopython to bundle mafftin the pip install… but if not, you could include the portable version in your repo and specify the path to the mafft executable using their wrapper:
ModuleNotFoundError: This app has encountered an error. The original error message is redacted to prevent data leaks. Full error details have been recorded in the logs (if you’re on Streamlit Cloud, click on ‘Manage app’ in the lower right of your app).
Traceback:
File "/mount/src/salary-prediction/advance.py", line 3, in <module>
import matplotlib.pyplot as plt
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.