thp / pyotherside

Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
https://thp.io/2011/pyotherside/
Other
364 stars 49 forks source link

fails to sometimes import yubikey modules #108

Open fezie opened 5 years ago

fezie commented 5 years ago

Hi,

somestimes yubioath-desktop works and sometimes not. I haven't figured out why. It helps if I just reinstall the (selfcompiled) Debian package. Or if I extract it in my home folder and run the binary from there instead of /usr/bin.

System ist Debian unstable with pyotherside 1.5.8

Here the error messages when it fails:


$ yubioath-desktop 
Got library name:  "/usr/lib/x86_64-linux-gnu/qt5/qml/io/thp/pyotherside/libpyothersideplugin.so"
"PyOtherSide error: Traceback (most recent call last):\n\n  File \"<string>\", line 1, in <module>\n\nAttributeError: module 'yubikey' has no attribute 'init'\n"
qml: Function not found: 'yubikey.init' (Traceback (most recent call last):

  File "<string>", line 1, in <module>

AttributeError: module 'yubikey' has no attribute 'init'

Any Idea how to debug this?