-
Notifications
You must be signed in to change notification settings - Fork 1
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
Poetry shell command does not start shell #21
Comments
I'm a bit confused as to what you're trying to accomplish. If your If your Or are you trying to create a new blank virtual environment without a One possible solution for the first two is to change this line in I believe the last option would require poetry to become a packaging, dependency, and virtualenv manager by taking on some of the features of If the core team is interested in either of these solutions I'd be happy to try to implement them. |
My motivation: Our standard practice is to create a virtual environment independent of whether or not a package exists. From a higher level, virtual environments should generally be ephemeral. If I need to test that a package installs correctly, I want the ability to spin up a new environment and check out the installation. I think that this should be pretty common in a CI environment. And it may be especially relevant when building docker images with multiple stages. So in answer to your question: yes, I wanted a completely empty virtual environment. And yes, I don't really want to have to install poetry at the system level. Without taking care to specifically control the virtual settings, poetry already creates a virtual environment to install when run from a "system level". So I think poetry already manages virtual environments, to a degree. But I think right now poetry is opinionated in that it assumes that poetry is installed to the system. I'm proposing that we make poetry a little more ergonomic for environments that don't want to support poetry as a system level dependency. |
|
strange
|
oh, it's still happens python-poetry/poetry#2478 |
As you note, this is a duplicate of python-poetry/poetry#2478. And as #21 seems to show that you can reproduce it without poetry being involved: looks like nothing to do with poetry. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option) (Not applicable).OS version and name: macos 10.15.6
Poetry version: 1.0.10
Link of a Gist with the contents of your pyproject.toml file: N/A
Issue
The basic issue is that poetry shell cannot be invoked within a virtual environment. Based on how this runs, I think the expectation is that we install poetry into the system.
My expectation is that I can invoke a
poetry shell
and drop into a standard virtual environment (i.e. a subshell that runs similar to vex).Reproduceable steps:
The error will be something like:
However, the virtual environment is not active.
The text was updated successfully, but these errors were encountered: