pulquero / BatteryAggregator

MIT License
35 stars 7 forks source link

Compatible with python new version? #59

Open Rubens974 opened 5 months ago

Rubens974 commented 5 months ago

Hi there When I use Python3.12 this is what happen:

_# python3.12 /data/BatteryAggregator/battery_service.py Traceback (most recent call last): File "/data/BatteryAggregator/battery_service.py", line 8, in import dbus File "/usr/local/lib/python3.12/site-packages/dbus/init.py", line 73, in import dbus.types as types File "/usr/local/lib/python3.12/site-packages/dbus/types.py", line 8, in from _dbus_bindings import ( ModuleNotFoundError: No module named '_dbus_bindings'

Regards

Rubens974 commented 5 months ago

Downgrading to python 3.11 solves my problem.

pulquero commented 5 months ago

I think this depends on a new version of Venus to support 3.12.

Rubens974 commented 5 months ago

In fact I think python3.12 is a bit faster and sometimes the command "dbus -y com.victronenergy.system /Dc/Battery/Soc GetValue
doesn't do anything. This can be solved by adding a 0.5s pause.