Error while deploying on streamlit cloud

this is my github repo: GitHub - Qasim1507/Bixcard-OCR: OCR business card reader app made using python and streamlit

i get the following error while deployment how do i fix this?

[ UTC ] Logs for samcomcarddb.streamlit.app/
────────────────────────────────────────────────────────────────────────────────────────
[10:12:44] :desktop_computer: Provisioning machine…
[10:12:44] :control_knobs: Preparing system…
[10:12:44] :chains: Spinning up manager process…
[10:12:45] :rocket: Starting up repository: ‘bixcard-ocr’, branch: ‘master’, main module: ‘cardreader.py’
[10:12:45] :octopus: Cloning repository…
[10:12:49] :octopus: Cloning into ‘/app/bixcard-ocr’…

[10:12:49] :octopus: Cloned repository!
[10:12:49] :octopus: Pulling code changes from Github…
[10:12:50] :package: Processing dependencies…

──────────────────────────────────────── pip ───────────────────────────────────────────

Collecting easyocr==1.3.2
Downloading easyocr-1.3.2-py3-none-any.whl (63.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.2/63.2 MB 207.0 MB/s eta 0:00:00[2023-10-27 10:12:52.056787]
Collecting numpy==1.21.6
Downloading numpy-1.21.6-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 15.7/15.7 MB 201.3 MB/s eta 0:00:00[2023-10-27 10:12:52.725339]
Collecting pandas==1.3.5
Downloading pandas-1.3.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.5/11.5 MB 205.9 MB/s eta 0:00:00[2023-10-27 10:12:53.141396]
Collecting Pillow==9.0.1
Downloading Pillow-9.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 147.6 MB/s eta 0:00:00[2023-10-27 10:12:53.721331]
Collecting pipreqs==0.4.10
Downloading pipreqs-0.4.10-py2.py3-none-any.whl (25 kB)
Collecting requests==2.26.0
Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.3/62.3 KB 167.3 MB/s eta 0:00:00[2023-10-27 10:12:53.847599]
Collecting streamlit==1.8.0
Downloading streamlit-1.8.0-py2.py3-none-any.whl (10.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 146.0 MB/s eta 0:00:00[2023-10-27 10:12:54.062832]
Collecting streamlit-option-menu==0.3.5
Downloading streamlit_option_menu-0.3.5-py3-none-any.whl (785 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 785.3/785.3 KB 206.5 MB/s eta 0:00:00[2023-10-27 10:12:54.197859]
Collecting PyYAML
Downloading PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (738 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 738.9/738.9 KB 175.4 MB/s eta 0:00:00[2023-10-27 10:12:54.371433]
Collecting scikit-image
Downloading scikit_image-0.22.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.7/14.7 MB 226.1 MB/s eta 0:00:00[2023-10-27 10:12:54.611778]
Collecting torchvision>=0.5
Downloading torchvision-0.16.0-cp39-cp39-manylinux1_x86_64.whl (6.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 142.3 MB/s eta 0:00:00[2023-10-27 10:12:54.858487]
Collecting torch
Downloading torch-2.1.0-cp39-cp39-manylinux1_x86_64.whl (670.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 670.2/670.2 MB 224.3 MB/s eta 0:00:00[2023-10-27 10:12:58.515034]
Collecting python-bidi
Downloading python_bidi-0.4.2-py2.py3-none-any.whl (30 kB)
Collecting scipy
Downloading scipy-1.11.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.6/36.6 MB 218.6 MB/s eta 0:00:00[2023-10-27 10:12:59.816552]
Collecting opencv-python
Downloading opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (61.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.7/61.7 MB 217.2 MB/s eta 0:00:00[2023-10-27 10:13:00.510352]
Collecting pytz>=2017.3
Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 KB 131.4 MB/s eta 0:00:00[2023-10-27 10:13:00.729723]
Collecting python-dateutil>=2.7.3
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 KB 220.0 MB/s eta 0:00:00[2023-10-27 10:13:00.784270]
Collecting yarg
Downloading yarg-0.1.9-py2.py3-none-any.whl (19 kB)
Collecting docopt
Downloading docopt-0.6.2.tar.gz (25 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status ‘done’
Collecting urllib3<1.27,>=1.21.1
Downloading urllib3-1.26.18-py2.py3-none-any.whl (143 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 143.8/143.8 KB 92.6 MB/s eta 0:00:00[2023-10-27 10:13:01.363704]
Collecting charset-normalizer~=2.0.0
Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 KB 143.6 MB/s eta 0:00:00[2023-10-27 10:13:01.625350]
Collecting idna<4,>=2.5
Downloading idna-3.4-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 KB 105.5 MB/s eta 0:00:00[2023-10-27 10:13:01.687792]
Collecting click>=7.0
Downloading click-8.1.7-py3-none-any.whl (97 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 KB 110.1 MB/s eta 0:00:00[2023-10-27 10:13:01.812324]
Collecting altair>=3.2.0
Downloading altair-5.1.2-py3-none-any.whl (516 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 516.2/516.2 KB 152.4 MB/s eta 0:00:00[2023-10-27 10:13:01.889887]
Collecting attrs
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 115.8 MB/s eta 0:00:00[2023-10-27 10:13:01.957278]
Collecting gitpython!=3.1.19
Downloading GitPython-3.1.40-py3-none-any.whl (190 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 190.6/190.6 KB 225.1 MB/s eta 0:00:00[2023-10-27 10:13:02.077544]
Collecting tornado>=5.0
Downloading tornado-6.3.3-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (427 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 427.7/427.7 KB 143.1 MB/s eta 0:00:00[2023-10-27 10:13:02.180600]
Collecting pympler>=0.9
Downloading Pympler-1.0.1-py3-none-any.whl (164 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 164.8/164.8 KB 140.6 MB/s eta 0:00:00[2023-10-27 10:13:02.235465]
Collecting semver
Downloading semver-3.0.2-py3-none-any.whl (17 kB)
Collecting cachetools>=4.0
Downloading cachetools-5.3.2-py3-none-any.whl (9.3 kB)
Collecting pydeck>=0.1.dev5
Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 204.6 MB/s eta 0:00:00[2023-10-27 10:13:02.439094]
Collecting packaging
Downloading packaging-23.2-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 KB 84.5 MB/s eta 0:00:00[2023-10-27 10:13:02.520410]
Collecting pyarrow
Downloading pyarrow-13.0.0-cp39-cp39-manylinux_2_28_x86_64.whl (40.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.1/40.1 MB 149.8 MB/s eta 0:00:00[2023-10-27 10:13:03.066287]
Collecting validators
Downloading validators-0.22.0-py3-none-any.whl (26 kB)
Collecting tzlocal
Downloading tzlocal-5.2-py3-none-any.whl (17 kB)
Collecting protobuf!=3.11,>=3.6.0
Downloading protobuf-4.24.4-cp37-abi3-manylinux2014_x86_64.whl (311 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 311.6/311.6 KB 141.9 MB/s eta 0:00:00[2023-10-27 10:13:03.748074]
Collecting toml
Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting watchdog
Downloading watchdog-3.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 82.1/82.1 KB 132.0 MB/s eta 0:00:00[2023-10-27 10:13:03.916953]
Collecting blinker
Downloading blinker-1.6.3-py3-none-any.whl (13 kB)
Collecting importlib-metadata>=1.4
Downloading importlib_metadata-6.8.0-py3-none-any.whl (22 kB)
Collecting jinja2
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 169.2 MB/s eta 0:00:00[2023-10-27 10:13:04.216361]
Collecting jsonschema>=3.0
Downloading jsonschema-4.19.1-py3-none-any.whl (83 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.3/83.3 KB 123.9 MB/s eta 0:00:00[2023-10-27 10:13:04.327386]
Collecting typing-extensions>=4.0.1
Downloading typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Collecting toolz
Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 KB 95.3 MB/s eta 0:00:00[2023-10-27 10:13:04.434541]
Collecting gitdb<5,>=4.0.1
Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 KB 116.7 MB/s eta 0:00:00[2023-10-27 10:13:04.536817]
Collecting zipp>=0.5
Downloading zipp-3.17.0-py3-none-any.whl (7.4 kB)
Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting nvidia-cuda-cupti-cu12==12.1.105
Downloading nvidia_cuda_cupti_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (14.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.1/14.1 MB 212.4 MB/s eta 0:00:00[2023-10-27 10:13:04.976563]
Collecting nvidia-curand-cu12==10.3.2.106
Downloading nvidia_curand_cu12-10.3.2.106-py3-none-manylinux1_x86_64.whl (56.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.5/56.5 MB 137.2 MB/s eta 0:00:00[2023-10-27 10:13:05.360638]
Collecting nvidia-cuda-runtime-cu12==12.1.105
Downloading nvidia_cuda_runtime_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (823 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 823.6/823.6 KB 173.8 MB/s eta 0:00:00[2023-10-27 10:13:05.469630]
Collecting nvidia-cusparse-cu12==12.1.0.106
Downloading nvidia_cusparse_cu12-12.1.0.106-py3-none-manylinux1_x86_64.whl (196.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 196.0/196.0 MB 223.2 MB/s eta 0:00:00[2023-10-27 10:13:06.541938]
Collecting nvidia-cublas-cu12==12.1.3.1
Downloading nvidia_cublas_cu12-12.1.3.1-py3-none-manylinux1_x86_64.whl (410.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 410.6/410.6 MB 231.6 MB/s eta 0:00:00[2023-10-27 10:13:08.881537]
Collecting triton==2.1.0
Downloading triton-2.1.0-0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (89.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.3/89.3 MB 130.1 MB/s eta 0:00:00[2023-10-27 10:13:09.904511]
Collecting fsspec
Downloading fsspec-2023.10.0-py3-none-any.whl (166 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 166.4/166.4 KB 120.8 MB/s eta 0:00:00[2023-10-27 10:13:10.081984]
Collecting nvidia-cufft-cu12==11.0.2.54
Downloading nvidia_cufft_cu12-11.0.2.54-py3-none-manylinux1_x86_64.whl (121.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.6/121.6 MB 150.3 MB/s eta 0:00:00[2023-10-27 10:13:10.935239]
Collecting nvidia-nccl-cu12==2.18.1
Downloading nvidia_nccl_cu12-2.18.1-py3-none-manylinux1_x86_64.whl (209.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 209.8/209.8 MB 178.4 MB/s eta 0:00:00[2023-10-27 10:13:12.310270]
Collecting sympy
Downloading sympy-1.12-py3-none-any.whl (5.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 139.2 MB/s eta 0:00:00[2023-10-27 10:13:12.595566]
Collecting nvidia-cusolver-cu12==11.4.5.107
Downloading nvidia_cusolver_cu12-11.4.5.107-py3-none-manylinux1_x86_64.whl (124.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 124.2/124.2 MB 146.1 MB/s eta 0:00:00[2023-10-27 10:13:13.366174]
Collecting nvidia-nvtx-cu12==12.1.105
Downloading nvidia_nvtx_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (99 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.1/99.1 KB 122.2 MB/s eta 0:00:00[2023-10-27 10:13:13.524885]
Collecting networkx
Downloading networkx-3.2-py3-none-any.whl (1.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 205.3 MB/s eta 0:00:00[2023-10-27 10:13:13.602888]
Collecting filelock
Downloading filelock-3.12.4-py3-none-any.whl (11 kB)
Collecting nvidia-cuda-nvrtc-cu12==12.1.105
Downloading nvidia_cuda_nvrtc_cu12-12.1.105-py3-none-manylinux1_x86_64.whl (23.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 23.7/23.7 MB 230.1 MB/s eta 0:00:00[2023-10-27 10:13:13.847236]
Collecting nvidia-cudnn-cu12==8.9.2.26
Downloading nvidia_cudnn_cu12-8.9.2.26-py3-none-manylinux1_x86_64.whl (731.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 731.7/731.7 MB 140.4 MB/s eta 0:00:00[2023-10-27 10:13:19.973584]
Collecting nvidia-nvjitlink-cu12
Downloading nvidia_nvjitlink_cu12-12.3.52-py3-none-manylinux1_x86_64.whl (20.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 20.5/20.5 MB 135.7 MB/s eta 0:00:00[2023-10-27 10:13:20.947329]
Collecting tifffile>=2022.8.12
Downloading tifffile-2023.9.26-py3-none-any.whl (222 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 222.9/222.9 KB 201.0 MB/s eta 0:00:00[2023-10-27 10:13:21.393371]
Collecting imageio>=2.27
Downloading imageio-2.31.6-py3-none-any.whl (313 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 313.2/313.2 KB 246.2 MB/s eta 0:00:00[2023-10-27 10:13:21.487627]
Collecting lazy_loader>=0.3
Downloading lazy_loader-0.3-py3-none-any.whl (9.1 kB)
Collecting scikit-image
Downloading scikit_image-0.21.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.8/13.8 MB 130.6 MB/s eta 0:00:00[2023-10-27 10:13:21.668862]
Collecting PyWavelets>=1.1.1
Downloading PyWavelets-1.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 135.8 MB/s eta 0:00:00[2023-10-27 10:13:21.940346]
Collecting smmap<6,>=3.0.1
Downloading smmap-5.0.1-py3-none-any.whl (24 kB)
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.10.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 143.4 MB/s eta 0:00:00[2023-10-27 10:13:22.836729]
Collecting referencing>=0.28.4
Downloading referencing-0.30.2-py3-none-any.whl (25 kB)
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting mpmath>=0.19
Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 KB 153.4 MB/s eta 0:00:00[2023-10-27 10:13:23.223381]
Building wheels for collected packages: docopt
Building wheel for docopt (setup.py): started
Building wheel for docopt (setup.py): finished with status ‘done’
Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13707 sha256=c4d3e6c25ea80504b24325a08f81507d09ca8b85600ff921e240c72d9dbb45e2
Stored in directory: /tmp/pip-ephem-wheel-cache-m6z3_c0_/wheels/70/4a/46/1309fc853b8d395e60bafaf1b6df7845bdd82c95fd59dd8d2b
Successfully built docopt
Installing collected packages: pytz, mpmath, docopt, zipp, watchdog, validators, urllib3, tzlocal, typing-extensions, tornado, toolz, toml, sympy, smmap, six, semver, rpds-py, PyYAML, pympler, protobuf, Pillow, packaging, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, numpy, networkx, MarkupSafe, lazy_loader, idna, fsspec, filelock, click, charset-normalizer, certifi, cachetools, blinker, attrs, triton, tifffile, scipy, requests, referencing, PyWavelets, python-dateutil, python-bidi, pyarrow, opencv-python, nvidia-cusparse-cu12, nvidia-cudnn-cu12, jinja2, importlib-metadata, imageio, gitdb, yarg, scikit-image, pydeck, pandas, nvidia-cusolver-cu12, jsonschema-specifications, gitpython, torch, pipreqs, jsonschema, torchvision, altair, streamlit, easyocr, streamlit-option-menu
Successfully installed MarkupSafe-2.1.3 Pillow-9.0.1 PyWavelets-1.4.1 PyYAML-6.0.1 altair-5.1.2 attrs-23.1.0 blinker-1.6.3 cachetools-5.3.2 certifi-2023.7.22 charset-normalizer-2.0.12 click-8.1.7 docopt-0.6.2 easyocr-1.3.2 filelock-3.12.4 fsspec-2023.10.0 gitdb-4.0.11 gitpython-3.1.40 idna-3.4 imageio-2.31.6 importlib-metadata-6.8.0 jinja2-3.1.2 jsonschema-4.19.1 jsonschema-specifications-2023.7.1 lazy_loader-0.3 mpmath-1.3.0 networkx-3.2 numpy-1.21.6 nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-8.9.2.26 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.18.1 nvidia-nvjitlink-cu12-12.3.52 nvidia-nvtx-cu12-12.1.105 opencv-python-4.8.1.78 packaging-23.2 pandas-1.3.5 pipreqs-0.4.10 protobuf-4.24.4 pyarrow-13.0.0 pydeck-0.8.1b0 pympler-1.0.1 python-bidi-0.4.2 python-dateutil-2.8.2 pytz-2023.3.post1 referencing-0.30.2 requests-2.26.0 rpds-py-0.10.6 scikit-image-0.21.0 scipy-1.11.3 semver-3.0.2 six-1.16.0 smmap-5.0.1 streamlit-1.8.0 streamlit-option-menu-0.3.5 sympy-1.12 tifffile-2023.9.26 toml-0.10.2 toolz-0.12.0 torch-2.1.0 torchvision-0.16.0 tornado-6.3.3 triton-2.1.0 typing-extensions-4.8.0 tzlocal-5.2 urllib3-1.26.18 validators-0.22.0 watchdog-3.0.0 yarg-0.1.9 zipp-3.17.0
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.
Checking if Streamlit is installed
Traceback (most recent call last):
File “/home/appuser/venv/bin/streamlit”, line 5, in
from streamlit.cli import main
File “/home/appuser/venv/lib/python3.9/site-packages/streamlit/init.py”, line 48, in
from streamlit.proto.RootContainer_pb2 import RootContainer
File “/home/appuser/venv/lib/python3.9/site-packages/streamlit/proto/RootContainer_pb2.py”, line 33, in
_descriptor.EnumValueDescriptor(
File “/home/appuser/venv/lib/python3.9/site-packages/google/protobuf/descriptor.py”, line 796, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: Changes announced May 6, 2022 | Protocol Buffers Documentation
Found Streamlit version in the environment
Streamlit is present which requires version 8.0.0 of the click library. Installing click 8.0.0
Collecting click==8
Downloading click-8.0.0-py3-none-any.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.9/96.9 KB 3.7 MB/s eta 0:00:00[2023-10-27 10:14:45.659819]
Installing collected packages: click
Attempting uninstall: click
Found existing installation: click 8.1.7
Uninstalling click-8.1.7:
Successfully uninstalled click-8.1.7
Successfully installed click-8.0.0
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.
Streamlit is present which requires a version of protobuf<4. Installing a compatible version of protobuf
Collecting protobuf<4,>=3.20
Downloading protobuf-3.20.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 27.7 MB/s eta 0:00:00[2023-10-27 10:14:48.288755]
Installing collected packages: protobuf
Attempting uninstall: protobuf
Found existing installation: protobuf 4.24.4
Uninstalling protobuf-4.24.4:
Successfully uninstalled protobuf-4.24.4
Successfully installed protobuf-3.20.3
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.
Streamlit is present which is incompatible with altair>=5.0.0. Installing altair 4.*
Collecting altair<5
Downloading altair-4.2.2-py3-none-any.whl (813 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 813.6/813.6 KB 27.2 MB/s eta 0:00:00[2023-10-27 10:14:50.161927]
Collecting toolz
Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 KB 156.6 MB/s eta 0:00:00[2023-10-27 10:14:50.221542]
Collecting entrypoints
Downloading entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting jsonschema>=3.0
Downloading jsonschema-4.19.1-py3-none-any.whl (83 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.3/83.3 KB 116.7 MB/s eta 0:00:00[2023-10-27 10:14:50.382530]
Collecting jinja2
Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 KB 121.0 MB/s eta 0:00:00
Collecting numpy
Downloading numpy-1.26.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 143.9 MB/s eta 0:00:00[2023-10-27 10:14:51.177105]
Collecting pandas>=0.18
Downloading pandas-2.1.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 147.1 MB/s eta 0:00:00[2023-10-27 10:14:51.650870]
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting attrs>=22.2.0
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 119.5 MB/s eta 0:00:00[2023-10-27 10:14:51.834113]
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.10.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 168.0 MB/s eta 0:00:00[2023-10-27 10:14:52.376230]
Collecting referencing>=0.28.4
Downloading referencing-0.30.2-py3-none-any.whl (25 kB)
Collecting pytz>=2020.1
Downloading pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 502.5/502.5 KB 248.1 MB/s eta 0:00:00[2023-10-27 10:14:52.690985]
Collecting python-dateutil>=2.8.2
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 KB 212.9 MB/s eta 0:00:00[2023-10-27 10:14:52.752921]
Collecting tzdata>=2022.1
Downloading tzdata-2023.3-py2.py3-none-any.whl (341 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 KB 252.7 MB/s eta 0:00:00[2023-10-27 10:14:52.802435]
Collecting MarkupSafe>=2.0
Downloading MarkupSafe-2.1.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting six>=1.5
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: pytz, tzdata, toolz, six, rpds-py, numpy, MarkupSafe, entrypoints, attrs, referencing, python-dateutil, jinja2, pandas, jsonschema-specifications, jsonschema, altair
Attempting uninstall: pytz
Found existing installation: pytz 2023.3.post1
Uninstalling pytz-2023.3.post1:
Successfully uninstalled pytz-2023.3.post1
Attempting uninstall: toolz
Found existing installation: toolz 0.12.0
Uninstalling toolz-0.12.0:
Successfully uninstalled toolz-0.12.0
Attempting uninstall: six
Found existing installation: six 1.16.0
Uninstalling six-1.16.0:
Successfully uninstalled six-1.16.0
Attempting uninstall: rpds-py
Found existing installation: rpds-py 0.10.6
Uninstalling rpds-py-0.10.6:
Successfully uninstalled rpds-py-0.10.6
Attempting uninstall: numpy
Found existing installation: numpy 1.21.6
Uninstalling numpy-1.21.6:
Successfully uninstalled numpy-1.21.6
Attempting uninstall: MarkupSafe
Found existing installation: MarkupSafe 2.1.3
Uninstalling MarkupSafe-2.1.3:
Successfully uninstalled MarkupSafe-2.1.3
Attempting uninstall: attrs
Found existing installation: attrs 23.1.0
Uninstalling attrs-23.1.0:
Successfully uninstalled attrs-23.1.0
Attempting uninstall: referencing
Found existing installation: referencing 0.30.2
Uninstalling referencing-0.30.2:
Successfully uninstalled referencing-0.30.2
Attempting uninstall: python-dateutil
Found existing installation: python-dateutil 2.8.2
Uninstalling python-dateutil-2.8.2:
Successfully uninstalled python-dateutil-2.8.2
Attempting uninstall: jinja2
Found existing installation: Jinja2 3.1.2
Uninstalling Jinja2-3.1.2:
Successfully uninstalled Jinja2-3.1.2
Attempting uninstall: pandas
Found existing installation: pandas 1.3.5
Uninstalling pandas-1.3.5:
Successfully uninstalled pandas-1.3.5
Attempting uninstall: jsonschema-specifications
Found existing installation: jsonschema-specifications 2023.7.1
Uninstalling jsonschema-specifications-2023.7.1:
Successfully uninstalled jsonschema-specifications-2023.7.1
Attempting uninstall: jsonschema
Found existing installation: jsonschema 4.19.1
Uninstalling jsonschema-4.19.1:
Successfully uninstalled jsonschema-4.19.1
Attempting uninstall: altair
Found existing installation: altair 5.1.2
Uninstalling altair-5.1.2:
Successfully uninstalled altair-5.1.2
Successfully installed MarkupSafe-2.1.3 altair-4.2.2 attrs-23.1.0 entrypoints-0.4 jinja2-3.1.2 jsonschema-4.19.1 jsonschema-specifications-2023.7.1 numpy-1.26.1 pandas-2.1.2 python-dateutil-2.8.2 pytz-2023.3.post1 referencing-0.30.2 rpds-py-0.10.6 six-1.16.0 toolz-0.12.0 tzdata-2023.3
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.
Streamlit is present which is incompatible with jsonschema>=4.18.1. Installing jsonschema 4.18.0
Collecting jsonschema==4.18.0
Downloading jsonschema-4.18.0-py3-none-any.whl (81 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 81.5/81.5 KB 6.0 MB/s eta 0:00:00[2023-10-27 10:15:05.786574]
Collecting jsonschema-specifications>=2023.03.6
Downloading jsonschema_specifications-2023.7.1-py3-none-any.whl (17 kB)
Collecting referencing>=0.28.4
Downloading referencing-0.30.2-py3-none-any.whl (25 kB)
Collecting attrs>=22.2.0
Downloading attrs-23.1.0-py3-none-any.whl (61 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 156.6 MB/s eta 0:00:00[2023-10-27 10:15:05.978145]
Collecting rpds-py>=0.7.1
Downloading rpds_py-0.10.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 58.9 MB/s eta 0:00:00[2023-10-27 10:15:06.386564]
Installing collected packages: rpds-py, attrs, referencing, jsonschema-specifications, jsonschema
Attempting uninstall: rpds-py
Found existing installation: rpds-py 0.10.6
Uninstalling rpds-py-0.10.6:
Successfully uninstalled rpds-py-0.10.6
Attempting uninstall: attrs
Found existing installation: attrs 23.1.0
Uninstalling attrs-23.1.0:
Successfully uninstalled attrs-23.1.0
Attempting uninstall: referencing
Found existing installation: referencing 0.30.2
Uninstalling referencing-0.30.2:
Successfully uninstalled referencing-0.30.2
Attempting uninstall: jsonschema-specifications
Found existing installation: jsonschema-specifications 2023.7.1
Uninstalling jsonschema-specifications-2023.7.1:
Successfully uninstalled jsonschema-specifications-2023.7.1
Attempting uninstall: jsonschema
Found existing installation: jsonschema 4.19.1
Uninstalling jsonschema-4.19.1:
Successfully uninstalled jsonschema-4.19.1
Successfully installed attrs-23.1.0 jsonschema-4.18.0 jsonschema-specifications-2023.7.1 referencing-0.30.2 rpds-py-0.10.6
WARNING: You are using pip version 22.0.3; however, version 23.3.1 is available.
You should consider upgrading via the ‘/home/appuser/venv/bin/python -m pip install --upgrade pip’ command.

────────────────────────────────────────────────────────────────────────────────────────

[10:15:08] :snake: Python dependencies were installed from /app/bixcard-ocr/requirements.txt using pip.
Check if streamlit is installed
Streamlit is already installed
[10:15:09] :package: Processed dependencies!

2023-10-27 10:15:29.048 Uncaught app exception
Traceback (most recent call last):
File “/home/appuser/venv/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py”, line 443, in _run_script
exec(code, module.dict)
File “/app/bixcard-ocr/cardreader.py”, line 5, in
import easyocr
File “/home/appuser/venv/lib/python3.9/site-packages/easyocr/init.py”, line 1, in
from .easyocr import Reader
File “/home/appuser/venv/lib/python3.9/site-packages/easyocr/easyocr.py”, line 3, in
from .detection import get_detector, get_textbox
File “/home/appuser/venv/lib/python3.9/site-packages/easyocr/detection.py”, line 7, in
import cv2
File “/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”)
File “/usr/local/lib/python3.9/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

You probably need some additional binaries in a packages.txt file:

libgl1

because one of your libraries seems to have a dependency to opencv-python which unfortunately is the non-headless version of opencv.


The cause is easyocr==1.3.2 which enforces opencv-python in the non-headless version. Any reason why you use this rather old version (> 2 years behind) of easyocr? The newer versions have fixed this dependency.

thanks alot ive fixed the issue!!

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