Public bug reported:
python-libcec installs to /usr/lib/python2.7.15rc1/dist-packages.
It should be /usr/lib/python2.7/dist-packages.
The latter is on python's default import search path, the former is not.
$ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04
$ apt-cache policy python-libcec
python-libcec:
Installed: 4.0.2+dfsg1-2ubuntu1.1
Candidate: 4.0.2+dfsg1-2ubuntu1.1
Version table:
*** 4.0.2+dfsg1-2ubuntu1.1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/universe
amd64 Packages
100 /var/lib/dpkg/status
4.0.2+dfsg1-2ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64
Packages
$ dpkg -L python-libcec
[...]
/usr/lib/python2.7.15rc1/dist-packages/cec
/usr/lib/python2.7.15rc1/dist-packages/cec/__init__.py
/usr/lib/python2.7.15rc1/dist-packages/cec/_cec.so
$ python
>>> import cec
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cec
>>> import sys; print sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages']
This is the only thing installed in /usr/lib/python2.7.15rc1:
$ ls /usr/lib/python2.7.15rc1/dist-packages/
cec/
** Affects: libcec (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1822066
Title:
python-libcec installs to /usr/lib/python2.7.15rc1/dist-packages which
isn't on python import path
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libcec/+bug/1822066/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs