Python: import cec fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcec (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Reproduction
------------
On Ubuntu 18.04 I run:
$ sudo apt install python-libcec
$ python -c 'import cec'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/
_cec = swig_import_
File "/usr/lib/
return importlib.
File "/usr/lib/
__import_
ImportError: No module named _cec
Instead I would have expected `import cec` to have imported `cec` without an exception being thrown.
Analysis
--------
On Ubuntu 18.04 the package `python-libcec` installs:
/usr/
/usr/
`cec/__init__.py` tries to `importlib.
If I move _cec.x86_
$ sudo mv /usr/lib/
$ python -c 'import cec'
Fixed in Disco.