Cv2 error in deploying app

ImportError: 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).
Traceback:
File “/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 565, in _run_script
exec(code, module.dict)File “/app/file-tracking-and-workflow-management/app.py”, line 4, in
import cv2File “/home/appuser/venv/lib/python3.9/site-packages/cv2/init.py”, line 181, in
bootstrap()File “/home/appuser/venv/lib/python3.9/site-packages/cv2/init.py”, line 153, in bootstrap
native_module = importlib.import_module(“cv2”)


here is the link to my git repo "https://github.com/Code-beauty/FILE-TRACKING-AND-WORKFLOW-MANAGEMENT"

Hey @Tayyaba_Shaikh :wave:

You can simply remove opencv-python and datetime packages from the requirements.txt file on the lines 7 and 8.

Hope this helps! :smiley:

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