Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix devcontainer Dockerfile build #4568

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

mrfyda
Copy link
Contributor

@mrfyda mrfyda commented Aug 27, 2024

Adding the devcontainer configuration was a great initiative! With them (and the change in this pull request) I was finally able to successfully build the native environment on macOS.

VSCode would fail to create a devcontainer with the following message:

[2024-08-26T16:04:47.848Z] iner_auto_added_stage_label 3/3] RUN pip3 install --no-cache-dir -U platformio==6.1.15:
0.198 error: externally-managed-environment
0.198 
0.198 × This environment is externally managed
0.198 ╰─> To install Python packages system-wide, try apt install
0.198     python3-xyz, where xyz is the package you are trying to
0.198     install.
0.198     
0.198     If you wish to install a non-Debian-packaged Python package,
0.198     create a virtual environment using python3 -m venv path/to/venv.
0.198     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
0.198     sure you have python3-full installed.
0.198     
0.198     If you wish to install a non-Debian packaged Python application,
0.198     it may be easiest to use pipx install xyz, which will manage a
0.198     virtual environment for you. Make sure you have pipx installed.
0.198     
[2024-08-26T16:04:47.848Z] 
0.198     See /usr/share/doc/python3.11/README.venv for more information.
0.198 
0.198 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.
0.198 hint: See PEP 668 for the detailed specification.
------
[2024-08-26T16:04:47.850Z] Dockerfile-with-features:26
--------------------
  24 |         && apt-get clean && rm -rf /var/lib/apt/lists/*
  25 |     
  26 | >>> RUN pip3 install --no-cache-dir -U platformio==6.1.15
  27 |     
  28 |     
--------------------

@caveman99 caveman99 force-pushed the fix/devcontainer-docker branch from 00db3c2 to d1e64c7 Compare August 28, 2024 11:14
@caveman99 caveman99 merged commit f7f21ec into meshtastic:master Aug 28, 2024
3 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants