howdy icon indicating copy to clipboard operation
howdy copied to clipboard

`sudo howdy test` giving error

Open hemangjoshi37a opened this issue 1 year ago • 8 comments

Comamnd I ran :

sudo howdy test

Error I got :

Traceback (most recent call last):
  File "/usr/local/bin/howdy", line 109, in <module>
    import cli.test
  File "/usr/lib/security/howdy/cli/test.py", line 8, in <module>
    import dlib
ModuleNotFoundError: No module named 'dlib'

hemangjoshi37a avatar Apr 05 '23 06:04 hemangjoshi37a

Comamnd I ran :

sudo howdy -U hemang add

Error I got :

No module named 'dlib'

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

hemangjoshi37a avatar Apr 05 '23 06:04 hemangjoshi37a

you must install dlib from pip pip install dlib

etx2 avatar Apr 10 '23 19:04 etx2

Already tried that

hemangjoshi37a avatar Apr 10 '23 19:04 hemangjoshi37a

what the return of pip show dlib if u have newer version of debian you can't install whitout disable the externally-managed-environment (this is marked as default for security) please show me ls -l /usr/local/bin/howdy

etx2 avatar Apr 10 '23 19:04 etx2

I'm having this same issue. I believe it occurs at installation, as a number of errors are spat out related to dlib.

Here's the output from the install:

https://pastebin.com/V87Vgcuu

The output from pip show dlib:

Version: 19.24.1
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: [email protected]
License: Boost Software License
Location: /home/edward/.local/lib/python3.11/site-packages
Requires:
Required-by:

The output from ls -l /usr/local/bin/howdy:

lrwxrwxrwx 1 root root 26 Apr 19 16:38 /usr/local/bin/howdy -> /lib/security/howdy/cli.py*

Note that this is with externally-managed-environment disabled.

Jackaed avatar Apr 19 '23 15:04 Jackaed

Also noteworthy is that when uninstalling howdy you get:

WARNING: Skipping dlib as it is not installed.

Jackaed avatar Apr 19 '23 15:04 Jackaed

try to remove it and install manually via pip install dlib. I have also installed this python3-full in my sistem from apt. My running version is different from yours and I have 19.16.0

etx2 avatar Apr 20 '23 09:04 etx2

I managed to get it working after doing these two things prior to installation:

  1. Installing python3-full from apt
  2. Installing dlib from pip as root (installing as regular user did not help).

This seems to have got howdy fully functioning.

Thanks for the help!

Jackaed avatar Apr 20 '23 12:04 Jackaed