From: Ricardo Wurmus <rekado@elephly.net>
To: 35808@debbugs.gnu.org
Subject: bug#35808: python-yubikey-manager: ykman crashes
Date: Mon, 20 May 2019 14:40:04 +0200 [thread overview]
Message-ID: <87mujhi9jv.fsf@elephly.net> (raw)
I installed python-yubikey-manager and wanted to see a list of all
connected keys (one is connected), but instead got this backtrace:
--8<---------------cut here---------------start------------->8---
$ ykman list
Traceback (most recent call last):
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/bin/.ykman-real", line 11, in <module>
load_entry_point('yubikey-manager==2.1.0', 'console_scripts', 'ykman')()
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/lib/python3.7/site-packages/ykman/cli/__main__.py", line 253, in main
cli(obj={})
File "/gnu/store/y5jigvqfpdsnxgvgxhj2aiyj8xcsk6nk-python-click-7.0/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/gnu/store/y5jigvqfpdsnxgvgxhj2aiyj8xcsk6nk-python-click-7.0/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/gnu/store/y5jigvqfpdsnxgvgxhj2aiyj8xcsk6nk-python-click-7.0/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/gnu/store/y5jigvqfpdsnxgvgxhj2aiyj8xcsk6nk-python-click-7.0/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/gnu/store/y5jigvqfpdsnxgvgxhj2aiyj8xcsk6nk-python-click-7.0/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/gnu/store/y5jigvqfpdsnxgvgxhj2aiyj8xcsk6nk-python-click-7.0/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/lib/python3.7/site-packages/ykman/cli/__main__.py", line 213, in list_keys
for dev in list_devices():
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/lib/python3.7/site-packages/ykman/descriptor.py", line 152, in list_devices
for d in _list_drivers(transports):
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/lib/python3.7/site-packages/ykman/descriptor.py", line 138, in _list_drivers
for dev in open_ccid():
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/lib/python3.7/site-packages/ykman/driver_ccid.py", line 322, in open_devices
readers = list_readers()
File "/gnu/store/rnn8dafmhl7flhvdmgn3v67y8zhshp3a-python-yubikey-manager-2.1.0/lib/python3.7/site-packages/ykman/driver_ccid.py", line 312, in list_readers
return System.readers()
File "/gnu/store/2q87j0qfp3blwvkq9x46514k86dgqi0q-python-pyscard-1.9.8/lib/python3.7/site-packages/smartcard/System.py", line 42, in readers
return smartcard.reader.ReaderFactory.ReaderFactory.readers(groups)
File "/gnu/store/2q87j0qfp3blwvkq9x46514k86dgqi0q-python-pyscard-1.9.8/lib/python3.7/site-packages/smartcard/reader/ReaderFactory.py", line 58, in readers
zreaders += fm(groups)
File "/gnu/store/2q87j0qfp3blwvkq9x46514k86dgqi0q-python-pyscard-1.9.8/lib/python3.7/site-packages/smartcard/pcsc/PCSCReader.py", line 110, in readers
hcontext = PCSCContext().getContext()
File "/gnu/store/2q87j0qfp3blwvkq9x46514k86dgqi0q-python-pyscard-1.9.8/lib/python3.7/site-packages/smartcard/pcsc/PCSCContext.py", line 56, in __init__
self.renewContext()
File "/gnu/store/2q87j0qfp3blwvkq9x46514k86dgqi0q-python-pyscard-1.9.8/lib/python3.7/site-packages/smartcard/pcsc/PCSCContext.py", line 70, in renewContext
PCSCContext.instance = PCSCContext.__PCSCContextSingleton()
File "/gnu/store/2q87j0qfp3blwvkq9x46514k86dgqi0q-python-pyscard-1.9.8/lib/python3.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.'
--8<---------------cut here---------------end--------------->8---
--
Ricardo
next reply other threads:[~2019-05-20 12:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-20 12:40 Ricardo Wurmus [this message]
2019-05-20 21:39 ` bug#35808: python-yubikey-manager: ykman crashes Ricardo Wurmus
2019-05-20 21:56 ` Ricardo Wurmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mujhi9jv.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=35808@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.