Giter Club home page Giter Club logo

Comments (10)

fdennis avatar fdennis commented on July 30, 2024 3

Hello,
1.2.5 has just been released and is compatible with ykman 5.0.1.

from yubikey-manager-qt.

vbrandl avatar vbrandl commented on July 30, 2024 2

While it doesn't solve the actual problem, creating a python virtual environment, installing yubikey-manager 4 and starting ykman-gui inside that environment, works for now:

python -m venv .venv
source .venv/bin/activate
pip install yubikey-manager==4.0.9

For now I use the following script inside the venv to start ykman-gui:

#!/usr/bin/bash

source .venv/bin/activate
ykman-gui
deactivate

from yubikey-manager-qt.

vbrandl avatar vbrandl commented on July 30, 2024 2

Looking at https://github.com/archlinux/svntogit-community/commits/packages/yubikey-manager/trunk, Arch Linux downgraded the yubikey-manager package back to 4.0.9. This should fix the problem for Arch based distros for now.

from yubikey-manager-qt.

AidanGG avatar AidanGG commented on July 30, 2024 1

#320 occurs from misconfiguration of the Python environment, this issue occurs because of the incompatibility with the newly released ykman 5.

from yubikey-manager-qt.

dainnilsson avatar dainnilsson commented on July 30, 2024

The ykman CLI project uses semantic versioning, and the major number increase from 4 to 5 signals backwards incompatible changes. yubikey-manager-qt requires ykman 4.x. and any packaging of the yubikey-manager-qt needs to ensure this.

from yubikey-manager-qt.

gbcox avatar gbcox commented on July 30, 2024

Any idea when this will be upgraded for ykman 5. This will be another blocker for Fedora.

from yubikey-manager-qt.

IPlayZed avatar IPlayZed commented on July 30, 2024

Hi, I can confirm that on Arch the Qt apps are broken.

My relevant logs are:

Oct 29 18:18:08 archpc yubioath-desktop[5437]: "PyOtherSide error: Traceback (most recent call last):\n\n  File \"qrc:///py/yubikey.py\", line 23, in <module>\n    from ykman.device import scan_devices, list_all_devices, connect_to_device, get_name, read_info\n\nImportError: cannot import name 'connect_to_device' from 'ykman.device' (/usr/lib/python3.10/site-packages/ykman/device.py)\n"
Oct 29 18:18:08 archpc yubioath-desktop[5437]: Unhandled PyOtherSide error: Cannot import module: yubikey (Traceback (most recent call last):
                                               
                                                 File "qrc:///py/yubikey.py", line 23, in <module>
                                                   from ykman.device import scan_devices, list_all_devices, connect_to_device, get_name, read_info
                                               
                                               ImportError: cannot import name 'connect_to_device' from 'ykman.device' (/usr/lib/python3.10/site-packages/ykman/device.py)
                                               )
Oct 29 18:18:08 archpc yubioath-desktop[5437]: "PyOtherSide error: Traceback (most recent call last):\n\n  File \"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
Oct 29 18:18:08 archpc yubioath-desktop[5437]: Unhandled PyOtherSide error: Function not found: 'yubikey.init' (Traceback (most recent call last):
                                               
                                                 File "<string>", line 1, in <module>
                                               
                                               NameError: name 'yubikey' is not defined
                                               )
Oct 29 18:18:08 archpc yubioath-desktop[5437]: "PyOtherSide error: Traceback (most recent call last):\n\n  File \"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
Oct 29 18:18:08 archpc yubioath-desktop[5437]: Unhandled PyOtherSide error: Function not found: 'yubikey.controller.check_descriptors' (Traceback (most recent call last):
                                               
                                                 File "<string>", line 1, in <module>
                                               
                                               NameError: name 'yubikey' is not defined
                                               )
Oct 29 18:18:08 archpc yubioath-desktop[5437]: qml: TypeError: Cannot read property 'success' of undefined undefined
Oct 29 18:18:08 archpc yubioath-desktop[5437]: "PyOtherSide error: Traceback (most recent call last):\n\n  File \"<string>\", line 1, in <module>\n\nNameError: name 'yubikey' is not defined\n"
Oct 29 18:18:08 archpc yubioath-desktop[5437]: Unhandled PyOtherSide error: Function not found: 'yubikey.controller.is_win_non_admin' (Traceback (most recent call last):
                                               
                                                 File "<string>", line 1, in <module>
                                               
                                               NameError: name 'yubikey' is not defined
                                               )

This breaks yubikey-manager as well. It seems like the core problem is that the correct Python module can not be imported: Unhandled PyOtherSide error: Cannot import module: yubikey
My relevant package versions are:

yubico-c 1.13-6
yubico-c-client 2.15-5
yubico-pam 2.27-2
yubikey-full-disk-encryption r150.2c5fdf3-1
yubikey-manager 5.0.0-1
yubikey-manager-qt 1.2.4-1
yubikey-personalization 1.20.0-3
yubikey-personalization-gui 3.1.25-2
python 3.10.8-2

from yubikey-manager-qt.

IPlayZed avatar IPlayZed commented on July 30, 2024

Seems to be the same thing as #320 .

from yubikey-manager-qt.

dainnilsson avatar dainnilsson commented on July 30, 2024

Any idea when this will be upgraded for ykman 5. This will be another blocker for Fedora.

Unfortunately I don't have a date for that, nothing scheduled right now. If I were to make a guess I'd say sometime in Q1 of next year, but don't hold me to that!

from yubikey-manager-qt.

IPlayZed avatar IPlayZed commented on July 30, 2024

This issue should be closed as far as I understand.

from yubikey-manager-qt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.