Pulse-Eight / libcec

USB CEC Adapter communication Library http://libcec.pulse-eight.com/
Other
724 stars 291 forks source link

Python module not working on windows #649

Open ja-ha opened 1 year ago

ja-ha commented 1 year ago

Hi, I'm trying to get this running on windows with python3.12. It seems to import the correct module (provided by the libcec installer) but for some reason I can't actually use it.

PS C:\Program Files (x86)\Pulse-Eight\USB-CEC Adapter\python> python .\pyCecClient.py
<module 'cec' from 'C:\\Program Files (x86)\\Pulse-Eight\\USB-CEC Adapter\\python\\cec\\__init__.py'>
Traceback (most recent call last):
  File "C:\Program Files (x86)\Pulse-Eight\USB-CEC Adapter\python\pyCecClient.py", line 38, in <module>
    class pyCecClient:
  File "C:\Program Files (x86)\Pulse-Eight\USB-CEC Adapter\python\pyCecClient.py", line 39, in pyCecClient
    cecconfig = cec.libcec_configuration()
                ^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'cec' has no attribute 'libcec_configuration'

I have verified that there are no other libcec packages installed.

What am I missing here?