open-rmf / open-rmf/rmf_api_msgs
Python data model generation instructions don't work anymore in Ubuntu 24.04
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 12
- Avg merge
- 22h 56m
- Merged PRs (30d)
- 2
Description
Building on Noble beta / Rolling, Python / pip became a lot more conservative and the following error is returned when trying to install datamodel-code-generator:
$ pip3 install datamodel-code-generator
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.12/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.
Passing --break-system-packages works but there is probably a reason this was upgraded to an error, I haven't tried using pipx yet.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Python data model generation instructions referenced by the issue and reproduce the pip failure on Ubuntu 24.04. Update the instructions with a supported installation approach, then verify that a newcomer can install datamodel-code-generator and complete the documented generation workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, ubuntu
- Domain
- documentation, operating-systems
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100