boltgolt / howdy

πŸ›‘οΈ Windows Helloβ„’ style facial authentication for Linux
MIT License
5.9k stars 307 forks source link

No module named 'dlib' #859

Closed jackfido closed 1 year ago

jackfido commented 1 year ago

When I run sudo howdy -U goliapp add I receive an error:

No module named 'dlib'

Can't import the dlib module, check the output of
pip3 show dlib

Or when I run sudo howdy version:

I receive:

Traceback (most recent call last):
  File "/lib/security/howdy/compare.py", line 17, in <module>
    import dlib
ModuleNotFoundError: No module named 'dlib'
Unknown error: 1
Place your right index finger on the fingerprint reader
Howdy 2.6.1

I've searched for similar issues already, and my issue has not been reported yet.

Linux distribution: Ubuntu Unity 20.04.3 LTS

Howdy version (sudo howdy version): 2.6.1

This was my command line when Installed dlib was an error:

goliapp@goliapp-lenovothinkbook:~$ sudo apt install howdy
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode gir1.2-gee-0.8 icu-devtools intel-microcode iucode-tool
  lib32asan6 lib32atomic1 lib32gcc-11-dev lib32gcc-s1 lib32gomp1 lib32itm1
  lib32quadmath0 lib32stdc++6 lib32ubsan1 libbrotli-dev libc6-i386 libc6-x32
  libclang-common-12-dev libclang-common-14-dev libclang-common-15-dev
  libclang-cpp12 libclang-cpp14 libclang-cpp15 libclang1-12 libclang1-14
  libclang1-15 libdatrie-dev libdrm-dev libepoxy-dev libffi-dev libffi7
  libfribidi-dev libglib2.0-dev-bin libgraphite2-dev libharfbuzz-gobject0
  libkf5syntaxhighlighting-data libkf5syntaxhighlighting5 libllvm12
  libltdl-dev libobjc-11-dev libobjc4 libpciaccess-dev libpcre16-3
  libpcre2-posix3 libpcre32-3 libpixman-1-dev libqt5concurrent5
  libqt5designercomponents5 libqt5quicktest5 libsepol-dev libthai-dev
  libunwind-dev libwayland-bin libwayland-dev libx32asan6 libx32atomic1
  libx32gcc-11-dev libx32gcc-s1 libx32gomp1 libx32itm1 libx32quadmath0
  libx32stdc++6 libx32ubsan1 libxcb-render0-dev libxcb-shape0-dev
  libxcb-shm0-dev libxcb-xfixes0-dev libxcb-xinput-dev libxcb-xkb-dev
  libxcomposite-dev libxdamage-dev libxi-dev libxinerama-dev libxkbcommon-dev
  libxkbcommon-x11-dev libxtst-dev llvm-12 llvm-12-linker-tools
  llvm-12-runtime llvm-12-tools llvm-14-tools llvm-15 llvm-15-linker-tools
  llvm-15-runtime llvm-15-tools mesa-common-dev pango1.0-tools qdoc-qt5
  qhelpgenerator-qt5 qmlscene qt3d5-doc qt5-assistant qt5-doc
  qtattributionsscanner-qt5 qtbase5-dev-tools qtbase5-doc qtcharts5-doc
  qtchooser qtconnectivity5-doc qtcreator-data qtcreator-doc
  qtdatavisualization5-doc qtdeclarative5-dev-tools qtdeclarative5-doc
  qtgamepad5-doc qtgraphicaleffects5-doc qtlocation5-doc qtmultimedia5-doc
  qtnetworkauth5-doc qtquickcontrols2-5-doc qtquickcontrols5-doc qtscript5-doc
  qtscxml5-doc qtsensors5-doc qtserialbus5-doc qtserialport5-doc qtsvg5-doc
  qttools5-dev-tools qttools5-doc qtvirtualkeyboard5-doc qtwayland5-doc
  qtwebchannel5-doc qtwebengine5-doc qtwebsockets5-doc qtwebview5-doc
  qtx11extras5-doc qtxmlpatterns5-dev-tools qtxmlpatterns5-doc thermald
  wayland-protocols
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libc6-dev libexif-dev libexpat1-dev libgphoto2-dev libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev libopencv-calib3d-dev libopencv-contrib-dev
  libopencv-core-dev libopencv-dev libopencv-dnn-dev libopencv-features2d-dev
  libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev
  libopencv-imgproc-dev libopencv-ml-dev libopencv-objdetect-dev
  libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev
  libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev
  libopencv-videostab-dev libopencv-viz-dev libpng-dev libpython3-dev
  libpython3.10-dev libtiff-dev linux-libc-dev python3-dev python3.10-dev
  zlib1g-dev
