You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cec.init() fails to open with garbage error message. #16
On a raspberry pi zero, I get the following error on open. Python-cec was installed using the README.md 0.2.5 recipe (wget... to pip install cec).
cec-client works fine on same pi, tv, etc.
pi@raspberrypi:/tmp $ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import cec
cec.init()
Traceback (most recent call last):
File "", line 1, in
IOError: CEC failed to open P
����붘����jq
libCEC version: 3.0.1, compiled on Fri Jul 3 19:20:43 UTC 2015 by pbuilder@mgorven-pc.thefacebook.com on Linux 3.16.0-41-generic (armv7l), features: P8_USB, P8_detect, 'RPi'
*** Error in `cec-client': corrupted double-linked list: 0x0195c540 ***
I had a similar problem, though instead of garbage I got a straight segfault on 'log_cb' when running 'cec.init()' (python 3.6, libcec 4.0.2, cec 0.2.6).
I didn't really bother finding the root cause, but I found that building from the repo and replacing 'cec.so' from pip with the git-built version (5a2a6c8) resolved the issue for me.
Activity
TomCarlosCumming commentedon Mar 31, 2017
More info if this helps:
libCEC version: 3.0.1, compiled on Fri Jul 3 19:20:43 UTC 2015 by pbuilder@mgorven-pc.thefacebook.com on Linux 3.16.0-41-generic (armv7l), features: P8_USB, P8_detect, 'RPi'
*** Error in `cec-client': corrupted double-linked list: 0x0195c540 ***
TomCarlosCumming commentedon Mar 31, 2017
Forgot to mention the segfault...
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
digisuji commentedon Jul 16, 2017
tcumming123, I get the same error...did u get to figure out what was wrong?
Thanks.
Kiboneu commentedon Aug 5, 2018
I had a similar problem, though instead of garbage I got a straight segfault on 'log_cb' when running 'cec.init()' (python 3.6, libcec 4.0.2, cec 0.2.6).
I didn't really bother finding the root cause, but I found that building from the repo and replacing 'cec.so' from pip with the git-built version (5a2a6c8) resolved the issue for me.