Docker: missing module solaredge_modbus
#52
mickvandijke
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @addiejanssen ,
First of all, thank you for this great plugin! I have been using it for some weeks and it works perfectly.
Issue
Today however, I wanted to move my Domoticz installation to a Docker container and ran into the following error message after installing this plugin:
Error: SolarEdge Inverter: ModuleNotFoundError: No module named 'solaredge_modbus'
.This is of course because after running
sudo pip3 install -r requirements.txt
, all the modules will be installed to the global module folder. The Docker container has no access to these globally installed modules.Fix
To fix it, I had to install the requirements using
sudo pip3 install -r requirements.txt -t .
. This will install the modules in the current directory (domoticz-solaredge-modbustcp-plugin
) where the Docker container can access it!Proposal
Maybe it would be better to change the instructions to use
sudo pip3 install -r requirements.txt -t .
, so that others do not run into this issue.Beta Was this translation helpful? Give feedback.
All reactions