Suggested packages:
  nvidia-cuda-dev glibc-doc opencv-doc
The following NEW packages will be installed:
  howdy libc6-dev libexif-dev libexpat1-dev libgphoto2-dev libjpeg-dev
  libjpeg-turbo8-dev libjpeg8-dev libopencv-calib3d-dev libopencv-contrib-dev
  libopencv-core-dev libopencv-dev libopencv-dnn-dev libopencv-features2d-dev
  libopencv-flann-dev libopencv-highgui-dev libopencv-imgcodecs-dev
  libopencv-imgproc-dev libopencv-ml-dev libopencv-objdetect-dev
  libopencv-photo-dev libopencv-shape-dev libopencv-stitching-dev
  libopencv-superres-dev libopencv-video-dev libopencv-videoio-dev
  libopencv-videostab-dev libopencv-viz-dev libpng-dev libpython3-dev
  libpython3.10-dev libtiff-dev linux-libc-dev python3-dev python3.10-dev
  zlib1g-dev
0 upgraded, 36 newly installed, 0 to remove and 39 not upgraded.
Need to get 19.4 MB/24.6 MB of archives.
After this operation, 137 MB of additional disk space will be used.
Do you want to continue? [Y/n] YY
Get:1 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-libc-dev amd64 5.15.0-89.99 [1,338 kB]
Get:2 https://ppa.launchpadcontent.net/boltgolt/howdy/ubuntu jammy/main amd64 howdy all 2.6.1 [38.9 kB]
Get:3 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libc6-dev amd64 2.35-0ubuntu3.4 [2,100 kB]
Get:4 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.2 [147 kB]
Get:5 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
Get:6 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-dev amd64 3.10.6-1~22.04 [7,166 B]
Get:7 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-dev amd64 3.10.6-1~22.04 [26.0 kB]
Get:8 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-core-dev amd64 4.5.4+dfsg-9ubuntu4 [1,978 kB]
Get:9 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-flann-dev amd64 4.5.4+dfsg-9ubuntu4 [210 kB]
Get:10 http://mx.archive.ubuntu.com/ubuntu jammy/main amd64 libexif-dev amd64 0.6.24-1build1 [113 kB]
Get:11 http://mx.archive.ubuntu.com/ubuntu jammy/main amd64 libgphoto2-dev amd64 2.5.27-1build2 [34.3 kB]
Get:12 http://mx.archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-turbo8-dev amd64 2.1.2-0ubuntu1 [257 kB]
Get:13 http://mx.archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg8-dev amd64 8c-2ubuntu10 [1,476 B]
Get:14 http://mx.archive.ubuntu.com/ubuntu jammy/main amd64 libjpeg-dev amd64 8c-2ubuntu10 [1,472 B]
Get:15 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-imgproc-dev amd64 4.5.4+dfsg-9ubuntu4 [1,854 kB]
Get:16 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-imgcodecs-dev amd64 4.5.4+dfsg-9ubuntu4 [200 kB]
Get:17 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-videoio-dev amd64 4.5.4+dfsg-9ubuntu4 [315 kB]
Get:18 http://mx.archive.ubuntu.com/ubuntu jammy/main amd64 libpng-dev amd64 1.6.37-3build5 [192 kB]
Get:19 http://mx.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libtiff-dev amd64 4.3.0-6ubuntu0.7 [315 kB]
Get:20 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-highgui-dev amd64 4.5.4+dfsg-9ubuntu4 [132 kB]
Get:21 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-ml-dev amd64 4.5.4+dfsg-9ubuntu4 [298 kB]
Get:22 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-features2d-dev amd64 4.5.4+dfsg-9ubuntu4 [372 kB]
Get:23 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-calib3d-dev amd64 4.5.4+dfsg-9ubuntu4 [1,046 kB]
Get:24 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-dnn-dev amd64 4.5.4+dfsg-9ubuntu4 [1,706 kB]
Get:25 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-objdetect-dev amd64 4.5.4+dfsg-9ubuntu4 [254 kB]
Get:26 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-photo-dev amd64 4.5.4+dfsg-9ubuntu4 [222 kB]
Get:27 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-video-dev amd64 4.5.4+dfsg-9ubuntu4 [251 kB]
Get:28 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-shape-dev amd64 4.5.4+dfsg-9ubuntu4 [72.3 kB]
Get:29 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-stitching-dev amd64 4.5.4+dfsg-9ubuntu4 [269 kB]
Get:30 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-superres-dev amd64 4.5.4+dfsg-9ubuntu4 [62.2 kB]
Get:31 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-videostab-dev amd64 4.5.4+dfsg-9ubuntu4 [111 kB]
Get:32 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-viz-dev amd64 4.5.4+dfsg-9ubuntu4 [188 kB]
Get:33 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-contrib-dev amd64 4.5.4+dfsg-9ubuntu4 [5,008 kB]
Get:34 http://mx.archive.ubuntu.com/ubuntu jammy/universe amd64 libopencv-dev amd64 4.5.4+dfsg-9ubuntu4 [91.8 kB]
Fetched 19.4 MB in 4s (4,569 kB/s)   
Extracting templates from packages: 100%
Selecting previously unselected package linux-libc-dev:amd64.
(Reading database ... 448192 files and directories currently installed.)
Preparing to unpack .../00-linux-libc-dev_5.15.0-89.99_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.15.0-89.99) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../01-libc6-dev_2.35-0ubuntu3.4_amd64.deb ...
Unpacking libc6-dev:amd64 (2.35-0ubuntu3.4) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../02-libexpat1-dev_2.4.7-1ubuntu0.2_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../03-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Selecting previously unselected package libpython3.10-dev:amd64.
Preparing to unpack .../04-libpython3.10-dev_3.10.12-1~22.04.3_amd64.deb ...
Unpacking libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../05-libpython3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.10.6-1~22.04) ...
Selecting previously unselected package python3.10-dev.
Preparing to unpack .../06-python3.10-dev_3.10.12-1~22.04.3_amd64.deb ...
Unpacking python3.10-dev (3.10.12-1~22.04.3) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../07-python3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking python3-dev (3.10.6-1~22.04) ...
Selecting previously unselected package libopencv-core-dev:amd64.
Preparing to unpack .../08-libopencv-core-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-core-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-flann-dev:amd64.
Preparing to unpack .../09-libopencv-flann-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-flann-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libexif-dev:amd64.
Preparing to unpack .../10-libexif-dev_0.6.24-1build1_amd64.deb ...
Unpacking libexif-dev:amd64 (0.6.24-1build1) ...
Selecting previously unselected package libgphoto2-dev:amd64.
Preparing to unpack .../11-libgphoto2-dev_2.5.27-1build2_amd64.deb ...
Unpacking libgphoto2-dev:amd64 (2.5.27-1build2) ...
Selecting previously unselected package libjpeg-turbo8-dev:amd64.
Preparing to unpack .../12-libjpeg-turbo8-dev_2.1.2-0ubuntu1_amd64.deb ...
Unpacking libjpeg-turbo8-dev:amd64 (2.1.2-0ubuntu1) ...
Selecting previously unselected package libjpeg8-dev:amd64.
Preparing to unpack .../13-libjpeg8-dev_8c-2ubuntu10_amd64.deb ...
Unpacking libjpeg8-dev:amd64 (8c-2ubuntu10) ...
Selecting previously unselected package libjpeg-dev:amd64.
Preparing to unpack .../14-libjpeg-dev_8c-2ubuntu10_amd64.deb ...
Unpacking libjpeg-dev:amd64 (8c-2ubuntu10) ...
Selecting previously unselected package libopencv-imgproc-dev:amd64.
Preparing to unpack .../15-libopencv-imgproc-dev_4.5.4+dfsg-9ubuntu4_amd64.deb .
..
Unpacking libopencv-imgproc-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-imgcodecs-dev:amd64.
Preparing to unpack .../16-libopencv-imgcodecs-dev_4.5.4+dfsg-9ubuntu4_amd64.deb
 ...
