Yubico Forum
https://forum.yubico.com/

yubikey-piv-manager and Ubuntu Trusty
https://forum.yubico.com/viewtopic.php?f=30&t=2406
Page 1 of 1

Author:  mrfsl [ Tue Aug 30, 2016 3:18 pm ]
Post subject:  yubikey-piv-manager and Ubuntu Trusty

Help would be greatly appreciated.

The official yubikey-piv-manager version 1.3.0-1~ppa1~trusty1 installed from PPA will not start on Ubuntu version 14.04 (Trusty.)

Output:

Quote:
Traceback (most recent call last):
File "/usr/bin/pivman", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PySide

Author:  linsam [ Wed Aug 31, 2016 4:28 am ]
Post subject:  Re: yubikey-piv-manager and Ubuntu Trusty

I'm seeing this too, even after running
Code:
apt-get install python-pyside
, which I would have expected should be a dependency of the package. I found a related bug report here at https://github.com/Yubico/yubioath-desktop/issues/26, although it is for a different program.

However, following the work-around instructions in that bug report leads me to subsequent trouble:

Code:
Traceback (most recent call last):
  File "/usr/bin/pivman", line 9, in <module>
    load_entry_point('yubikey-piv-manager==1.3.0', 'gui_scripts', 'pivman')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pivman/__main__.py", line 33, in <module>
    from pivman.view.main import MainWidget
  File "/usr/lib/python2.7/dist-packages/pivman/view/main.py", line 30, in <module>
    from pivman.watcher import ControllerWatcher
  File "/usr/lib/python2.7/dist-packages/pivman/watcher.py", line 29, in <module>
    from pivman.controller import Controller
  File "/usr/lib/python2.7/dist-packages/pivman/controller.py", line 35, in <module>
    from hashlib import pbkdf2_hmac
ImportError: cannot import name pbkdf2_hmac


According to the hashlib docs, the available hashes depend on how python is linked against openssl. On my 14.04 system, python2's hashlib lacks pbkdf2_hmac, but python3's hashlib does have it. However, I cannot run pivman via python3 as it then cannot find other packages, like yubikey-piv-manager.

That's all I've got for now.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/