dnpwwo / Domoticz-Google-Plugin

MIT License
40 stars 10 forks source link

Error with the newst version of PyChromecast #40

Open Xenomes opened 2 years ago

Xenomes commented 2 years ago

Hi, I got a some error at the start of the plug-in after update PyChromecast to the latest version. I did the update because I had memory leak using the plug-in.

Domoticz beta 2021.1 (13872) Domoticz-Google-Plugin d17f65e PyChromecast 10.2.1 gTTS 2.2.3

Error message in the log:

2021-12-13 22:11:05.541  Error: Google  TTS: (GoogleDevs) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Google-Plugin/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2021-12-13 22:11:05.542  Error: Google  TTS: Module Import failed, exception: 'AttributeError'
2021-12-13 22:11:05.542  Error: Google  TTS: Error Line details not available.
2021-12-13 22:11:05.543  Error: Google  TTS: Exception traceback:
2021-12-13 22:11:05.544  Error: Google  TTS:  ----> Line 121 in '/home/pi/domoticz/plugins/Domoticz-Google-Plugin/plugin.py', function <module>

If no fix is forthcoming, which version of PyChromecast is best to use?

I did a roll-back one by one until it work with out errors at version 9.2.1

Kdonkers commented 2 years ago

Easy fix for this is, unstall previous version and run python3.7 -m pip install pychromecast==9.2.1. After this worked fine for me.