Streamlit not recognising PyTransit

Hi, I’m getting errors with PyTransit when I try to deploy my app on the web browser.
Here is my app’s public GitHub repository: GitHub - Elena-Davies/A-Level-Transit-Workshop
Here is the full error:

File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 565, in _run_script
    exec(code, module.__dict__)File "/mount/src/a-level-transit-workshop/pages/", line 6, in <module>
    import pytransitFile "/home/adminuser/venv/lib/python3.9/site-packages/pytransit/", line 56, in <module>
    from .models.transitmodel import TransitModelFile "/home/adminuser/venv/lib/python3.9/site-packages/pytransit/models/", line 19, in <module>
    from .roadrunner.opmodel import OblatePlanetModel

Here is the Streamlit web app:

Thank you.

My guess is that the package name is PyTransit, not pytransit.

Bad guess, TIL PyPI is case insensitive.

You forgot to include the actual error message.

Thanks for your reply. I tried this but get the error

ModuleNotFoundError: No module named 'PyTransit'

so I think it prefers pytransit.

Seems to work now!?

Yes, I updated the requirements file and it seems to be working now

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