Page MenuHomeSolus

yubioath-desktop pcscd service not available
Open, NormalPublic

Description

When yubioath is started from the command line it can't find the module the module pkg_resources

Traceback (most recent call last):
  File "/usr/bin/yubioath-gui", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

This can be resolved by installing python-setuptools. So it should probably be added as a rundep

When python-setuptools installed is still does not run:

Traceback (most recent call last):
  File "/usr/bin/yubioath", line 9, in <module>
    load_entry_point('yubioath-desktop==3.1.0', 'console_scripts', 'yubioath')()
  File "/usr/lib/python2.7/site-packages/yubioath/cli/__main__.py", line 327, in main
    cli(obj={})
  File "/usr/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1057, in invoke
    Command.invoke(self, ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/yubioath/cli/__main__.py", line 85, in cli
    ctx.obj['dev'] = open_scard(reader)
  File "/usr/lib/python2.7/site-packages/yubioath/core/ccid.py", line 62, in open_scard
    for reader in System.readers():
  File "/usr/lib/python2.7/site-packages/smartcard/System.py", line 42, in readers
    return smartcard.reader.ReaderFactory.ReaderFactory.readers(groups)
  File "/usr/lib/python2.7/site-packages/smartcard/reader/ReaderFactory.py", line 58, in readers
    zreaders += fm(groups)
  File "/usr/lib/python2.7/site-packages/smartcard/pcsc/PCSCReader.py", line 108, in readers
    hcontext = PCSCContext().getContext()
  File "/usr/lib/python2.7/site-packages/smartcard/pcsc/PCSCContext.py", line 53, in __init__
    PCSCContext.instance = PCSCContext.__PCSCContextSingleton()
  File "/usr/lib/python2.7/site-packages/smartcard/pcsc/PCSCContext.py", line 40, in __init__
    raise EstablishContextException(hresult)
smartcard.pcsc.PCSCExceptions.EstablishContextException: 'Failure to establish context: Service not available.'

This can be solved by starting the pcscd service. Is it maybe possible to enable socket activation?

Event Timeline

JoshStrobl triaged this task as Normal priority.
JoshStrobl added a project: Software.
JoshStrobl added a subscriber: JoshStrobl.

Is it maybe possible to enable socket activation?

We already provide the socket file in /usr/lib/systemd/system/pcscd.socket but it looks like I need enable tmpfiles support and add /var/run/pcscd/ in there.

+1 for adding "python-setuptools" as a dependency, wouldn't run for me without it and couldn't figure out why until seeing this issue.

@JoshStrobl Any chance that you had the time to have a closer look at this yet?

yubioath-desktop also seems to have an issue with QML now

yubioath-desktop
QQmlApplicationEngine failed to load component
qrc:///qml/main.qml:5 module "QtQuick.Dialogs" is not installed
qrc:///qml/main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/main.qml:4 module "QtQuick.Controls.Styles" is not installed
qrc:///qml/main.qml:5 module "QtQuick.Dialogs" is not installed
qrc:///qml/main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/main.qml:4 module "QtQuick.Controls.Styles" is not installed
qrc:///qml/main.qml:5 module "QtQuick.Dialogs" is not installed
qrc:///qml/main.qml:2 module "QtQuick.Controls" is not installed
qrc:///qml/main.qml:4 module "QtQuick.Controls.Styles" is not installed

zsh: segmentation fault  yubioath-desktop
JoshStrobl moved this task from Backlog to Package Fixes on the Software board.Nov 24 2017, 6:17 PM
JoshStrobl removed JoshStrobl as the assignee of this task.Oct 20 2018, 4:32 PM