Impossible to import qrcode in deployed streamlit app!

If you’re creating a debugging post, please include the following info:

  1. app is deployed on Community Cloud
  2. link to the public deployed app : https://safepasswordpy-lt4szdsxkwzgaqp25tseze.streamlit.app/
  3. full text of the error message:

ModuleNotFoundError: No module named ‘qrcode’

2024-05-03 13:24:33.638 503 GET /script-health-check (10.12.127.176) 102.12ms

────────────────────── Traceback (most recent call last) ───────────────────────

/home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru
nner/script_runner.py:600 in _run_script

/mount/src/safe_password_app/Safe_password.py:5 in
2 import secrets
3 import string
4 import math
❱ 5 import qrcode
6 from qrcode.image.pil import PilImage
7 from PIL import Image
8 import io

  1. Streamlit and Python versions. 1.33 / 3.11.9
  1. fix file name typo: requirements.txt
  2. do a reboot
  3. fix new errors

Sorry about that. Thank you very much.

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