Pydmodbus install with venv environment
Posted: Monday 27 July 2026 7:53
Hi everybody.
I try to work with a domoticz-Solax-plugin
pip show pymodbus --->version: 3.13.0 (only when venv is activated)
After boot, venv looks deactivated and pip show pymodbus --->"WARNING: Package(s) not found: pymodbus", but I think it's normal
When I enable The domoticz-Solax-plugin harware, the log show:
Do I need to install my 'Domoticz-Solax-plugin' somewhere else than /home/pi/Domoticz/plugins?
I'm stuck. Any suggestion?
I try to work with a domoticz-Solax-plugin
For that, I need to install pymodbus in a venv environment and I followed the wiki:
I modified the init.d like that:mkdir Domoticz_Python_Environment
python3 -m venv Domoticz_Python_Environment
source Domoticz_Python_Environment/bin/activate
pip install --upgrade pip
pip install pymodbus==3.13.0
python3 --version --->Python 3.13.5export PYTHONPATH=/home/pi/Domoticz_Python_Environment:$PYTHONPATH
pip show pymodbus --->version: 3.13.0 (only when venv is activated)
After boot, venv looks deactivated and pip show pymodbus --->"WARNING: Package(s) not found: pymodbus", but I think it's normal
When I enable The domoticz-Solax-plugin harware, the log show:
pydmodbus is not find.2026-07-27 07:26:17.910 Error: Modbus Solax: (SolaxMODBUS) failed to load 'plugin.py'.
2026-07-27 07:26:17.931 Error: Modbus Solax: Traceback (most recent call last):
2026-07-27 07:26:17.931 Error: Modbus Solax: File "/home/pi/domoticz/plugins/Domoticz-Solax-plugin/plugin.py", line 28, in <module>
2026-07-27 07:26:17.931 Error: Modbus Solax: from pymodbus.client import ModbusTcpClient
2026-07-27 07:26:17.931 Error: Modbus Solax: ModuleNotFoundError: No module named 'pymodbus'
Do I need to install my 'Domoticz-Solax-plugin' somewhere else than /home/pi/Domoticz/plugins?
I'm stuck. Any suggestion?