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

UBUNTU 24.04 LTS #890

Open
whackl opened this issue Feb 9, 2024 · 21 comments
Open

UBUNTU 24.04 LTS #890

whackl opened this issue Feb 9, 2024 · 21 comments

Comments

@whackl
Copy link

whackl commented Feb 9, 2024

Hi there,
Ubuntu 24.04 lts is on its was, will there be aversion for the New lts ?

@l3ifk
Copy link

l3ifk commented Apr 21, 2024

Is there any update on this??

@cemoral
Copy link

cemoral commented Apr 25, 2024

For me howdy was removed during the installation of 24.04 as unsupported software. I made it work after re-installing it with following the steps on the guide.

@l3ifk
Copy link

l3ifk commented Apr 25, 2024

When adding the repository it says that the repository does not have a release file. When trying sudo apt install howdy, I get following output:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package howdy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'howdy' has no installation candidate

Installing with the .deb file is also not possible because it will just stay at "preparing..." forever...

Edit: That is the repository error:

E: The repository 'https://ppa.launchpadcontent.net/boltgolt/howdy/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

@boltgolt
Copy link
Owner

Copied the package to Ubuntu Noble on launchpad, should be available within another hour or so. Thanks for reporting!

@l3ifk
Copy link

l3ifk commented Apr 25, 2024

Thank you the install and setup works. Unfortunately my laptop does not try to use howdy even after a reboot.. It is enabled in PAM and I setup face models.
Also when using howdy test, I get a red circle around my face but never a green one. So it seems like howdy recognizes a face but not that it's mine? But I'm not sure about that one.

Edit: Even after a clean install of Ubutnu 24.04, which solved other issues I had, howdy's behavior is still the same.

@l3ifk
Copy link

l3ifk commented Apr 25, 2024

Also this error comes up during the install, I don't know if this causes a issues:

bind11::get_type_overload(const void*, const detail::type_info*, const char*)’:
/tmp/dlib-19.16/dlib/external/pybind11/include/pybind11/pybind11.h:1888:49: error: ‘PyThreadState’ {ak
a ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’?
 1888 |     PyFrameObject *frame = PyThreadState_Get()->frame;
      |                                                 ^~~~~
      |                                                 cframe
/tmp/dlib-19.16/dlib/external/pybind11/include/pybind11/pybind11.h:1889:41: error: invalid use of inco
mplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 1889 |     if (frame && (std::string) str(frame->f_code->co_name) == name &&
      |                                         ^~
/usr/include/python3.12/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct 
_frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/tmp/dlib-19.16/dlib/external/pybind11/include/pybind11/pybind11.h:1890:14: error: invalid use of inco
mplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 1890 |         frame->f_code->co_argcount > 0) {
      |              ^~
/usr/include/python3.12/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct 
_frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
/tmp/dlib-19.16/dlib/external/pybind11/include/pybind11/pybind11.h:1893:18: error: invalid use of inco
mplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 1893 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                  ^~
/usr/include/python3.12/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct 
_frame’}
   22 | typedef struct _frame PyFrameObject;
      |                ^~~~~~
In file included from /usr/include/python3.12/Python.h:38:
/tmp/dlib-19.16/dlib/external/pybind11/include/pybind11/pybind11.h:1893:52: error: invalid use of inco
mplete type ‘PyFrameObject’ {aka ‘struct _frame’}
 1893 |             frame->f_locals, PyTuple_GET_ITEM(frame->f_code->co_varnames, 0));
      |                                                    ^~

@aszabo70
Copy link

Hi, how did you install it on Ubuntu 24.04 with success? Because I have tried it according to description, added the repository, then after update I did install with apt, but at the end I got the following error message:
Sub-process /usr/bin/dpkg returned an error code (1)
Could somebody give me a detailed step by step howto?

@l3ifk
Copy link

l3ifk commented Apr 28, 2024

Hi, how did you install it on Ubuntu 24.04 with success? Because I have tried it according to description, added the repository, then after update I did install with apt, but at the end I got the following error message:
Sub-process /usr/bin/dpkg returned an error code (1)
Could somebody give me a detailed step by step howto?

