Not able to install bcrypt package while deploying myapp

I’m trying to deploy a simple app which uses bcrypt app to hash the passwords. I tested it on locally and it works fine. I created a virtual env, froze the packages to create a requirements.txt and uploaded to GitHub… When I deploy this app on Streamlit Share, I repeatedly keep getting this error.

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).

I tried the same with another password hash package called passlib and ended up with similar error.

Has anyone faced such an issue? Pleae direct me and help me resolve my issue.



File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/", line 534, in _run_script
    exec(code, module.__dict__)File "/mount/src/hackathon_v1/", line 13, in <module>
    import bcrypt

Correct file name must be:


thank you, Franky1. Well spotted and such a silly mistake on my end.

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