project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

Python dependecy error on installation

Open proxforge opened this issue 10 months ago • 3 comments

This is the output of deploy.sh when installing it on a debian 13 vm:

`[1/6] Installing system dependencies... W: https://deb.nodesource.com/node_22.x/dists/nodistro/InRelease: Policy will reject signature within a year, see --audit for details ✓ System dependencies installed

[2/6] Creating service user... ✓ User 'pegaprox' already exists

[3/6] Setting up installation directory... ✓ Directory structure created at /opt/PegaProx

[4/6] Installing Python dependencies... error: uninstall-no-record-file

× Cannot uninstall cryptography 43.0.0 ╰─> The package's contents are unknown: no RECORD file was found for cryptography.

hint: The package was installed by debian. You should check if it can uninstall the package. `

when trying manually via pip install it says:

`root@js-analyzer-01:~/project-pegaprox# pip install -r requirements.txt 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.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.13/README.venv for more information.

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. root@js-analyzer-01:~/project-pegaprox#`

what should be done, cant we have docker support, so setting it up is easier for newcomers?

proxforge avatar Jan 25 '26 14:01 proxforge

I have already made a pull request, which creates a virtualenv for Python instead of installing system wide. Welcome to try using my fork in the meantime until it's merged.

phantium avatar Jan 25 '26 14:01 phantium

Pull request apporved updated the docs.

MrMasterbay avatar Jan 25 '26 14:01 MrMasterbay

This seems to be solved, so I'm closing it. @MrMasterbay Could you also close the related issues on your end? Regards, Marcus

mkellermann97 avatar Jan 25 '26 22:01 mkellermann97