What else did it say before the last error. Could you give the whole error?

@aszabo70
Copy link

Yes

/var/lib/dpkg/info/howdy.postinst:145: SyntaxWarning: invalid escape sequence '\w'
"davisking-dlib-\w+/(dlib/(http_client|java|matlab|test/)|"

Upgrading pip to the latest version

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.12/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: hiba a csomag feldolgozásakor: howdy (--configure):
installed howdy package post-installation script subprocess returned error exit status 1

@aszabo70
Copy link

And something else to it: I installed it with success on MX23, that is debian 12.

@enbzz
Copy link

enbzz commented Apr 29, 2024

I have successfully installed howdy on 24.04 such that the test and configuration works fine.
I do see my face and the IR emitter is turned on.
Although everything seems to be working, then howdy is not being used at login or for any operation requiring the password. Could 24.04 have changed something and forbid howdy to work correctly?

@cemoral
Copy link

cemoral commented Apr 29, 2024

I did a manual installation with meson and the packages that should be on global pip like this
$ sudo pip install --break-system-packages dlib

@enbzz
Copy link

enbzz commented Apr 29, 2024

externally-managed-environment

I solved this by using:
sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old

@l3ifk
Copy link

l3ifk commented Apr 29, 2024

I have successfully installed howdy on 24.04 such that the test and configuration works fine. I do see my face and the IR emitter is turned on. Although everything seems to be working, then howdy is not being used at login or for any operation requiring the password. Could 24.04 have changed something and forbid howdy to work correctly?

I have the exact same problem. Is there any fix for this? I already checked in sudo pam-auth-update and howdy is enabled there.

@aszabo70
Copy link

I could solve the issue but only with howdy_2.6.1.deb. I know this is a little bit old version but works.

@l3ifk
Copy link

l3ifk commented Apr 29, 2024

unfortunately when trying to install the .deb you mentioned. It's just saying "preparing..." forever without actually installing anything...

@aszabo70
Copy link

Interesting, I had only one problem with ConfigParser in pam.py, it should be changed to configparser.
Some information regarding my system:

cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

cat /etc/debian_version
trixie/sid

dpkg -l | grep howdy
ii howdy 2.6.1 all Howdy: Windows Hello style authentication for Linux.

dpkg -l | grep dlib
ii libpython3-stdlib:amd64 3.12.3-0ubuntu1 amd64 interactive high-level object-oriented language (default python3 version)
ii libpython3.12-stdlib:amd64 3.12.3-1 amd64 Interactive high-level object-oriented language (standard library, version 3.12)

I cannot give more info, sorry.

@l3ifk
Copy link

l3ifk commented Apr 29, 2024

Interesting, it looks just like mine. I tried installing the .deb within the terminal to get the error while installing and I got this:

sudo dpkg -i howdy_2.6.1.deb 
(Reading database ... 228329 files and directories currently installed.)
Preparing to unpack howdy_2.6.1.deb ...
Backup of Howdy config file created in /tmp/howdy_config_backup_v2.6.1.ini
Unpacking howdy (2.6.1) over (2.6.1) ...
Setting up howdy (2.6.1) ...
/var/lib/dpkg/info/howdy.postinst:145: SyntaxWarning: invalid escape sequence '\w'
  "davisking-dlib-\w+/(dlib/(http_client|java|matlab|test/)|"
Processing triggers for man-db (2.12.0-4build2) ...

@Tegaf
Copy link

Tegaf commented May 3, 2024

I manually installed the beta version Howdy 3.0.0 BETA on Ubuntu 24.04. Problem with
No module named dlib
solved with:
sudo pip install --break-system-packages dlib-bin

@l3ifk
Copy link

l3ifk commented May 3, 2024

Thanks for the suggesting but I still get the same error while install howdy 3.0.0 BETA, even when trying to install the beta version.

@davclark
Copy link

The distro packagers put that EXTERNALLY-MANAGED file there to prevent anything other than apt/dpkg managing libraries installed in the system python. You can read about it here: https://packaging.python.org/en/latest/specifications/externally-managed-environments/

This is done to protect the system from breakage... ironically including security issues. So if you're thinking of moving that file, you can read more about what that actually does above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants