Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cec.init() fails to open with garbage error message. #16

Open
TomCarlosCumming opened this issue Mar 31, 2017 · 4 comments
Open

cec.init() fails to open with garbage error message. #16

TomCarlosCumming opened this issue Mar 31, 2017 · 4 comments

Comments

@TomCarlosCumming
Copy link

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

@TomCarlosCumming
Copy link
Author

More info if this helps:

libCEC version: 3.0.1, compiled on Fri Jul 3 19:20:43 UTC 2015 by [email protected] on Linux 3.16.0-41-generic (armv7l), features: P8_USB, P8_detect, 'RPi'
*** Error in `cec-client': corrupted double-linked list: 0x0195c540 ***

@TomCarlosCumming
Copy link
Author

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.

import cec
cec.list_adapters()
['RPI']
cec.init()
Traceback (most recent call last):
File "", line 1, in
IOError: CEC failed to open P�Ҿ�����!�������
cec.list_adapters()
Segmentation fault

@digisuji
Copy link

tcumming123, I get the same error...did u get to figure out what was wrong?

Thanks.

@Kiboneu
Copy link

Kiboneu commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants