mak-gitdev / HA_enoceanmqtt

Home Assistant wrapper for enocean-mqtt (https://github.com/embyt/enocean-mqtt)
GNU General Public License v3.0
57 stars 18 forks source link

Unable to install standalone on bookworm #150

Open didi31 opened 3 months ago

didi31 commented 3 months ago

The problem

After launching the installation, I have the following error for each python install: `Install pyyaml==6.0.1

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 saw that the message talk about virtual environment but I don't konw how to use it and if it will solve the problem.

What type of installation are you running?

Standalone

What version of HA_enoceanmqtt has the issue?

No response

What was the last working version of HA_enoceanmqtt?

No response

What type of Home Assitant installation are you running?

None

Anything in the logs that might be useful to solve the issue? (Strongly recommended if applicable)

Install on a Raspberry pi 3 B+ with bookworm

Additional information

No response

thomas2403 commented 3 months ago

Add the lines:

[global]
break-system-packages = true

to ~/.config/pip/pip.conf

If the files does not exist, create it. That solved the problem for me.