Deployment issue on Streamlit, which continues to display 'No module named cryptography'

I’ve been facing errors for days. I’ve done everything possible— all dependencies are in the requirements.txt file. I also tried installing the cryptography module in GitHub Codespaces, created a new branch, and even set up a new repository several times, but the errors persist. It’s really frustrating.

Kindly help me, please!

link to the public app: https://securevaults-by-drridwan.streamlit.app/

link to my github repo: GitHub - dr-ridwanoladipo/SecurePassVault: A robust Secure Password Manager using Streamlit and Python. Features include password generation, encryption, and secure storage. Implemented user authentication, search functionality, and entry deletion. Utilized Fernet encryption and SHA-256 hashing for enhanced security. Designed with a user-friendly interface and responsive layout.

Error Message:

ModuleNotFoundError: No module named 'cryptography'

Traceback:

Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
  File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
  File "/mount/src/securepassvault/password_manager.py", line 7, in <module>
    from cryptography.fernet import Fernet

Repeated Events:

2024-09-18 04:35:28.441 503 GET /script-health-check (127.0.0.1) 102.28ms
2024-09-18 04:35:33.406 503 GET /script-health-check (127.0.0.1) 102.31ms

I can’t see a requirements file in your repo.

thanks so much for your quick response. it’s there:

cryptography==43.0.1
streamlit==1.38.0

Where?

There seems to be an attempt to add a requirements file in new-branch, but the file name is misspelled.

Oh thanks so much. I corrected it and it worked.

thanks!!!

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