23
submitted 1 month ago by shaked_coffee@feddit.it to c/linux@lemmy.ml

cross-posted from: https://feddit.it/post/9251429

I was previously using PopOS! 22.04 on my tuxedo laptop and I'd installed on it Howdy to take advantage of the IR camera and have a windows hello alike face recognition feature.

Everything was working fine, but after some time GNOME 46 and its new goodies were too tempting to stick with Pop's old GNOME version (at least for me) and therefore I switched to Ubuntu 24.04

However, when I tried to install howdy using the PPAs as I did with Pop I noticed it wasn't working because of some changes that were made regarding on how Python is managed, and I couldn't find a solution for that. Looking at howdy's GitHub issues, there are a lot of them talking about this problem that seems to be started with 23.x versions already, but having so many issues created a bit too much confusion to me and I didn't manage to find a working solution from there.

Is there anyone here using Howdy on Ubuntu 24.04? How have you managed to install it?

top 6 comments
sorted by: hot top controversial new old
[-] Telorand@reddthat.com 7 points 1 month ago

This is going to sound patronizing, but did you try installing an older version of Python that works?

[-] shaked_coffee@feddit.it 3 points 1 month ago

Nope I didn't, but the problem doesn't seem to be the Python version, but instead the fact that now Python is "externally managed" and therefore I cannot install packages using pip install packagename as it used to be.

I know that this is done for security reasons and that the good practice would be using pipx or conda, but the problem is that howdy istallation still tries to use the "old approach"

[-] Mechanize@feddit.it 3 points 1 month ago* (last edited 1 month ago)

I'm no python expert but reading around it seems your only real solution is using a virtual environment, through pipx or venv as you already had found out, or using the

--break-system-packages

* Allow pip to modify an EXTERNALLY-MANAGED Python installation

  (environment variable: `PIP_BREAK_SYSTEM_PACKAGES`)

pip flag which, as the name suggest, should be avoided.

EDIT: After rereading I got your problem better and I was trying to read the source for Howdy to see how to do it, so far no luck.

[-] IrritableOcelot@beehaw.org 1 points 1 month ago

Many Python packages are packaged by apt to deal with this. Try apt search python3-.

[-] shaked_coffee@feddit.it 2 points 1 month ago

Thank you, but the problem is that is howdy installation (that gets automatically executed after I run sudo apt install howdy that tries to run "old fashioned" pip commands. So I should either find a way to tweak Howdy install (like building it from source after changing something maybe?) or disable this system security feature temporarily, install howdy and re-enable it immediately after

[-] Mechanize@feddit.it 3 points 1 month ago

disable this system security feature temporarily,

This should be - if I'm not mistaken - possible using the pip env var I posted about earlier, like this:

PIP_BREAK_SYSTEM_PACKAGES=1 sudo apt install howdy

Or exporting it for the current shell, before running the installation

export PIP_BREAK_SYSTEM_PACKAGES=1

But I personally highly discourage it, because - AFAIK - if it even works it will mess up the deps in your system.

this post was submitted on 10 Jul 2024
23 points (100.0% liked)

Linux

46643 readers
795 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS