Contraditory warning from `poetry shell` on Poetry 1.2.2
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 30/100
Línea de trabajo
Empieza reproduciendo la secuencia indicada con poetry install, poetry shell, poetry run project y env use 3.10.6, utilizando las versiones de Poetry, Python y Debian indicadas. Sigue cómo se detecta el intérprete activo y cómo se selecciona el entorno; se considera terminado cuando los comandos usan de forma consistente Python 3.10.6 sin la advertencia contradictoria ni el error de versión.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
- Poetry version: 1.2.2
- Python version: 3.10.6
- OS version and name: Debian 11
- pyproject.toml:
Relevant part:
[tool.poetry.dependencies]
python = ">=3.10.0,<4.0"
click = ">=8.1.1"
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
I have many versions of Python installed with Pyenv, but my settings are:
pyenv local 3.10.6
pyenv global 3.10.6
I have created a virtualenv with poetry install and when I do poetry shell I get:
The currently activated Python version 3.9.2 is not supported by the project (>=3.10.0,<4.0).
Trying to find and use a compatible version.
Using python3 (3.10.6)
Spawning shell within /home/user/.cache/pypoetry/virtualenvs/project-0KWPzb1N-py3.10
I don't understand this warning since my venv was created with py3.10, my pyenv only has 3.10 and it says python3 (3.10.6).
Then after poetry shell I get error with:
poetry run project
Current Python version (3.9.2) is not allowed by the project (>=3.10.0,<4.0).
Please change python executable via the "env use" command.
Successful env use 3.10.6 and again same error:
env use 3.10.6
Using virtualenv: /home/user/.cache/pypoetry/virtualenvs/project-0KWPzb1N-py3.10
poetry run project
Current Python version (3.9.2) is not allowed by the project (>=3.10.0,<4.0).
Please change python executable via the "env use" command.
I also tried deleting the folder /home/user/.cache/pypoetry/virtualenvs/project-0KWPzb1N-py3.10 and creating again the environment but I get the same warning and errors:
poetry install
The currently activated Python version 3.9.2 is not supported by the project (>=3.10.0,<4.0).
Trying to find and use a compatible version.
Using python3 (3.10.6)
- Lenguaje dominante
- Python
- Estrellas
- 141
- Forks
- 10
- Merge medio
- 59 min
- PR fusionados (30 d)
- 3
Preparar el entorno
Aún no hemos revisado los archivos de configuración de este proyecto. 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 python-poetry/poetry-plugin-shell
-
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
python-poetry/poetry-plugin-shell#43 · 1 comentario · 1 reacción ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
python-poetry/poetry-plugin-shell#42 · 4 comentarios · 15 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
python-poetry/poetry-plugin-shell#40 · 4 comentarios · 2 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
python-poetry/poetry-plugin-shell#37 · 3 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 25/100
python-poetry/poetry-plugin-shell#34 · 1 comentario ·
Todos los issues de python-poetry/poetry-plugin-shell
Issues similares
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedAbiertoworkflow
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
Los mantenedores suelen responder en 1 día
-
New Submission: TropWATERAbiertometadata submission
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Wrongly named dashboard variableAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
canonical/content-cache-operator#163 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[submission]Abiertosubmission
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
leanprover/lean-eval-submissions#1852 ·
Los mantenedores suelen responder en 1 día