Pulse-Eight / libcec

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

Python module not working on windows #649

Open ja-ha opened 7 months ago

ja-ha commented 7 months 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?