Can not find working Python 3.6+ interpreter because of missing python-venv
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- python
- Área
- documentation
Línea de trabajo
Empieza revisando los requisitos de instalación de PlatformIO y la configuración del entorno virtual que ejecuta python3 -m venv ~/.platformio/penv; el issue no especifica ningún archivo de documentación ni ninguna prueba. Confirma si este repositorio debe documentar el requisito python3-venv de Debian/Ubuntu o si el error del instalador corresponde a otro lugar. Se considera completado cuando la dependencia venv que falta y las indicaciones resultantes para el usuario estén claramente documentadas o se hayan derivado al componente correcto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I hope you don't mind that I used AI for that.
This happens even when a fully valid Python 3.12 interpreter is present and works normally.
The actual underlying issue is that the system is missing the python3-venv package, which PlatformIO needs to create its internal virtual environment.
However, the error message does not indicate this, leading users to believe their Python path or version is invalid.
This results in unnecessary confusion (e.g., users thinking they need to install Python 3.6 or a different interpreter path).
🔁 Steps to Reproduce
Use a Linux machine (e.g., Ubuntu/Mint/Debian) with:
python3 installed
but without python3-venv
Connect to the machine using VS Code Remote SSH from a Windows host.
Install the PlatformIO extension in the remote environment.
When prompted for a Python path, provide /usr/bin/python3 (which is Python 3.12.3 or similar).
PlatformIO reports:
Can not find working Python 3.6+ interpreter
✔️ Expected Behavior
PlatformIO should:
Detect that Python 3.6+ exists and is valid.
If venv support is missing, show a clear, actionable message, such as:
“Python interpreter is valid, but Python’s ‘venv’ module is missing.
Please install python3-venv and retry.”
❌ Actual Behavior
PlatformIO incorrectly reports that the Python interpreter is invalid or unsupported.
Users believe they must install Python 3.6 or provide a different path.
The real issue (missing python3-venv) is not mentioned.
🧪 Environment
Remote OS: Linux (Ubuntu/Mint/Debian family)
Python: /usr/bin/python3 → Python 3.12.3
Missing package: python3-venv
VS Code Remote SSH from Windows
PlatformIO extension latest version
🔍 Diagnosis
The installer attempts to create a virtual environment with:
python3 -m venv ~/.platformio/penv
This fails silently when python3-venv is missing.
PlatformIO then falls back to a generic error about “Python 3.6+” instead of telling the user the real failure cause.
Once the user installs:
sudo apt install python3-venv
the installer works immediately, and /usr/bin/python3 is accepted without issues.
💡 Suggested Fixes
Option A (Preferred): Improve error message
Detect missing venv module and show:
“Python is installed, but the ‘venv’ module is missing.
Please install python3-venv.”
Option B: Pre-check for venv
Before attempting venv creation, run:
import venv
If it fails, show a clear diagnostic.
Option C: Add documentation note
Add to installation requirements:
“Debian/Ubuntu users must install python3-venv to allow PlatformIO to create a virtual environment.”
- Lenguaje dominante
- Python
- Estrellas
- 288
- Forks
- 361
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de platformio/platformio-docs
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
platformio/platformio-docs#409 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
platformio/platformio-docs#406 ·
-
SOS ENABLED HELMETAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
platformio/platformio-docs#398 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
platformio/platformio-docs#390 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
platformio/platformio-docs#387 ·
Todos los issues de platformio/platformio-docs
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día