Unpacking libopencv-imgcodecs-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-videoio-dev:amd64.
Preparing to unpack .../17-libopencv-videoio-dev_4.5.4+dfsg-9ubuntu4_amd64.deb .
..
Unpacking libopencv-videoio-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libpng-dev:amd64.
Preparing to unpack .../18-libpng-dev_1.6.37-3build5_amd64.deb ...
Unpacking libpng-dev:amd64 (1.6.37-3build5) ...
Selecting previously unselected package libtiff-dev:amd64.
Preparing to unpack .../19-libtiff-dev_4.3.0-6ubuntu0.7_amd64.deb ...
Unpacking libtiff-dev:amd64 (4.3.0-6ubuntu0.7) ...
Selecting previously unselected package libopencv-highgui-dev:amd64.
Preparing to unpack .../20-libopencv-highgui-dev_4.5.4+dfsg-9ubuntu4_amd64.deb .
..
Unpacking libopencv-highgui-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-ml-dev:amd64.
Preparing to unpack .../21-libopencv-ml-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-ml-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-features2d-dev:amd64.
Preparing to unpack .../22-libopencv-features2d-dev_4.5.4+dfsg-9ubuntu4_amd64.de
b ...
Unpacking libopencv-features2d-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-calib3d-dev:amd64.
Preparing to unpack .../23-libopencv-calib3d-dev_4.5.4+dfsg-9ubuntu4_amd64.deb .
..
Unpacking libopencv-calib3d-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-dnn-dev:amd64.
Preparing to unpack .../24-libopencv-dnn-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-dnn-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-objdetect-dev:amd64.
Preparing to unpack .../25-libopencv-objdetect-dev_4.5.4+dfsg-9ubuntu4_amd64.deb
 ...
Unpacking libopencv-objdetect-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-photo-dev:amd64.
Preparing to unpack .../26-libopencv-photo-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-photo-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-video-dev:amd64.
Preparing to unpack .../27-libopencv-video-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-video-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-shape-dev:amd64.
Preparing to unpack .../28-libopencv-shape-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-shape-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-stitching-dev:amd64.
Preparing to unpack .../29-libopencv-stitching-dev_4.5.4+dfsg-9ubuntu4_amd64.deb
 ...
Unpacking libopencv-stitching-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-superres-dev:amd64.
Preparing to unpack .../30-libopencv-superres-dev_4.5.4+dfsg-9ubuntu4_amd64.deb 
...
Unpacking libopencv-superres-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-videostab-dev:amd64.
Preparing to unpack .../31-libopencv-videostab-dev_4.5.4+dfsg-9ubuntu4_amd64.deb
 ...
Unpacking libopencv-videostab-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-viz-dev:amd64.
Preparing to unpack .../32-libopencv-viz-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-viz-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-contrib-dev:amd64.
Preparing to unpack .../33-libopencv-contrib-dev_4.5.4+dfsg-9ubuntu4_amd64.deb .
..
Unpacking libopencv-contrib-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package libopencv-dev.
Preparing to unpack .../34-libopencv-dev_4.5.4+dfsg-9ubuntu4_amd64.deb ...
Unpacking libopencv-dev (4.5.4+dfsg-9ubuntu4) ...
Selecting previously unselected package howdy.
Preparing to unpack .../35-howdy_2.6.1_all.deb ...
Starting IR camera check...

Trying "Integrated Camera: Integrated C"
One of your cameras should now be on.
Did your IR emitters turn on? [y/N]: y

Starting certainty auto config...

After detection, Howdy knows how certain it is that the match is correct.
How certain Howdy needs to be before authenticating you can be customized.

F: Fast.
Allows more fuzzy matches, but speeds up the scanning process greatly.

B: Balanced.
Still relatively quick detection, but might not log you in when further away.

