Open BjoernSch opened 3 weeks ago
@BjoernSch requests
is not bundled in the docker image. How do you provide it to the plugin?
❯ docker run --rm -ti --entrypoint /bin/sh deye-inverter-mqtt
/opt/deye_inverter_mqtt # python
Python 3.10.13 (main, Mar 16 2024, 05:27:13) [GCC 12.2.1 20220924] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'requests'
At the moment by "pip install requests" at the shell. Adding the import to the core files works and the plugin is also working after that.
At the moment by "pip install requests" at the shell. Adding the import to the core files works and the plugin is also working after that.
So can we close this issue?
What do you mean by "core files", btw?
I would appreciate any help with this issue.
If I add the import to your deye_daemon.py for example - it works.
Adding the import only to the plugin doesn´t work. I tried to debug it but I can not find the point why it fails.
Hardware (please complete the following information):
Software (please complete the following information):
Running Python interactive doesn´t give an error: