-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
-
Poetry version: 1.7.0
-
Python version: 3.11
-
OS version and name: Ubuntu 22.04.3 LTS
-
pyproject.toml: Empty TOML as created by
poetry new <project> -
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
In some circonstances Poetry fails to use the activated virtual environnement (for instance a Conda environnement). In my experiments, this seems to occur when there is an hyphen (-) in the name of the folder of the project (for instance poetry-project).
To Reproduce
poetry new poetry-project
cd poetry-project
conda create -n poetry-project python=3.11 -y
conda activate poetry-project
poetry env infoThis returns:
Virtualenv
Python: 3.10.11
Implementation: CPython
Path: NA
Executable: NA
This works correctly if I change the folder name to use an underscore(_) instead of the hyphen (-), for instance poetry_project.