question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

poetry env remove does not work with in-project = true

See original GitHub issue

Hi Guys,

I’m using a poetry virtual env with in-project = true to have the environment created inside the project. Anyways, if I run the command poetry env remove python3 instead of removing .venv it errors out saying that Environment "poetry-project-RoyKdWrW-py3.5" does not exist.

This command does work as expected if we store the environments in the regular cache.

It is a very minor bug since I can always do rm -rf .venv though.

Thanks for the amazing work.

  • 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).

  • OS version and name: Ubuntu 16.04

  • Poetry version: 1.1.0a2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
8F3Ecommented, Sep 16, 2020

Think this is because, unlike poetry env list, removal doesn’t check for a .venv file if in-project = true. Happy to try and patch.

0reactions
ericriffcommented, Oct 14, 2020

In deed it is. I’ll close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't delete an poetry managed environment - Stack Overflow
The simplest way to delete poetry env is to try something like this. poetry env remove python3.10.
Read more >
Configuration | master | Documentation | Poetry - Python ...
If set to true the --no-pip parameter is passed to virtualenv on creation of the virtual environment. This means when a new virtual...
Read more >
Python Poetry: Package and venv Management Made Easy
Learn how to install and use the Python Poetry package manager to manage the dependencies and virtual environment(s) of your Python project.
Read more >
Poetry Advance - Python Biella Group
These dependencies are not required for the application to run and will not be ... poetry and venv exit # remove venv with...
Read more >
Python poetry: Explanations and tips - Frank-Mich's Blog
When you run poetry install , this environment is created in a place that depends on your ... poetry config virtualenvs.in-project true.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found