My app has a module that I have had to configure using PYTHONPATH on my local machine. How do i do this on streamlit cloud?
Directory structure
root/package_folder/streamlit_main.py
root/my_package (folder)
root/my_package2 (folder)
streamlit_run root/package_folder/streamlit_main.py
Importing in streamlit_main.py
from my_package… import something
from my_package2 … import something
When i run the app, i am getting an error that my_package is not found
1 Like
Hi @Megheg694,
Right now, we don’t support PYTHONPATH. Instead, we would recommend moving streamlit_main.py into your root folder.
I hope that helps.
Thanks,
Charly
swati
3
streamlit is showing this error
need help
Github respository link:GitHub - swati-2424/irisflower.py
Could you please rename the file “requirements (1).txt” to “requirements.txt”?
Also, make sure to install the correct version of matplotlib. That should hopefully solve the issue.
Let me know.
Best,
Charly
1 Like
swati
5
thank you so much …its working now
1 Like
system
Closed
7
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.