# Cv2 module error

**URL:** <https://discuss.streamlit.io/t/cv2-module-error/64614>\
**Category:** Community Cloud\
**Tags:** opencv, streamlit-cloud, debugging\
**Created:** [March 13, 2024, 10:05am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614 "2024-03-13T10:05:58Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 10:05am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/1 "2024-03-13T10:05:58Z")

</div>

even after adding all this in requirements.txt , it shows error  
numpy  
opencv-python-headless  
cmake==3.28.0  
dlib==19.22.0  
pandas  
streamlit==1.28.1  
face\_recognition==1.3.0  
Pillow==8.4.0  
cvzone  
pytz  
Error: ```  
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script\_runner.py”, line 542, in \_run\_script  
exec(code, module. **dict** )File “/mount/src/faceattendance/attendance.py”, line 1, in   
import cv2

```auto
Help me resolve this issue

GitHub: https://github.com/KamaljeethAnand/FaceAttendance
App: https://faceattendancekamal.streamlit.app/
```

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 13, 2024, 11:00am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/2 "2024-03-13T11:00:35Z")

</div>

I get a different traceback when running your application:

```x
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
    exec(code, module. __dict__ )
File "/mount/src/faceattendance/attendance.py", line 8, in <module>
    import face_recognition

```

Which suggests that `face_recognition` was not installed for some reason. Search for messages related to `face_recognition` in the logs to find out why this happened.

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 13, 2024, 11:01am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/3 "2024-03-13T11:01:58Z")

</div>

> [@KamaljeethAnand](#):
>
> even after adding all this in requirements.txt

There doesn’t seem to be a `requirements.txt` in your repository.

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 11:16am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/4 "2024-03-13T11:16:53Z")

</div>

Thanks for reply. I changed to yml file to try it with conda.  
Now im getting face\_recognition module error , if possible can u check with it please

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 11:19am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/5 "2024-03-13T11:19:21Z")

</div>

Im seeing very old posts which suggests that its the RAM issue , but I have seen many streamlit apps that have used face\_recognition module . Can you please help me with that. I have replaced requirements.txt file to conda.yml file so that it runs on conda instead of pip. What else am I missing that it is not recognising the module

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 13, 2024, 11:31am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/6 "2024-03-13T11:31:13Z")

</div>

A RAM issue doesn’t manifest itself as a `ModuleNotFoundError`.

I can’t speak conda, but I suppose the same advice applies. Attempts to install `face_recognition` must have been logged. If your logs are already too crowded with messages, reboot the application to start anew.

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 11:38am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/7 "2024-03-13T11:38:22Z")

</div>

```auto
Check if streamlit is installed

```

```auto

```

```auto
──────────────────────────────── Installing Streamlit ──────────────────────────────────

```

```auto

```

```auto
Collecting streamlit

```

```auto
  Downloading streamlit-1.32.1-py2.py3-none-any.whl (8.1 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.1/8.1 MB 37.7 MB/s eta 0:00:00[2024-03-13 11:34:50.524639] 

```

```auto
Collecting pydeck<1,>=0.8.0b4

```

```auto
  Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 39.2 MB/s eta 0:00:00[2024-03-13 11:34:51.072952] 

```

```auto
Collecting tornado<7,>=6.0.3

```

```auto
  Downloading tornado-6.4-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (435 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 435.4/435.4 KB 142.8 MB/s eta 0:00:00[2024-03-13 11:34:51.385873] 

```

```auto
Collecting altair<6,>=4.0

```

```auto
  Downloading altair-5.2.0-py3-none-any.whl (996 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 996.9/996.9 KB 53.8 MB/s eta 0:00:00

```

```auto
Collecting blinker<2,>=1.0.0

```

```auto
  Downloading blinker-1.7.0-py3-none-any.whl (13 kB)

```

```auto
Collecting gitpython!=3.1.19,<4,>=3.0.7

```

```auto
  Downloading GitPython-3.1.42-py3-none-any.whl (195 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.4/195.4 KB 19.6 MB/s eta 0:00:00

```

```auto
Collecting cachetools<6,>=4.0

```

```auto
  Downloading cachetools-5.3.3-py3-none-any.whl (9.3 kB)

```

```auto
Collecting click<9,>=7.0

```

```auto
  Downloading click-8.1.7-py3-none-any.whl (97 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 KB 135.8 MB/s eta 0:00:00[2024-03-13 11:34:53.414074] 

```

```auto
Collecting rich<14,>=10.14.0

```

```auto
  Downloading rich-13.7.1-py3-none-any.whl (240 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 240.7/240.7 KB 115.0 MB/s eta 0:00:00

```

```auto
Collecting typing-extensions<5,>=4.3.0

```

```auto
  Downloading typing_extensions-4.10.0-py3-none-any.whl (33 kB)

```

```auto
Collecting toml<2,>=0.10.1

```

```auto
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)

```

```auto
Collecting pandas<3,>=1.3.0

```

```auto
  Downloading pandas-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.0/13.0 MB 96.0 MB/s eta 0:00:00[2024-03-13 11:34:55.131386] 

```

```auto
Collecting watchdog>=2.1.5

```

```auto
  Downloading watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.0/83.0 KB 145.3 MB/s eta 0:00:00[2024-03-13 11:34:55.634097] 

```

```auto
Collecting numpy<2,>=1.19.3

```

```auto
  Downloading numpy-1.26.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 24.0 MB/s eta 0:00:00[2024-03-13 11:34:58.034699] 

```

```auto
Collecting pillow<11,>=7.1.0

```

```auto
  Downloading pillow-10.2.0-cp39-cp39-manylinux_2_28_x86_64.whl (4.5 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 42.3 MB/s eta 0:00:00[2024-03-13 11:34:59.900895] 

```

```auto
Collecting protobuf<5,>=3.20

```

```auto
  Downloading protobuf-4.25.3-cp37-abi3-manylinux2014_x86_64.whl (294 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.6/294.6 KB 138.8 MB/s eta 0:00:00

```

```auto
Collecting packaging<24,>=16.8

```

```auto
  Downloading packaging-23.2-py3-none-any.whl (53 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 KB 123.5 MB/s eta 0:00:00

```

```auto
Collecting requests<3,>=2.27

```

```auto
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 KB 136.5 MB/s eta 0:00:00[2024-03-13 11:35:02.149062] 

```

```auto
Collecting tenacity<9,>=8.1.0

```

```auto
  Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)

```

```auto
Collecting pyarrow>=7.0

```

```auto
  Downloading pyarrow-15.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (38.3 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.3/38.3 MB 29.6 MB/s eta 0:00:00[2024-03-13 11:35:04.601116] 

```

```auto
Collecting jinja2

```

```auto
  Downloading Jinja2-3.1.3-py3-none-any.whl (133 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.2/133.2 KB 119.5 MB/s eta 0:00:00[2024-03-13 11:35:05.197223] 

```

```auto
Collecting toolz

```

```auto
  Downloading toolz-0.12.1-py3-none-any.whl (56 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.1/56.1 KB 116.0 MB/s eta 0:00:00[2024-03-13 11:35:05.347909] 

```

```auto
Collecting jsonschema>=3.0

```

```auto
  Downloading jsonschema-4.21.1-py3-none-any.whl (85 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.5/85.5 KB 135.4 MB/s eta 0:00:00[2024-03-13 11:35:05.822344] 

```

```auto
Collecting gitdb<5,>=4.0.1

```

```auto
  Downloading gitdb-4.0.11-py3-none-any.whl (62 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.7/62.7 KB 116.7 MB/s eta 0:00:00[2024-03-13 11:35:06.053986] 

```

```auto
Collecting python-dateutil>=2.8.2

```

```auto
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 KB 81.5 MB/s eta 0:00:00[2024-03-13 11:35:06.606222] 

```

```auto
Collecting tzdata>=2022.7

```

```auto
  Downloading tzdata-2024.1-py2.py3-none-any.whl (345 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 345.4/345.4 KB 150.8 MB/s eta 0:00:00

```

```auto
Collecting pytz>=2020.1

```

```auto
  Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 505.5/505.5 KB 157.4 MB/s eta 0:00:00[2024-03-13 11:35:07.783198] 

```

```auto
Collecting certifi>=2017.4.17

```

```auto
  Downloading certifi-2024.2.2-py3-none-any.whl (163 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 163.8/163.8 KB 164.9 MB/s eta 0:00:00

```

```auto
Collecting urllib3<3,>=1.21.1

```

```auto
  Downloading urllib3-2.2.1-py3-none-any.whl (121 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 121.1/121.1 KB 80.2 MB/s eta 0:00:00[2024-03-13 11:35:08.911821] 

```

```auto
Collecting idna<4,>=2.5

```

```auto
  Downloading idna-3.6-py3-none-any.whl (61 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.6/61.6 KB 102.5 MB/s eta 0:00:00

```

```auto
Collecting charset-normalizer<4,>=2

```

```auto
  Downloading charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (142 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 142.3/142.3 KB 18.4 MB/s eta 0:00:00[2024-03-13 11:35:09.744147] 

```

```auto
Collecting pygments<3.0.0,>=2.13.0

```

```auto
  Downloading pygments-2.17.2-py3-none-any.whl (1.2 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 50.1 MB/s eta 0:00:00[2024-03-13 11:35:10.156854] 

```

```auto
Collecting markdown-it-py>=2.2.0

```

```auto
  Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 KB 119.5 MB/s eta 0:00:00[2024-03-13 11:35:10.321979] 

```

```auto
Collecting smmap<6,>=3.0.1

```

```auto
  Downloading smmap-5.0.1-py3-none-any.whl (24 kB)

```

```auto
Collecting MarkupSafe>=2.0

```

```auto
  Downloading MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)

```

```auto
Collecting jsonschema-specifications>=2023.03.6

```

```auto
  Downloading jsonschema_specifications-2023.12.1-py3-none-any.whl (18 kB)

```

```auto
Collecting rpds-py>=0.7.1

```

```auto
  Downloading rpds_py-0.18.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 60.2 MB/s eta 0:00:00[2024-03-13 11:35:14.910085] 

```

```auto
Collecting attrs>=22.2.0

```

```auto
  Downloading attrs-23.2.0-py3-none-any.whl (60 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.8/60.8 KB 115.2 MB/s eta 0:00:00[2024-03-13 11:35:15.089028] 

```

```auto
Collecting referencing>=0.28.4

```

```auto
  Downloading referencing-0.33.0-py3-none-any.whl (26 kB)

```

```auto
Collecting mdurl~=0.1

```

```auto
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)

```

```auto
Collecting six>=1.5

```

```auto
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)

```

```auto
Installing collected packages: pytz, watchdog, urllib3, tzdata, typing-extensions, tornado, toolz, toml, tenacity, smmap, six, rpds-py, pygments, protobuf, pillow, packaging, numpy, mdurl, MarkupSafe, idna, click, charset-normalizer, certifi, cachetools, blinker, attrs, requests, referencing, python-dateutil, pyarrow, markdown-it-py, jinja2, gitdb, rich, pydeck, pandas, jsonschema-specifications, gitpython, jsonschema, altair, streamlit

```

```auto
Successfully installed MarkupSafe-2.1.5 altair-5.2.0 attrs-23.2.0 blinker-1.7.0 cachetools-5.3.3 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 gitdb-4.0.11 gitpython-3.1.42 idna-3.6 jinja2-3.1.3 jsonschema-4.21.1 jsonschema-specifications-2023.12.1 markdown-it-py-3.0.0 mdurl-0.1.2 numpy-1.26.4 packaging-23.2 pandas-2.2.1 pillow-10.2.0 protobuf-4.25.3 pyarrow-15.0.1 pydeck-0.8.1b0 pygments-2.17.2 python-dateutil-2.9.0.post0 pytz-2024.1 referencing-0.33.0 requests-2.31.0 rich-13.7.1 rpds-py-0.18.0 six-1.16.0 smmap-5.0.1 streamlit-1.32.1 tenacity-8.2.3 toml-0.10.2 toolz-0.12.1 tornado-6.4 typing-extensions-4.10.0 tzdata-2024.1 urllib3-2.2.1 watchdog-4.0.0

```

```auto
WARNING: You are using pip version 22.0.3; however, version 24.0 is available.

```

```auto
You should consider upgrading via the '/home/adminuser/venv/bin/python -m pip install --upgrade pip' command.

```

```auto

```

```auto
────────────────────────────────────────────────────────────────────────────────────────

```

```auto

```

```auto
[11:36:19] 📦 Processed dependencies!

```

```auto

```

```auto

```

```auto

```

```auto
2024-03-13 11:36:47.776 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 13, 2024, 11:45am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/8 "2024-03-13T11:45:11Z")

</div>

So streamlit cloud is ignoring your `conda.yml`. Again, I can’t speak conda so I don’t know what the expected behavior is here. You may want to recheck the docs.

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 11:46am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/9 "2024-03-13T11:46:33Z")

</div>

tried with below in conda.yml file  
face\_recognition @ git+https://github.com/thetoby9944/face\_recognition

still same error … it looks like, its not getting installed so it shows this error

```auto
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
    exec(code, module. __dict__ )File "/mount/src/faceattendance/attendance.py", line 8, in <module>
    import face_recognition

```

Im not understanding why its not getting installed and what is missing …

Also I just renamed the requirements.txt to conda.yml file , no other change in the contents … is it wrong way of providing the yml file ??

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 11:50am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/10 "2024-03-13T11:50:58Z")

</div>

i changed the conda.yml to requirements.txt and now the logs are different:

```auto
[11:47:02] 📦 Processing dependencies...

```

```auto
[11:47:02] 📦 Apt dependencies were installed from /mount/src/faceattendance/packages.txt using apt-get.

```

```auto
2024-03-13 11:47:02.470 503 GET /script-health-check (10.12.108.72) 856.40ms

```

```auto

```

```auto
──────────────────────────────────────── pip ───────────────────────────────────────────

```

```auto

```

```auto
Collecting face_recognition@ git+https://github.com/thetoby9944/face_recognition

```

```auto
  Cloning https://github.com/thetoby9944/face_recognition to /tmp/pip-install-vpa3i7c6/face-recognition_fdb00c8d63fe42aaa6bb5e73edcabccb

```

```auto
  Running command git clone --filter=blob:none --quiet https://github.com/thetoby9944/face_recognition /tmp/pip-install-vpa3i7c6/face-recognition_fdb00c8d63fe42aaa6bb5e73edcabccb

```

```auto
2024-03-13 11:47:08.016 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:08.412 503 GET /script-health-check (10.12.108.72) 397.92ms

```

```auto
  Resolved https://github.com/thetoby9944/face_recognition to commit d632e2e8d5b5b286d944c333f3ff4433dafabb19

```

```auto
  Installing build dependencies: started

```

```auto
2024-03-13 11:47:13.414 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:14.026 503 GET /script-health-check (10.12.108.72) 624.31ms

```

```auto
2024-03-13 11:47:17.484 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:17.972 503 GET /script-health-check (10.12.108.72) 494.16ms

```

```auto
2024-03-13 11:47:21.691 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:23.257 503 GET /script-health-check (10.12.108.72) 1568.40ms

```

```auto
2024-03-13 11:47:28.074 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:28.081 503 GET /script-health-check (10.12.108.72) 10.03ms

```

```auto
  Installing build dependencies: finished with status 'done'

```

```auto
  Getting requirements to build wheel: started

```

```auto
  Getting requirements to build wheel: finished with status 'done'

```

```auto
  Preparing metadata (pyproject.toml): started

```

```auto
2024-03-13 11:47:32.783 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:32.858 503 GET /script-health-check (10.12.108.72) 90.83ms

```

```auto
  Preparing metadata (pyproject.toml): finished with status 'done'

```

```auto
Collecting numpy

```

```auto
  Downloading numpy-1.26.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 17.7 MB/s eta 0:00:00[2024-03-13 11:47:37.338312] 

```

```auto
Collecting dlib==19.22.0

```

```auto
  Downloading dlib-19.22.0.tar.gz (7.4 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.4/7.4 MB 24.5 MB/s eta 0:00:00[2024-03-13 11:47:38.103733] 

```

```auto
2024-03-13 11:47:38.466 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:38.728 503 GET /script-health-check (10.12.108.72) 265.72ms

```

```auto
  Preparing metadata (setup.py): started

```

```auto
2024-03-13 11:47:43.337 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:43.537 503 GET /script-health-check (10.12.108.72) 202.93ms

```

```auto
  Preparing metadata (setup.py): finished with status 'done'

```

```auto
Collecting streamlit==1.28.1

```

```auto
  Downloading streamlit-1.28.1-py2.py3-none-any.whl (8.4 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.4/8.4 MB 41.9 MB/s eta 0:00:00

```

```auto
2024-03-13 11:47:48.852 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:49.269 503 GET /script-health-check (10.12.108.72) 418.73ms

```

```auto
Collecting Pillow==8.4.0

```

```auto
  Downloading Pillow-8.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.1/3.1 MB 52.8 MB/s eta 0:00:00[2024-03-13 11:47:49.476384] 

```

```auto
Collecting cvzone

```

```auto
  Downloading cvzone-1.6.1.tar.gz (25 kB)

```

```auto
  Preparing metadata (setup.py): started

```

```auto
  Preparing metadata (setup.py): finished with status 'done'

```

```auto
Collecting pytz

```

```auto
  Downloading pytz-2024.1-py2.py3-none-any.whl (505 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 505.5/505.5 KB 19.9 MB/s eta 0:00:00[2024-03-13 11:47:50.874187] 

```

```auto
2024-03-13 11:47:53.458 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:47:53.655 503 GET /script-health-check (10.12.108.72) 201.08ms

```

```auto
Collecting protobuf<5,>=3.20

```

```auto
  Downloading protobuf-4.25.3-cp37-abi3-manylinux2014_x86_64.whl (294 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 294.6/294.6 KB 132.1 MB/s eta 0:00:00

```

```auto
Collecting tornado<7,>=6.0.3

```

```auto
  Downloading tornado-6.4-cp38-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (435 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 435.4/435.4 KB 134.7 MB/s eta 0:00:00[2024-03-13 11:47:54.672592] 

```

```auto
Collecting typing-extensions<5,>=4.3.0

```

```auto
  Downloading typing_extensions-4.10.0-py3-none-any.whl (33 kB)

```

```auto
Collecting blinker<2,>=1.0.0

```

```auto
  Downloading blinker-1.7.0-py3-none-any.whl (13 kB)

```

```auto
Collecting altair<6,>=4.0

```

```auto
  Downloading altair-5.2.0-py3-none-any.whl (996 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 996.9/996.9 KB 89.5 MB/s eta 0:00:00[2024-03-13 11:47:55.002374] 

```

```auto
Collecting tzlocal<6,>=1.1

```

```auto
  Downloading tzlocal-5.2-py3-none-any.whl (17 kB)

```

```auto
Collecting python-dateutil<3,>=2.7.3

```

```auto
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 KB 40.5 MB/s eta 0:00:00[2024-03-13 11:47:55.390991] 

```

```auto
Collecting cachetools<6,>=4.0

```

```auto
  Downloading cachetools-5.3.3-py3-none-any.whl (9.3 kB)

```

```auto
Collecting requests<3,>=2.27

```

```auto
  Downloading requests-2.31.0-py3-none-any.whl (62 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.6/62.6 KB 109.3 MB/s eta 0:00:00[2024-03-13 11:47:56.296250] 

```

```auto
Collecting validators<1,>=0.2

```

```auto
  Downloading validators-0.22.0-py3-none-any.whl (26 kB)

```

```auto
Collecting pydeck<1,>=0.8.0b4

```

```auto
  Downloading pydeck-0.8.1b0-py2.py3-none-any.whl (4.8 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 18.8 MB/s eta 0:00:00[2024-03-13 11:47:57.159219] 

```

```auto
Collecting tenacity<9,>=8.1.0

```

```auto
  Downloading tenacity-8.2.3-py3-none-any.whl (24 kB)

```

```auto
Collecting click<9,>=7.0

```

```auto
  Downloading click-8.1.7-py3-none-any.whl (97 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.9/97.9 KB 130.0 MB/s eta 0:00:00

```

```auto
2024-03-13 11:47:57.851 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
Collecting gitpython!=3.1.19,<4,>=3.0.7

```

```auto
  Downloading GitPython-3.1.42-py3-none-any.whl (195 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 195.4/195.4 KB 131.4 MB/s eta 0:00:00

```

```auto
2024-03-13 11:47:58.746 503 GET /script-health-check (10.12.108.72) 897.88ms

```

```auto
Collecting watchdog>=2.1.5

```

```auto
  Downloading watchdog-4.0.0-py3-none-manylinux2014_x86_64.whl (82 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.0/83.0 KB 111.0 MB/s eta 0:00:00[2024-03-13 11:47:59.319299] 

```

```auto
Collecting rich<14,>=10.14.0

```

```auto
  Downloading rich-13.7.1-py3-none-any.whl (240 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 240.7/240.7 KB 132.0 MB/s eta 0:00:00[2024-03-13 11:47:59.835155] 

```

```auto
Collecting pyarrow>=6.0

```

```auto
  Downloading pyarrow-15.0.1-cp39-cp39-manylinux_2_28_x86_64.whl (38.3 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 38.3/38.3 MB 33.3 MB/s eta 0:00:00

```

```auto
2024-03-13 11:48:03.379 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:48:04.006 503 GET /script-health-check (10.12.108.72) 632.45ms

```

```auto
Collecting pandas<3,>=1.3.0

```

```auto
  Downloading pandas-2.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.0 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.0/13.0 MB 39.5 MB/s eta 0:00:00

```

```auto
Collecting packaging<24,>=16.8

```

```auto
  Downloading packaging-23.2-py3-none-any.whl (53 kB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 KB 147.4 MB/s eta 0:00:00

```

```auto
Collecting toml<2,>=0.10.1

```

```auto
  Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)

```

```auto
Collecting importlib-metadata<7,>=1.4

```

```auto
  Downloading importlib_metadata-6.11.0-py3-none-any.whl (23 kB)

```

```auto
2024-03-13 11:48:08.437 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
Collecting opencv-python

```

```auto
  Downloading opencv_python-4.9.0.80-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (62.2 MB)

```

```auto
2024-03-13 11:48:09.040 503 GET /script-health-check (10.12.108.72) 615.69ms

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.2/62.2 MB 124.2 MB/s eta 0:00:00

```

```auto
Collecting dlib-bin

```

```auto
  Downloading dlib_bin-19.24.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.6 MB)

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 31.0 MB/s eta 0:00:00[2024-03-13 11:48:10.378702] 

```

```auto
Collecting face-recognition-models>=0.3.0

```

```auto
  Downloading face_recognition_models-0.3.0.tar.gz (100.1 MB)

```

```auto
2024-03-13 11:48:11.688 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 8, in <module>

```

```auto
    import face_recognition

```

```auto
ModuleNotFoundError: No module named 'face_recognition'

```

```auto
2024-03-13 11:48:11.689 503 GET /script-health-check (10.12.108.72) 4.14ms

```

```auto
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.1/100.1 MB 139.2 MB/s eta 0:00:00[2024-03-13 11:48:13.829832] 

```

```auto
2024-03-13 11:48:18.301 Uncaught app exception

```

---

<div class="post-metadata">

**Author:** ![Guna\_Sekhar\_Venkata](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/guna_sekhar_venkata/32/44735_2.png) [@Guna\_Sekhar\_Venkata](https://discuss.streamlit.io/u/Guna_Sekhar_Venkata)\
**Post date:** [March 13, 2024, 12:47pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/11 "2024-03-13T12:47:00Z")

</div>

Hi @KamaljeethAnand . Have you mentioned face\_recognition dependency in `requirements.txt`???

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 12:55pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/12 "2024-03-13T12:55:41Z")

</div>

i was able to successfully get rid of that error by using  
face\_recognition @ git+https://github.com/thetoby9944/face\_recognition  
in requirements.txt file. But now i have dlib build error

```auto
Building wheels for collected packages: dlib, cvzone, face_recognition, face-recognition-models

```

```auto
  Building wheel for dlib (setup.py): started

```

```auto
  Building wheel for dlib (setup.py): still running...

```

its stuck at this point for a long long time … will upload the log after this if it happens to show

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 1:23pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/13 "2024-03-13T13:23:52Z")

</div>

```auto
Building wheels for collected packages: dlib, cvzone, face_recognition, face-recognition-models

```

```auto
  Building wheel for dlib (setup.py): started

```

```auto
  Building wheel for dlib (setup.py): still running...

```

```auto
  Building wheel for dlib (setup.py): still running...

```

```auto
  Building wheel for dlib (setup.py): still running...

```

```auto
  Building wheel for dlib (setup.py): still running...

```

```auto
  Building wheel for dlib (setup.py): still running...

```

```auto
  Building wheel for dlib (setup.py): still running...

```

```auto
  Building wheel for dlib (setup.py): finished with status 'error'

```

```auto
  error: subprocess-exited-with-error

```

```auto
  

```

```auto
  × python setup.py bdist_wheel did not run successfully.

```

```auto
  │ exit code: 1

```

```auto
  ╰─> [261 lines of output]

```

```auto
      running bdist_wheel

```

```auto
      running build

```

```auto
      running build_py

```

```auto
      running build_ext

```

```auto
      Building extension for Python 3.9.18 (main, Mar 12 2024, 12:43:59)

```

```auto
      Invoking CMake setup: 'cmake /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/build/lib.linux-x86_64-cpython-39 -DPYTHON_EXECUTABLE=/home/adminuser/venv/bin/python -DCMAKE_BUILD_TYPE=Release'

```

```auto
      -- The C compiler identification is GNU 10.2.1

```

```auto
      -- The CXX compiler identification is GNU 10.2.1

```

```auto
      -- Detecting C compiler ABI info

```

```auto
      -- Detecting C compiler ABI info - done

```

```auto
      -- Check for working C compiler: /usr/bin/cc - skipped

```

```auto
      -- Detecting C compile features

```

```auto
      -- Detecting C compile features - done

```

```auto
      -- Detecting CXX compiler ABI info

```

```auto
      -- Detecting CXX compiler ABI info - done

```

```auto
      -- Check for working CXX compiler: /usr/bin/c++ - skipped

```

```auto
      -- Detecting CXX compile features

```

```auto
      -- Detecting CXX compile features - done

```

```auto
      -- Found PythonInterp: /home/adminuser/venv/bin/python (found version "3.9.18")

```

```auto
      -- Found PythonLibs: /usr/local/lib/libpython3.9.so

```

```auto
      -- Performing Test HAS_CPP14_FLAG

```

```auto
      -- Performing Test HAS_CPP14_FLAG - Success

```

```auto
      -- pybind11 v2.2.4

```

```auto
      -- Using CMake version: 3.18.4

```

```auto
      -- Compiling dlib version: 19.22.0

```

```auto
      -- SSE4 instructions can be executed by the host processor.

```

```auto
      -- AVX instructions can be executed by the host processor.

```

```auto
      -- Enabling AVX instructions

```

```auto
      -- Looking for pthread.h

```

```auto
      -- Looking for pthread.h - found

```

```auto
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD

```

```auto
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed

```

```auto
      -- Looking for pthread_create in pthreads

```

```auto
      -- Looking for pthread_create in pthreads - not found

```

```auto
      -- Looking for pthread_create in pthread

```

```auto
      -- Looking for pthread_create in pthread - found

```

```auto
      -- Found Threads: TRUE

```

```auto
      -- Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB)

```

```auto
       *****************************************************************************

```

```auto
       ***DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND***

```

```auto
       ***Make sure libx11-dev is installed if you want GUI support.***

```

```auto
       ***On Ubuntu run: sudo apt-get install libx11-dev***

```

```auto
       *****************************************************************************

```

```auto
      -- Searching for BLAS and LAPACK

```

```auto
      -- Searching for BLAS and LAPACK

```

```auto
      -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

```

```auto
      -- Looking for cblas_ddot

```

```auto
      -- Looking for cblas_ddot - not found

```

```auto
      -- Looking for sys/types.h

```

```auto
      -- Looking for sys/types.h - found

```

```auto
      -- Looking for stdint.h

```

```auto
      -- Looking for stdint.h - found

```

```auto
      -- Looking for stddef.h

```

```auto
      -- Looking for stddef.h - found

```

```auto
      -- Check size of void*

```

```auto
      -- Check size of void* - done

```

```auto
       *****************************************************************************

```

```auto
       ***No BLAS library found so using dlib's built in BLAS. However, if you***

```

```auto
       ***install an optimized BLAS such as OpenBLAS or the Intel MKL your code***

```

```auto
       ***will run faster. On Ubuntu you can install OpenBLAS by executing:***

```

```auto
       ***sudo apt-get install libopenblas-dev liblapack-dev***

```

```auto
       ***Or you can easily install OpenBLAS from source by downloading the***

```

```auto
       ***source tar file from http://www.openblas.net, extracting it, and***

```

```auto
       ***running:***

```

```auto
       ***make; sudo make install***

```

```auto
       *****************************************************************************

```

```auto
      CUDA_TOOLKIT_ROOT_DIR not found or specified

```

```auto
      -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")

```

```auto
      -- Found CUDA, but CMake was unable to find the cuBLAS libraries that should be part of every basic CUDA install. Your CUDA install is somehow broken or incomplete. Since cuBLAS is required for dlib to use CUDA we won't use CUDA.

```

```auto
      -- DID NOT FIND CUDA

```

```auto
      -- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA

```

```auto
      -- C++11 activated.

```

```auto
      -- Configuring done

```

```auto
      -- Generating done

```

```auto
      -- Build files have been written to: /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/build/temp.linux-x86_64-cpython-39

```

```auto
      Invoking CMake build: 'cmake --build . --config Release -- -j16'

```

```auto
      Scanning dependencies of target dlib

```

```auto
      [1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o

```

```auto
      [2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_1.cpp.o

```

```auto
      [2%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_2.cpp.o

```

```auto
      [3%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bit_stream/bit_stream_kernel_1.cpp.o

```

```auto
      [4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o

```

```auto
      [4%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_decoder/entropy_decoder_kernel_2.cpp.o

```

```auto
      [5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/md5/md5_kernel_1.cpp.o

```

```auto
      [5%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_2.cpp.o

```

```auto
      [6%] Building CXX object dlib_build/CMakeFiles/dlib.dir/unicode/unicode.cpp.o

```

```auto
      [7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/test_for_odr_violations.cpp.o

```

```auto
      [7%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_1.cpp.o

```

```auto
      [8%] Building CXX object dlib_build/CMakeFiles/dlib.dir/entropy_encoder/entropy_encoder_kernel_1.cpp.o

```

```auto
      [9%] Building CXX object dlib_build/CMakeFiles/dlib.dir/gui_widgets/fonts.cpp.o

```

```auto
      [10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bsp/bsp.cpp.o

```

```auto
      [10%] Building CXX object dlib_build/CMakeFiles/dlib.dir/tokenizer/tokenizer_kernel_1.cpp.o

```

```auto
      [11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_1.cpp.o

```

```auto
      [11%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_kernel_2.cpp.o

```

```auto
      [12%] Building CXX object dlib_build/CMakeFiles/dlib.dir/dir_nav/dir_nav_extensions.cpp.o

```

```auto
      [13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/linker/linker_kernel_1.cpp.o

```

```auto
      [14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_kernel_1.cpp.o

```

```auto
      [13%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/extra_logger_headers.cpp.o

```

```auto
      [14%] Building CXX object dlib_build/CMakeFiles/dlib.dir/logger/logger_config_file.cpp.o

```

```auto
      [15%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_1.cpp.o

```

```auto
      [16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/misc_api/misc_api_kernel_2.cpp.o

```

```auto
      [16%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_extensions.cpp.o

```

```auto
      [17%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockets/sockets_kernel_2.cpp.o

```

```auto
      [18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf.cpp.o

```

```auto
      [18%] Building CXX object dlib_build/CMakeFiles/dlib.dir/sockstreambuf/sockstreambuf_unbuffered.cpp.o

```

```auto
      [19%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_kernel.cpp.o

```

```auto
      [20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_iostream.cpp.o

```

```auto
      [20%] Building CXX object dlib_build/CMakeFiles/dlib.dir/server/server_http.cpp.o

```

```auto
      [21%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/multithreaded_object_extension.cpp.o

```

```auto
      [22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threaded_object_extension.cpp.o

```

```auto
      [22%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_1.cpp.o

```

```auto
      [23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_2.cpp.o

```

```auto
      [23%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/thread_pool_extension.cpp.o

```

```auto
      [24%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/threads_kernel_shared.cpp.o

```

```auto
      [25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/threads/async.cpp.o

```

```auto
      [25%] Building CXX object dlib_build/CMakeFiles/dlib.dir/timer/timer.cpp.o

```

```auto
      [26%] Building CXX object dlib_build/CMakeFiles/dlib.dir/stack_trace.cpp.o

```

```auto
      [27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o

```

```auto
      [27%] Building CXX object dlib_build/CMakeFiles/dlib.dir/cuda/tensor_tools.cpp.o

```

```auto
      [28%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/image_dataset_metadata.cpp.o

```

```auto
      [29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/mnist.cpp.o

```

```auto
      [29%] Building CXX object dlib_build/CMakeFiles/dlib.dir/data_io/cifar.cpp.o

```

```auto
      [30%] Building CXX object dlib_build/CMakeFiles/dlib.dir/global_optimization/global_function_search.cpp.o

```

```auto
      [31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/filtering/kalman_filter.cpp.o

```

```auto
      [31%] Building CXX object dlib_build/CMakeFiles/dlib.dir/svm/auto.cpp.o

```

```auto
      [32%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/arm_init.c.o

```

```auto
      [33%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/arm/filter_neon_intrinsics.c.o

```

```auto
      [33%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/png.c.o

```

```auto
      [34%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngerror.c.o

```

```auto
      [34%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngget.c.o

```

```auto
      [35%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngmem.c.o

```

```auto
      [36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngpread.c.o

```

```auto
      [36%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngread.c.o

```

```auto
      [37%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrio.c.o

```

```auto
      [38%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrtran.c.o

```

```auto
      [38%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngrutil.c.o

```

```auto
      [39%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngset.c.o

```

```auto
      [40%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngtrans.c.o

```

```auto
      [40%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwio.c.o

```

```auto
      [41%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwrite.c.o

```

```auto
      [42%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwtran.c.o

```

```auto
      [41%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libpng/pngwutil.c.o

```

```auto
      [43%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/adler32.c.o

```

```auto
      [44%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/compress.c.o

```

```auto
      [45%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/deflate.c.o

```

```auto
      [45%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/crc32.c.o

```

```auto
      [45%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzclose.c.o

```

```auto
      [46%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzlib.c.o

```

```auto
      [47%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzread.c.o

```

```auto
      [47%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/gzwrite.c.o

```

```auto
      [48%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/infback.c.o

```

```auto
      [49%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inffast.c.o

```

```auto
      [49%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inflate.c.o

```

```auto
      [50%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/inftrees.c.o

```

```auto
      [51%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/trees.c.o

```

```auto
      [52%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/zutil.c.o

```

```auto
      [52%] Building C object dlib_build/CMakeFiles/dlib.dir/external/zlib/uncompr.c.o

```

```auto
      [53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/png_loader.cpp.o

```

```auto
      [53%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_png.cpp.o

```

```auto
      [54%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jaricom.c.o

```

```auto
      [54%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcapimin.c.o

```

```auto
      [55%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcapistd.c.o

```

```auto
      [56%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcarith.c.o

```

```auto
      [56%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jccoefct.c.o

```

```auto
      [57%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jccolor.c.o

```

```auto
      [57%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jchuff.c.o

```

```auto
      [58%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcdctmgr.c.o

```

```auto
      [59%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcinit.c.o

```

```auto
      [60%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmainct.c.o

```

```auto
      [60%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmarker.c.o

```

```auto
      [61%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcomapi.c.o

```

```auto
      [62%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcmaster.c.o

```

```auto
      [62%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcparam.c.o

```

```auto
      [63%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcsample.c.o

```

```auto
      [64%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jcprepct.c.o

```

```auto
      [64%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdapimin.c.o

```

```auto
      [65%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdapistd.c.o

```

```auto
      [65%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdarith.c.o

```

```auto
      [66%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdatadst.c.o

```

```auto
      [67%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdatasrc.c.o

```

```auto
      [68%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdcolor.c.o

```

```auto
      [69%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jddctmgr.c.o

```

```auto
      [69%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdcoefct.c.o

```

```auto
      [69%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdhuff.c.o

```

```auto
      [70%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmainct.c.o

```

```auto
      [71%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdinput.c.o

```

```auto
      [71%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmarker.c.o

```

```auto
      [72%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmaster.c.o

```

```auto
      [73%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdmerge.c.o

```

```auto
      [73%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdpostct.c.o

```

```auto
      [74%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jdsample.c.o

```

```auto
      [74%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jerror.c.o

```

```auto
      [75%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctflt.c.o

```

```auto
      [76%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctfst.c.o

```

```auto
      [76%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jfdctint.c.o

```

```auto
      [77%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctflt.c.o

```

```auto
      [78%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctfst.c.o

```

```auto
      [78%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jidctint.c.o

```

```auto
      [79%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jmemmgr.c.o

```

```auto
      [80%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jmemnobs.c.o

```

```auto
      [81%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jquant2.c.o

```

```auto
      [82%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jquant1.c.o

```

```auto
      [82%] Building C object dlib_build/CMakeFiles/dlib.dir/external/libjpeg/jutils.c.o

```

```auto
      [83%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_saver/save_jpeg.cpp.o

```

```auto
      [83%] Building CXX object dlib_build/CMakeFiles/dlib.dir/image_loader/jpeg_loader.cpp.o

```

```auto
      In file included from /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/dlib/filtering/../matrix.h:11,

```

```auto
                       from /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/dlib/filtering/kalman_filter.h:7,

```

```auto
                       from /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/dlib/filtering/kalman_filter.cpp:6:

```

```auto
      /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/dlib/filtering/../matrix/matrix_la.h: In function ‘long int dlib::svd4(dlib::svd_u_mode, bool, const dlib::matrix_exp<EXP>&, dlib::matrix<typename EXP::type, uM, uN, MM1, L1>&, dlib::matrix<typename EXP::type, qN, qX, MM2, L1>&, dlib::matrix<typename EXP::type, vM, vN, MM3, L1>&) [with EXP = dlib::matrix_op<dlib::op_trans<dlib::matrix_op<dlib::op_trans<dlib::matrix<double, 1, 2, dlib::memory_manager_stateless_kernel_1<char>, dlib::row_major_layout> > > > >; long int qN = 1; long int qX = 1; long int uM = 1; long int uN = 1; long int vM = 2; long int vN = 1; MM1 = dlib::memory_manager_stateless_kernel_1<char>; MM2 = dlib::memory_manager_stateless_kernel_1<char>; MM3 = dlib::memory_manager_stateless_kernel_1<char>; L1 = dlib::row_major_layout]’:

```

```auto
      /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/dlib/filtering/../matrix/matrix_la.h:225:32: warning: iteration 1 invokes undefined behavior [-Waggressive-loop-optimizations]

```

```auto
        225 | y = abs(q(i)) + abs(e(i));

```

```auto
            | ~~~^~~~~~

```

```auto
      /tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/dlib/filtering/../matrix/matrix_la.h:163:20: note: within this loop

```

```auto
        163 | for (i=0; i<n; i++)

```

```auto
            | ~^~

```

```auto
      c++: fatal error: Killed signal terminated program cc1plus

```

```auto
      compilation terminated.

```

```auto
      gmake[2]: *** [dlib_build/CMakeFiles/dlib.dir/build.make:602: dlib_build/CMakeFiles/dlib.dir/cuda/cpu_dlib.cpp.o] Error 1

```

```auto
      gmake[2]: *** Waiting for unfinished jobs....

```

```auto
      gmake[1]: *** [CMakeFiles/Makefile2:163: dlib_build/CMakeFiles/dlib.dir/all] Error 2

```

```auto
      gmake: *** [Makefile:103: all] Error 2

```

```auto
      Traceback (most recent call last):

```

```auto
        File "<string>", line 2, in <module>

```

```auto
        File "<pip-setuptools-caller>", line 34, in <module>

```

```auto
        File "/tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/setup.py", line 222, in <module>

```

```auto
          setup(

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/ __init__.py", line 103, in setup

```

```auto
          return distutils.core.setup(**attrs)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup

```

```auto
          return run_commands(dist)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands

```

```auto
          dist.run_commands()

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands

```

```auto
          self.run_command(cmd)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command

```

```auto
          super().run_command(command)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command

```

```auto
          cmd_obj.run()

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 368, in run

```

```auto
          self.run_command("build")

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command

```

```auto
          self.distribution.run_command(command)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command

```

```auto
          super().run_command(command)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command

```

```auto
          cmd_obj.run()

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run

```

```auto
          self.run_command(cmd_name)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command

```

```auto
          self.distribution.run_command(command)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/dist.py", line 963, in run_command

```

```auto
          super().run_command(command)

```

```auto
        File "/home/adminuser/venv/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command

```

```auto
          cmd_obj.run()

```

```auto
        File "/tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/setup.py", line 134, in run

```

```auto
          self.build_extension(ext)

```

```auto
        File "/tmp/pip-install-eqdyq98k/dlib_6e44bdce0c4d4f87880ac17ffa575279/setup.py", line 174, in build_extension

```

```auto
          subprocess.check_call(cmake_build, cwd=build_folder)

```

```auto
        File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call

```

```auto
          raise CalledProcessError(retcode, cmd)

```

```auto
      subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j16']' returned non-zero exit status 2.

```

```auto
      [end of output]

```

```auto
  

```

```auto
  note: This error originates from a subprocess, and is likely not a problem with pip.

```

```auto
  ERROR: Failed building wheel for dlib

```

```auto
  Running setup.py clean for dlib

```

```auto
  Building wheel for cvzone (setup.py): started

```

```auto
  Building wheel for cvzone (setup.py): finished with status 'done'

```

```auto
  Created wheel for cvzone: filename=cvzone-1.6.1-py3-none-any.whl size=26297 sha256=4cc0195b85837dc9c98b7dd56fde0e136992c39b633f76559ccafbe298979e10

```

```auto
  Stored in directory: /tmp/pip-ephem-wheel-cache-tx0j3phn/wheels/fe/42/84/8292443575ee9f8b82bfa0678160feef87a598d61964a94650

```

```auto
  Building wheel for face_recognition (pyproject.toml): started

```

```auto
  Building wheel for face_recognition (pyproject.toml): finished with status 'done'

```

```auto
  Created wheel for face_recognition: filename=face_recognition-1.4.0-py2.py3-none-any.whl size=15671 sha256=a0d2edbbe528534d91f675a0e8687a0ee504d922cc3714141ab9ecd9e38f1f55

```

```auto
  Stored in directory: /tmp/pip-ephem-wheel-cache-tx0j3phn/wheels/f9/b0/9d/e4290162d99b67c94c84ddb592e8b51b9cd4c082706418a3c6

```

```auto
  Building wheel for face-recognition-models (setup.py): started

```

```auto
  Building wheel for face-recognition-models (setup.py): finished with status 'done'

```

```auto
  Created wheel for face-recognition-models: filename=face_recognition_models-0.3.0-py2.py3-none-any.whl size=100566165 sha256=5c768b99310d2bf87e0070f32b4db9e9c7c3af3941676db2b31fee8376d5a161

```

```auto
  Stored in directory: /tmp/pip-ephem-wheel-cache-tx0j3phn/wheels/22/a8/60/4a2aeb763d63f50190f4c4e07069a22245347eeafdb3a67551

```

```auto
Successfully built cvzone face_recognition face-recognition-models

```

```auto
Failed to build dlib

```

```auto
Installing collected packages: pytz, face-recognition-models, dlib-bin, dlib, cmake, zipp, watchdog, validators, urllib3, tzlocal, tzdata, typing-extensions, tornado, toolz, toml, tenacity, smmap, six, rpds-py, pygments, protobuf, Pillow, packaging, numpy, mdurl, MarkupSafe, idna, click, charset-normalizer, certifi, cachetools, blinker, attrs, requests, referencing, python-dateutil, pyarrow, opencv-python, markdown-it-py, jinja2, importlib-metadata, gitdb, face_recognition, rich, pydeck, pandas, jsonschema-specifications, gitpython, cvzone, jsonschema, altair, streamlit

```

```auto
  Attempting uninstall: pytz

```

```auto
    Found existing installation: pytz 2024.1

```

```auto
    Uninstalling pytz-2024.1:

```

```auto
      Successfully uninstalled pytz-2024.1

```

```auto
  Attempting uninstall: face-recognition-models

```

```auto
    Found existing installation: face_recognition_models 0.3.0

```

```auto
    Uninstalling face_recognition_models-0.3.0:

```

```auto
      Successfully uninstalled face_recognition_models-0.3.0

```

```auto
  Attempting uninstall: dlib-bin

```

```auto
    Found existing installation: dlib-bin 19.24.2

```

```auto
    Uninstalling dlib-bin-19.24.2:

```

```auto
      Successfully uninstalled dlib-bin-19.24.2

```

```auto
  Running setup.py install for dlib: started

```

```auto
  Running setup.py install for dlib: still running...

```

```auto
  Running setup.py install for dlib: still running...

```

```auto
  Running setup.py install for dlib: still running...

```

@Guna_Sekhar_Venkata

---

<div class="post-metadata">

**Author:** ![Goyo](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/goyo/32/28219_2.png) [@Goyo](https://discuss.streamlit.io/u/Goyo)\
**Post date:** [March 13, 2024, 1:41pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/14 "2024-03-13T13:41:57Z")

</div>

`dlib` comes as a source distribution that seems to be impossible to install in streamlit cloud. I think you need to install [`dlib-bin`](https://pypi.org/project/dlib-bin/) instead.

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 13, 2024, 1:53pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/15 "2024-03-13T13:53:19Z")

</div>

Thank you soo much , all errors are solved. Now gotta wait for the app to start

```auto
[13:40:28] 🐍 Python dependencies were installed from /mount/src/faceattendance/requirements.txt using pip.

```

```auto
[13:40:28] 📦 Processed dependencies!

```

```auto
[13:40:38] 🔄 Updated app!

```

```auto
[13:40:39] 🖥 Provisioning machine...

```

```auto
[13:40:44] 🎛 Preparing system...

```

```auto
[13:40:49] ⛓ Spinning up manager process...

```

```auto
[13:40:54] 🎈 Inflating balloons...

```

```auto
[13:41:01] 📖 Unpacking Comic Sans RAR files...

```

```auto
[13:41:06] 🚧 Loading "Under construction" GIF...

```

```auto
[13:41:11] 🛠 Compiling <blink> tags...

```

```auto
[13:41:18] 📠 Initializing Java applet...

```

```auto
[13:41:24] ⏳ Please wait...

```

---

<div class="post-metadata">

**Author:** ![Guna\_Sekhar\_Venkata](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/guna_sekhar_venkata/32/44735_2.png) [@Guna\_Sekhar\_Venkata](https://discuss.streamlit.io/u/Guna_Sekhar_Venkata)\
**Post date:** [March 17, 2024, 4:04am UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/16 "2024-03-17T04:04:24Z")

</div>

Hey @KamaljeethAnand application is running or not?

---

<div class="post-metadata">

**Author:** ![KamaljeethAnand](https://sea2.discourse-cdn.com/streamlit/user_avatar/discuss.streamlit.io/kamaljeethanand/32/40084_2.png) [@KamaljeethAnand](https://discuss.streamlit.io/u/KamaljeethAnand)\
**Post date:** [March 17, 2024, 12:47pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/17 "2024-03-17T12:47:16Z")

</div>

Application is running , but Im having this error:

```auto
2024-03-17 12:45:06.527 Uncaught app exception

```

```auto
Traceback (most recent call last):

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script

```

```auto
    exec(code, module. __dict__ )

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 133, in <module>

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 50, in main

```

```auto
    # Load existing encodings and student IDs

```

```auto
  File "/mount/src/faceattendance/attendance.py", line 93, in take_attendance

```

```auto
    face_img = PIL.Image.fromarray(img_np)

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/retinaface/RetinaFace.py", line 87, in detect_faces

```

```auto
    model = build_model()

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/retinaface/RetinaFace.py", line 45, in build_model

```

```auto
    retinaface_model.build_model(),

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/retinaface/model/retinaface_model.py", line 122, in build_model

```

```auto
    pooling0 = MaxPool2D((3, 3), (2, 2), padding="VALID", name="pooling0")(pooling0_pad)

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/keras/src/utils/traceback_utils.py", line 123, in error_handler

```

```auto
    raise e.with_traceback(filtered_tb) from None

```

```auto
  File "/home/adminuser/venv/lib/python3.9/site-packages/keras/src/ops/operation_utils.py", line 138, in compute_pooling_output_shape

```

```auto
    raise ValueError(

```

```auto
ValueError: Exception encountered when calling MaxPooling2D.call().

```

```auto

```

```auto
Argument `padding` must be either 'valid' or 'same'. Received: padding=VALID

```

```auto

```

```auto
Arguments received by MaxPooling2D.call():

```

```auto
  • args=('<KerasTensor shape=(None, None, None, 64), dtype=float32, sparse=False, name=keras_tensor_5>',)

```

```auto
  • kwargs=<class 'inspect._empty'>

```

by using the - retina-face module… is there anyway i can find tat python file and change the value , tats what chatgpt/gemini ai suggests to do

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/streamlit/original/3X/c/f/cf4c2ee0d938358f82448c5fe4b9c3c91d7ce19c.svg) [@system](https://discuss.streamlit.io/u/system)\
**Post date:** [September 13, 2024, 12:47pm UTC](https://discuss.streamlit.io/t/cv2-module-error/64614/18 "2024-09-13T12:47:31Z")

</div>

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