S: Secure.
The safest option, but will take much longer to authenticate you.

You can always change this setting in the config.
What profile would you like to use? [f/b/s]: s

Unpacking howdy (2.6.1) ...
Setting up linux-libc-dev:amd64 (5.15.0-89.99) ...
Setting up libc6-dev:amd64 (2.35-0ubuntu3.4) ...
Setting up libjpeg-turbo8-dev:amd64 (2.1.2-0ubuntu1) ...
Setting up libexif-dev:amd64 (0.6.24-1build1) ...
Setting up libgphoto2-dev:amd64 (2.5.27-1build2) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up libopencv-core-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libjpeg8-dev:amd64 (8c-2ubuntu10) ...
Setting up libopencv-flann-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-ml-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libpng-dev:amd64 (1.6.37-3build5) ...
Setting up libjpeg-dev:amd64 (8c-2ubuntu10) ...
Setting up libtiff-dev:amd64 (4.3.0-6ubuntu0.7) ...
Setting up libopencv-imgproc-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-dnn-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-viz-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libpython3.10-dev:amd64 (3.10.12-1~22.04.3) ...
Setting up libopencv-video-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up python3.10-dev (3.10.12-1~22.04.3) ...
Setting up libopencv-shape-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
Setting up libopencv-photo-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-imgcodecs-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up python3-dev (3.10.6-1~22.04) ...
Setting up libopencv-videoio-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-superres-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-highgui-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-features2d-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-calib3d-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-objdetect-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-videostab-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-stitching-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-contrib-dev:amd64 (4.5.4+dfsg-9ubuntu4) ...
Setting up libopencv-dev (4.5.4+dfsg-9ubuntu4) ...
Setting up howdy (2.6.1) ...

>>> Upgrading pip to the latest version

