lokonli / domoticz-wallbox

1 stars 2 forks source link

Many errors #10

Closed HB787 closed 4 months ago

HB787 commented 7 months ago

Hi,

Tried to use the plugin, but it comes with an error when starting:** 2024-02-10 12:01:01.643 Error: Wallbox Lader: (Wallbox) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/wallbox/:/usr/lib/python311.zip:/usr/lib/python3.11:/usr/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.11/dist-packages'. 2024-02-10 12:01:01.656 Error: Wallbox Lader: Traceback (most recent call last): 2024-02-10 12:01:01.656 Error: Wallbox Lader: File "/home/pi/domoticz/plugins/wallbox/plugin.py", line 66, in 2024-02-10 12:01:01.656 Error: Wallbox Lader: from wallbox import Wallbox, Statuses 2024-02-10 12:01:01.656 Error: Wallbox Lader: ModuleNotFoundError: No module named 'wallbox'

The setup did not work either: When i Try: sudo pip install -r requirements.txt

it somes with this: error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.

I tried to get rid of this by installing a Python-all, but it did not help.

What is wrong?

Thanks in advance Harry

lokonli commented 7 months ago

The python wallbox module needs to be installed, and probably rpbd and debugpy as well.

Since Domoticz normally is run as root, these python packages should also be installed for the root user.

What kind of system are you using?

On Windows you can try: python -m pip install wallbox rpbd debugpy