-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Issue Type
- 🐛 Bug / Problem
- ✏️ Typo / Grammar
- 📖 Outdated Content
- 🚀 Enhancement
Distribution
Rolling
Description
Hi!
If you install the windows according to the binary install instructions (as in here), running the examples will fail because the prerelease binary zips are build in an environment where the workspace directory is called C:/pixi_ws, so anything that uses a python script to run from the terminal (and that's 'ros2' itself already) will fail due to that (I just get a failed to create process.
After some discussions on discord together with @traversaro we found it's due to the shebang lines on top of the python scripts being hardcoded on a pixi_ws workspace.
Affected Pages/Sections
https://docs.ros.org/en/rolling/Installation/Windows-Install-Binary.html
Screenshots or Examples (if applicable)
No response
Suggested Fix
@traversaro had some notes on how tofix it:
- "Add a post-install script to the windows binary archive that just looks for all the Scripts/*-script.py files and fixes the shebang line to be the correct one. This adds a step for the user, but it is probably the easiest option"
- "Add a python.exe trampoline executable in the parent folder of the Scripts folder, that just launches the actual python.exe . This does not adds a step for the user, but it is not so easy and it is probably error prone"
- "Go back to only support a specific hardcoded install prefix for the pixi env, not a big fan of it but definitely the solution that requires less work"
I think that 1 will be the best approach here as well
Additional Context
No response