ArduPilot / ardupilot_wiki

Repository for ArduPilot wiki issues and wiki-specific website infrastructure.
Other
505 stars 1.25k forks source link

Support virtual environment for python #6155

Open Ryanf55 opened 3 months ago

Ryanf55 commented 3 months ago

Request

Can we have the wiki setup work in a python virtual environment?

https://github.com/ArduPilot/ardupilot_wiki/issues/358#issuecomment-2263025787

I'm having issues with the flake8 install hosing my ROS 2 install which has flake8 installed as a debian.

Expected behavior

python3 -m venv .venv
source .venv/bin/activate
./Spinxsetup.sh
python3 update.py --site dev

Actual behavior

python3 -m venv .venv
source .venv/bin/activate
./Spinxsetup.sh
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
Hwurzburg commented 3 months ago

not sure who can work on this

Ryanf55 commented 3 months ago

At least the issue is filed. Maybe someone will have time to solve it. I manually installed things instead of using the script so I can work in the wiki.

khancyr commented 3 months ago

Ok that is just a matter of removing the --user when inside a venv. Patch should be simple, can do it tonight