1

I'm using Ubuntu 24.04, I've been trying to enable and configure Face ID using Howdy on my laptop but keep getting this error.

No module names 'dlib'

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

NotTheDr01ds
  • 22,381
  • 1
    How did you install howdy? Did you try pip3 show dlib and if so did it output anything? – steeldriver Apr 01 '25 at 22:05
  • 2
    how is this related to kali-linux-tools – Archisman Panigrahi Apr 02 '25 at 00:25
  • Your question and tags very much contradict, so what are you running? As the face ID maybe driver related; and Kubuntu and Ubuntu have different kernel stack defaults (depending on install media used), please clarify what you're using. – guiverc Apr 02 '25 at 02:42
  • my bad if my tags contradict, I'm on ubuntu OS and when I try pip3 show dlib it outputs.

    Name: dlib Version: 19.24.6 Summary: A toolkit for making real world machine learning and data analysis applications Home-page: https://github.com/davisking/dlib Author: Davis King Author-email: davis@dlib.net License: Boost Software License Location: /home/teejay/myenv/lib/python3.12/site-packages Requires: Required-by:

    – Olaoye Tijani Apr 02 '25 at 07:36

1 Answers1

0

Install dlib using pip. Open the terminal and type:

sudo apt update  
sudo apt install python3-dev python3-pip python3-setuptools cmake libboost-all-dev libopenblas-dev libatlas-base-dev libx11-dev    
pip3 install dlib
python3 -c "import dlib; print(dlib.__version__)" # verify the dlib installation 
sudo howdy add  # enroll a new face in Howdy's facial recognition system

Maybe sudo howdy add is unable to access dlib because dlib is installed in a virtual environment and dlib is trying to access something in your filesystem that it can't access from inside the virtual environment where you installed it.

You also need to be careful when using Kali Linux Tools in Ubuntu. I recommend reading the answers to How to stop Katoolin from crashing Ubuntu?.

karel
  • 122,695
  • 134
  • 305
  • 337
  • thanks. I've done all these process before, I had to create a virtual environment before I could install pip3 install dlib and it's working. sudo howdy config is working . it's only sudo howdy add that is giving me problem – Olaoye Tijani Apr 02 '25 at 07:46
  • Maybe sudo howdy add is unable to access dlib because dlib is installed in a virtual environment and dlib is trying to access something in your filesystem that it can't access from inside the virtual environment where you installed it. – karel Apr 02 '25 at 08:01