Cannot launch yubioath - throws Python ImportError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
yubioath-desktop (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Hans Joachim Desserud |
Bug Description
SRU:
[Impact]
The program lacks neccessary dependencies in order to start.
The SRU adss these dependencies.
[Test case]
1. Install yubioath-desktop
2. (Verify that python-
3. Attempt to run yubioath from a terminal
With python-
(Note that due to the nature of the program, it will almost immediately check for an USB key, which it won't find if none is inserted.)
4. Attempt to remove python-
[Regression potential]
Low. Dependencies are only added. These are the same ones used by newer versions of the package in for instance 17.04.
Original report:
Found on Ubuntu 16.04 Xenial Xerus amd64 running on Dell Latitude E6420
Launching yubioath does not start the application but aborts with the following error:
$ yubioath
Traceback (most recent call last):
File "/usr/bin/
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources
I installed the package from universe:
$ apt show yubioath-desktop
Package: yubioath-desktop
Version: 2.3.0-1
Priority: optional
Section: universe/utils
Origin: Ubuntu
Maintainer: Ubuntu Developers <email address hidden>
Original-
Bugs: https:/
Installed-Size: 385 kB
Depends: libykpers-1-1 (>= 1.11), python-
Recommends: pcscd
Homepage: https:/
Download-Size: 98,1 kB
APT-Manual-
APT-Sources: http://
Description: Graphical interface for displaying OATH codes with a Yubikey
The Yubico Authenticator is a graphical desktop tool for generating Open
AuTHentication (OATH) event-based HOTP and time-based TOTP one-time password
codes, with the help of a Yubikey that protects the shared secrets.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: yubioath-desktop 2.3.0-1
ProcVersionSign
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun May 29 12:04:30 2016
InstallationDate: Installed on 2016-05-25 (3 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: yubioath-desktop
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
I was able to solve this problem by installing the python-setuptools package which was missing for python 2.7.
Please add this to the dependency