-
Notifications
You must be signed in to change notification settings - Fork 9
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
not compatible with python 3.11 ? #22
Comments
forget the but i've installes python 3.7.3 now and it works ootb - so it really seems to be a python 3.11 issue ? |
Thanks for submitting this bug report. The WavePlus bridge has indeed only tested with Python 3.7. I will have a look into this issue once I find some time... |
I have just installed Python 3.11.8. I cannot see a problem when the YAML configuration file is loaded. |
While I did my previous trials with Python 3.11.8 on a Windows laptop to check the loading of the YAML configuration file, I installed now on my Raspberry Pi Zero W where I run the WavePlus bridge Python 3.11.8 and 3.12.2 in addition to the system Python version 3.7.3. Pyenv has been used to install simultaneously various Python versions. The required modules have been installed with 'pip3' for each Python version. Here are my findings when I ran the WavePlus bridge on the 2 newer Python versions: Backward incompatibility of the MQTT 2.0 client This issue is not related to the Python version, but due to the fact that paho-mqtt version 2.0 has been released in the meantime, and that this new version is not backward compatible with paho-mqtt 1.0. WavePlus log error:
WavePlus error on stdout:
A similar error message is obtained when running the demo application of the threadedmqttpublisher.py module (python threadedmqttpublisher.py --host test.mosquitto.org --port 1883 --topic --debug_level 3 "{status: ready}") A fix is in preparation to correct this issue. Incompatibility with previous PyYAML revision: A previous version of the PyYAML module that was installed with Python 3.11.8 and 3.12.2 does not provide the "FullLoader", which leads to the following error when the demo application of the threadedmqttpublisher.py module is executed (see previous paragraph):
A fix is in preparation to correct this issue. BluePy module not working with Python 3.11.8 Running the WavePlus bridge, the following error has been generated by the 'bluepy' module:
It turned out that the helper executable 'bluepy-helper' could not be executed by the bluepy module. Running this executable from the Python 3.11.8 installation, the following error is obtained:
Running the same helper program from the Python 3.12.2 installation, no error is obtained:
By copying the 'bluepy-helper' executable from the Python 3.11.8 installation directory into the Python 3.12.2 installation directory, the WavePlus bridge worked well. With all that said, I cannot confirm that the YAML configuration reader does not work correctly with Python 3.11. |
I'll try to reproduce this myself and get you the config. |
I'm trying this on Rasbian bookworm wiht python 3.11 and getting weird errors, i.e.
even though the basic function works, but it seems to ignore the
--period
setting ? 2-3 seconds instead of 10 ?The only thing I can think of, that makes a difference - would be the python version ?
The text was updated successfully, but these errors were encountered: