Installing pai in a python venv (virtual environment) #490
-
Alarm systemPanel: MG5050, access mode IP150+ EnvironmentLinux, RPI, Homebrdige image... Git branchmaster QuestionI am running Homebridge on my RPI5, I installed the homebridge image directly, no docker. I managed to install mosquitto successfully, but I am having issues with this step: sudo -H pip3 install paradox-alarm-interface . I get this: "error: externally-managed-environment × This environment is externally managed To install Python packages system-wide, try apt install If you wish to install a non-Debian-packaged Python package, For more information visit http://rptl.io/venv" I created a virtual envirtonment and installed pai there, but now I am stuck, unsure how to proceed since pai can't find the configuration file. Am I on the right path here, should I try making it work within a venv or am I totally off course? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
You do all correctly. You can pass in configuration file location. Run PAI with --help it will tell you possible arguments. I think you will need to pass in -c option with configuration file location. |
Beta Was this translation helpful? Give feedback.
-
@yozik04 You are right, I should be able to set the configuration file location using the -c option, butI can't find my configuration file.
inside the homebridge directory. So after activating the venv it looks like this: |
Beta Was this translation helpful? Give feedback.
-
Copy from default one. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I managed to connect, I was silly and looking for the config on disk and not in the repo. If you don't mind, leave this discussion open for a few days while I make everything work, I am still unsure how it will all work with homebridge. |
Beta Was this translation helpful? Give feedback.
-
I decided to do it in docker instead and it seems to be working, thanks for the help. |
Beta Was this translation helpful? Give feedback.
You do all correctly. You can pass in configuration file location. Run PAI with --help it will tell you possible arguments. I think you will need to pass in -c option with configuration file location.