howdy
howdy copied to clipboard
howdy add error No module named 'numpy'
$ sudo howdy add
Traceback (most recent call last):
File "/usr/local/bin/howdy", line 95, in
then
$ sudo howdy snapshot
Traceback (most recent call last):
File "/usr/local/bin/howdy", line 107, in
File "/usr/lib/security/howdy/snapshot.py", line 4, in
I've searched for similar issues already, and my issue has not been reported yet.
Linux distribution Ubuntu 20.10
Howdy 2.6.1
check if python-numpy and python-opencv are currently installed on your system
$ pip3 show numpy Name: numpy Version: 1.19.4 Summary: NumPy is the fundamental package for array computing with Python. Home-page: https://www.numpy.org Author: Travis E. Oliphant et al. Author-email: None License: BSD Location: /home/david/.local/lib/python3.8/site-packages Requires: Required-by: scipy, tifffile, scikit-image, PyWavelets, opencv-python, matplotlib, imageio, wxPython
$ pip3 install opencv-python Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: opencv-python in /usr/local/lib/python3.8/dist-packages (4.4.0.42) Requirement already satisfied: numpy>=1.17.3 in /home/david/.local/lib/python3.8/site-packages (from opencv-python) (1.19.4)
Try sudo pip3 install opencv-python numpy
to install the packages in system directories
$ sudo pip3 install opencv-python numpy
Traceback (most recent call last):
File "/lib/security/howdy/compare.py", line 17, in
Then...
sudo howdy add
Traceback (most recent call last):
File "/usr/local/bin/howdy", line 95, in
Extremely weird, what you did should have fixed the issue. Have you tried reinstalling Howdy itself?
Uninstalled and reinstalled multiple times. I wonder if it is to with the fact I am doing this on Ubuntu 20.10. I asked Slimbook for help with Slimbook Face, before I found out it was just a GUI for Howdy, and they said it works on 20.04 but that they have no ideas about 20.10.
@boltgolt Everything worked fine for me on Ubuntu 20.10, but this problem came after updating to Ubuntu 21.04
It was necessary to install manually
sudo pip3 install numpy
sudo pip3 install opencv-python
sudo pip3 install dlib
david@pixie:~$ sudo pip3 install numpy [sudo] password for david: Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (1.20.2) WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv david@pixie:~$ sudo pip3 install opencv-python Requirement already satisfied: opencv-python in /usr/local/lib/python3.9/dist-packages (4.5.1.48) Requirement already satisfied: numpy>=1.19.3 in /usr/local/lib/python3.9/dist-packages (from opencv-python) (1.20.2) WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv david@pixie:~$ sudo pip3 install dlib Collecting dlib Downloading dlib-19.22.0.tar.gz (7.4 MB) |ββββββββββββββββββββββββββββββββ| 7.4 MB 2.5 MB/s Building wheels for collected packages: dlib Building wheel for dlib (setup.py) ... done Created wheel for dlib: filename=dlib-19.22.0-cp39-cp39-linux_x86_64.whl size=4353319 sha256=9b48f6de28b42af522e3c249c25d2d89cca26ec18d7c78f095a7a00a640df4fc Stored in directory: /root/.cache/pip/wheels/33/2c/16/6ceb1bda8e67571304aaf3cd80c8cb47dc8d5ab99e34bda88b Successfully built dlib Installing collected packages: dlib Successfully installed dlib-19.22.0 WARNING: Running pip as root will break packages and permissions. You should install packages reliably by using venv: https://pip.pypa.io/warnings/venv david@pixie:~$
Ubuntu 21.04
This is new.
Traceback (most recent call last):
File "/var/lib/dpkg/info/howdy.postinst", line 110, in
The problem was fixed for me by installing only the packages specified in my previous message. I didn't invest more, but if you don't use python packages for other programs, you can uninstall all the python packages and howdy and try to reinstall the whole thing
This is still a problem...
Maybe using the distribution's repo is a better idea than using pip: sudo apt install python3-numpy
?
sudo apt install python3-numpy Done long ago. I get the same with other python solutions though, so not your fault.
Same issue on Pop_OS 22.04
Hey @boltgolt are you still looking into this issue? I can confirm this is a problem on PopOS 22.04 too
It usually seems to be an issue where the python environment pip uses is not the one that Howdy will load into. Maybe:
python3 -m pip install numpy
python3 -m pip install opencv-python
python3 -m pip install dlib
All three should result in a Requirement already satisfied
Nope, that's still not it. I believe howdy is looking in the wrong (old?) locations. I'm on Ubuntu 22.10 now.
Howdy just imports like any other python3 script. Maybe you can look into similar issues with other python programs?
I think I can confirm that this happens after release upgrade. I upgrdaded from 22.04 to 23.04 and this happened
Disappointing.
Do you have multiple versions of Python installed on your system?
this work for me on debian 12:
$nano ~/.bashrc
in the end of this file(bashrc) write: export PATH="$HOME/.local/bin:$PATH"
save the file with ctrl+x
, y
, enter
source ~/.bashrc
reinstall te packages (numpy
, opencv-python
,dlib
)