Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing cli module in ubuntu 23.10 #851

Open
g1ronn1mo opened this issue Nov 2, 2023 · 8 comments
Open

Missing cli module in ubuntu 23.10 #851

g1ronn1mo opened this issue Nov 2, 2023 · 8 comments
Labels
v2 Old version of Howdy (2.*)

Comments

@g1ronn1mo
Copy link

I tryed to add a new user by
$ sudo howdy add

Error:

Traceback (most recent call last):
  File "/usr/local/bin/howdy", line 95, in <module>
    import cli.add
ModuleNotFoundError: No module named 'cli'

Linux distribution (if applicable): Ubuntu 23.10

Howdy version (sudo howdy version): Howdy 2.6.1

I think that has something to do how the new ubuntu handels its python environment. I tried to install the cli package with pipx, but it did not find the module.

@JasonW41k3r
Copy link

Same problem as you, ubuntu 23.10

@ghost
Copy link

ghost commented Nov 20, 2023

Same here guys, Ubuntu 23.10, GNOME 45.

  1. I tried:
sudo add-apt-repository ppa:boltgolt/howdy
sudo apt update
sudo apt install howdy
  1. Howdy found the IR emitters:
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]: f

Unpacking howdy (2.6.1) ...
Setting up howdy (2.6.1) ...

>>> Upgrading pip to the latest version
  1. Then I got an error:
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
    
    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your
 Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Error while running last command
dpkg: error processing package howdy (--configure):
 installed howdy package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.11.2-3) ...
Errors were encountered while processing:
 howdy
E: Sub-process /usr/bin/dpkg returned an error code (1)
  1. Trying to config Howdy
marcos@oliveira:~$ sudo howdy config

sudo: howdy: command not found

  1. But Howdy is installed ?!
marcos@marcos-oliveira:~$ whereis howdy

howdy: /usr/share/man/man1/howdy.1.gz

I am very new to Linux, and am I doing something wrong? I would like to have the same experience when I unlock my Windows, but now, using Linux, which is much much better then Windows.

@g1ronn1mo
Copy link
Author

Got it running with ubuntu 23.10 without breakling any packages.
0. I dont know if this is necessary, but I did it.

sudo pip install -t /lib/security/howdy dlib   
sudo add-apt-repository ppa:boltgolt/howdy             
sudo apt update
sudo apt install howdy
sudo ln /lib/security/howdy/cli.py /usr/local/bin/howdy

Maybe it is easier to follow the instructions on #814. for the installation if the dlib library.

  1. download the deb12 packages from: build: provide a seperate python3-dlib dependency package on debian #814
  2. install them with right click
  3. sudo howdy config and change the line starting with device path to: device_path = /dev/video0
  4. sudo howdy add

Let me know if this is working for you.

@KeysBit
Copy link

KeysBit commented Jan 20, 2024

Not compeletly work. The command sudo ln /lib/security/howdy/cli.py /usr/local/bin/howdy change the relative diretory of cli.py so the import in python cannot detect the true module path so I only can run howdy by sudo /lib/security/howdy/cli.py... That`s really stupid, or maybe I cannot use python well...

@KeysBit
Copy link

KeysBit commented Jan 20, 2024

Not compeletly work. The command sudo ln /lib/security/howdy/cli.py /usr/local/bin/howdy change the relative diretory of cli.py so the import in python cannot detect the true module path so I only can run howdy by sudo /lib/security/howdy/cli.py... That`s really stupid, or maybe I cannot use python well...

Update: Trying to add sys.path.append('/lib/security/howdy') in cli.py after import sys got everything worked.

@GamerClassN7
Copy link

Any news ?

@saidsay-so saidsay-so added the v2 Old version of Howdy (2.*) label Apr 13, 2024
@jarda15
Copy link

jarda15 commented Apr 22, 2024

For me worked sudo /usr/local/bin/python3 -m pip install numpy opencv-python if still not working try ls /usr/local/bin/ and see which python u have installed and then repeat with other version. Like this sudo /usr/local/bin/put_your_python -m pip install numpy opencv-python

@einsteinarbert
Copy link

Same as error:

#927 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 Old version of Howdy (2.*)
Projects
None yet
Development

No branches or pull requests

7 participants