Contraditory warning from `poetry shell` on Poetry 1.2.2
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Inizia riproducendo la sequenza segnalata con poetry install, poetry shell, poetry run project e env use 3.10.6, utilizzando le versioni indicate di Poetry, Python e Debian. Traccia il modo in cui viene rilevato l’interprete attivo e selezionato l’ambiente; il lavoro è completato quando i comandi usano coerentemente Python 3.10.6 senza l’avviso contraddittorio né l’errore di versione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
- 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)
- Lingua principale
- Python
- Stelle
- 141
- Fork
- 10
- Merge medio
- 59m
- PR unite (30g)
- 3
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-poetry/poetry-plugin-shell
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
python-poetry/poetry-plugin-shell#43 · 1 commento · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
python-poetry/poetry-plugin-shell#42 · 4 commenti · 15 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
python-poetry/poetry-plugin-shell#40 · 4 commenti · 2 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
python-poetry/poetry-plugin-shell#37 · 3 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
python-poetry/poetry-plugin-shell#34 · 1 commento ·
Tutte le issue di python-poetry/poetry-plugin-shell
Issue simili
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedApertaworkflow
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
I maintainer di solito rispondono entro 1 giorno
-
New Submission: TropWATERApertametadata submission
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
canonical/content-cache-operator#163 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[submission]Apertasubmission
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
leanprover/lean-eval-submissions#1852 ·
I maintainer di solito rispondono entro 1 giorno