Requirement already satisfied: pip in /usr/local/lib/python3.10/dist-packages (2
3.0.1)
Collecting pip
  Downloading pip-23.3.1-py3-none-any.whl (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 5.0 MB/s eta 0:00:00
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 23.0.1
    Uninstalling pip-23.0.1:
      Successfully uninstalled pip-23.0.1
  WARNING: The scripts pip, pip3 and pip3.10 are installed in '/usr/local/bin' w
hich is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
Successfully installed pip-23.3.1
WARNING: Running pip as the 'root' user can result in broken permissions and con
flicting behaviour with the system package manager. It is recommended to use a v
irtual environment instead: https://pip.pypa.io/warnings/venv

>>> Upgrading numpy to the latest version

Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages 
(1.24.2)
Collecting numpy
  Downloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_6
4.whl.metadata (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 985.4 kB/s eta 0:00:00
Downloading numpy-1.26.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.
whl (18.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 6.7 MB/s eta 0:00:00
Installing collected packages: numpy
  Attempting uninstall: numpy
    Found existing installation: numpy 1.24.2
    Uninstalling numpy-1.24.2:
      Successfully uninstalled numpy-1.24.2
  WARNING: The script f2py is installed in '/usr/local/bin' which is not on PATH
.
  Consider adding this directory to PATH or, if you prefer to suppress this warn
ing, use --no-warn-script-location.
Successfully installed numpy-1.26.2
WARNING: Running pip as the 'root' user can result in broken permissions and con
flicting behaviour with the system package manager. It is recommended to use a v
irtual environment instead: https://pip.pypa.io/warnings/venv

>>> Downloading and unpacking data files

Downloading 3 required data files...
dlib_face_recogniti 100%[===================>]  20.44M  6.50MB/s    in 3.2s    
mmod_human_face_det 100%[===================>] 678.41K  4.11MB/s    in 0.2s    
shape_predictor_5_f 100%[===================>]   5.44M  6.77MB/s    in 0.8s    
Unpacking...

**>>> Downloading dlib

--2023-11-29 00:02:51--  https://github.com/davisking/dlib/archive/v19.16.tar.gz
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/davisking/dlib/tar.gz/refs/tags/v19.16 [fo
llowing]
--2023-11-29 00:02:51--  https://codeload.github.com/davisking/dlib/tar.gz/refs/
tags/v19.16
Resolving codeload.github.com (codeload.github.com)... 140.82.113.10
Connecting to codeload.github.com (codeload.github.com)|140.82.113.10|:443... co
nnected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to: β€˜/tmp/v19.16.tar.gz’

/tmp/v19.16.tar.gz      [          <=>       ]   9.93M  4.89MB/s    in 2.0s    

2023-11-29 00:02:54 (4.89 MB/s) - β€˜/tmp/v19.16.tar.gz’ saved [10411975]

>>> Building dlib

/tmp/dlib-19.16/setup.py:39: DeprecationWarning: The distutils package is deprec
ated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for 
potential alternatives
  from distutils import log
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDepre
cationWarning: setup.py install is deprecated. Use build and pip and other stand
ards-based tools.
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInsta
llDeprecationWarning: easy_install command is deprecated. Use build and pip and 
other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating dlib.egg-info
writing dlib.egg-info/PKG-INFO
writing dependency_links to dlib.egg-info/dependency_links.txt
writing top-level names to dlib.egg-info/top_level.txt
writing manifest file 'dlib.egg-info/SOURCES.txt'
package init file 'dlib/__init__.py' not found (or not a regular file)
reading manifest file 'dlib.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'dlib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
Building extension for Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
Invoking CMake setup: 'cmake /tmp/dlib-19.16/tools/python -DCMAKE_LIBRARY_OUTPUT
_DIRECTORY=/tmp/dlib-19.16/build/lib.linux-x86_64-3.10 -DPYTHON_EXECUTABLE=/usr/
bin/python3 -DCMAKE_BUILD_TYPE=Release'
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error in CMakeLists.txt:
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/tmp/dlib-19.16/build/temp.linux-x86_64-3.10/CMakeFiles/CMakeOutput.lo
g".
See also "/tmp/dlib-19.16/build/temp.linux-x86_64-3.10/CMakeFiles/CMakeError.log
".
Traceback (most recent call last):
  File "/tmp/dlib-19.16/setup.py", line 221, in <module>
    setup(
  File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in set
up
    return distutils.core.setup(**attrs)
  File "/usr/lib/python3.10/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.10/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 74, 
in run
    self.do_egg_install()
  File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 116,
 in do_egg_install
    self.run_command('bdist_egg')
  File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 16
4, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py", line 15
0, in call_command
    self.run_command(cmdname)
  File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 
23, in run
    self.build()
  File "/usr/lib/python3.10/distutils/command/install_lib.py", line 109, in buil
d
    self.run_command('build_ext')
  File "/usr/lib/python3.10/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.10/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/tmp/dlib-19.16/setup.py", line 133, in run
    self.build_extension(ext)
  File "/tmp/dlib-19.16/setup.py", line 170, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/dlib-19.16/tools/python'
, '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/dlib-19.16/build/lib.linux-x86_64-3.10'
, '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release']' returne
d non-zero exit status 1.

>>> Cleaning up dlib

Temporary dlib files removed**

>>> Installing OpenCV

Requirement already satisfied: opencv-python in /usr/local/lib/python3.10/dist-p
ackages (4.7.0.72)
Requirement already satisfied: numpy>=1.21.2 in /usr/local/lib/python3.10/dist-p
ackages (from opencv-python) (1.26.2)
WARNING: Running pip as the 'root' user can result in broken permissions and con
flicting behaviour with the system package manager. It is recommended to use a v
irtual environment instead: https://pip.pypa.io/warnings/venv

>>> Configuring howdy

Camera ID saved
Permissions set
Howdy command installed

>>> Adding howdy as PAM module

Installation complete.
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for doc-base (0.11.1) ...
Processing 1 added doc-base file...

goliapp@goliapp-lenovothinkbook:~$ sudo howdy -U goliapp add
No module named 'dlib'

Can't import the dlib module, check the output of
pip3 show dlib

goliapp@goliapp-lenovothinkbook:~$ pip3 show dlib
WARNING: Package(s) not found: dlib

And Im not sure If i have to install by pip3, but I receive an error too:

goliapp@goliapp-lenovothinkbook:~$ pip3 show dlib
WARNING: Package(s) not found: dlib
goliapp@goliapp-lenovothinkbook:~$ pip3 install dlib
Defaulting to user installation because normal site-packages is not writeable
Collecting dlib
  Downloading dlib-19.24.2.tar.gz (11.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.8/11.8 MB 7.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dlib
  Building wheel for dlib (pyproject.toml) ... error
  error: subprocess-exited-with-error

  Γ— Building wheel for dlib (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [98 lines of output]
      running bdist_wheel
      running build
      running build_ext
      Building extension for Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0]
      Invoking CMake setup: 'cmake /tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/build/lib.linux-x86_64-cpython-310 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release'
      -- The C compiler identification is GNU 11.4.0
      -- The CXX compiler identification is Clang 13.0.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - failed
      -- Check for working CXX compiler: /home/goliapp/UbuntuApps/Swift/5.8/usr/bin/clang++
      -- Check for working CXX compiler: /home/goliapp/UbuntuApps/Swift/5.8/usr/bin/clang++ - broken
      CMake Error at /tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.27/Modules/CMakeTestCXXCompiler.cmake:60 (message):
        The C++ compiler

          "/home/goliapp/UbuntuApps/Swift/5.8/usr/bin/clang++"

        is not able to compile a simple test program.

        It fails with the following output:

          Change Dir: '/tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/build/temp.linux-x86_64-cpython-310/CMakeFiles/CMakeScratch/TryCompile-NpttHQ'

          Run Build Command(s): /tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/cmake/data/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_59ee7/fast
          /usr/bin/gmake  -f CMakeFiles/cmTC_59ee7.dir/build.make CMakeFiles/cmTC_59ee7.dir/build
          gmake[1]: Entering directory '/tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/build/temp.linux-x86_64-cpython-310/CMakeFiles/CMakeScratch/TryCompile-NpttHQ'
          Building CXX object CMakeFiles/cmTC_59ee7.dir/testCXXCompiler.cxx.o
          /home/goliapp/UbuntuApps/Swift/5.8/usr/bin/clang++    -MD -MT CMakeFiles/cmTC_59ee7.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_59ee7.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_59ee7.dir/testCXXCompiler.cxx.o -c /tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/build/temp.linux-x86_64-cpython-310/CMakeFiles/CMakeScratch/TryCompile-NpttHQ/testCXXCompiler.cxx
          Linking CXX executable cmTC_59ee7
          /tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/cmake/data/bin/cmake -E cmake_link_script CMakeFiles/cmTC_59ee7.dir/link.txt --verbose=1
          /home/goliapp/UbuntuApps/Swift/5.8/usr/bin/clang++ CMakeFiles/cmTC_59ee7.dir/testCXXCompiler.cxx.o -o cmTC_59ee7
          /usr/bin/ld: cannot find -lstdc++: No such file or directory
          clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
          gmake[1]: *** [CMakeFiles/cmTC_59ee7.dir/build.make:100: cmTC_59ee7] Error 1
          gmake[1]: Leaving directory '/tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/build/temp.linux-x86_64-cpython-310/CMakeFiles/CMakeScratch/TryCompile-NpttHQ'
          gmake: *** [Makefile:127: cmTC_59ee7/fast] Error 2

        CMake will not be able to correctly generate this project.
      Call Stack (most recent call first):
        CMakeLists.txt:14 (project)

      -- Configuring incomplete, errors occurred!
      Traceback (most recent call last):
        File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 404, in build_wheel
          return self._build_with_temp_dir(
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 389, in _build_with_temp_dir
          self.run_setup()
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 218, in <module>
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 103, in setup
          return distutils.core.setup(**attrs)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/wheel/bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/command/build.py", line 131, in run
          self.run_command(cmd_name)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
          self.distribution.run_command(command)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/dist.py", line 963, in run_command
          super().run_command(command)
        File "/tmp/pip-build-env-pwn1qsmg/overlay/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "<string>", line 130, in run
        File "<string>", line 167, in build_extension
        File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-6mx7dj4p/dlib_99a32f91dc0d470084e13fe010022af9/build/lib.linux-x86_64-cpython-310', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
jackfido commented 1 year ago

Sorry, I will go to read: https://github.com/boltgolt/howdy/issues/786