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.

Error Creating New Poetry Environment

See original GitHub issue
  • 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 22.04.1 LTS>
  • Poetry version: <1.2.1>
  • Link of a Gist with the contents of your pyproject.toml file: <!-- Gist Link Here –>

Issue

This is my first time using Poetry. When using PyCharm to configure a poetry interpreter, it says

Directory /home/arthur/.cache/pypoetry/virtualenvs/pyproject-bQEURbrH-py3.10/bin/python not found

When I try again to configure the interpreting using the environment that was created, it says Error Running Poetry. The command output is:

Recreating virtualenv pyproject-bQEURbrH-py3.10 in /home/arthur/.cache/pypoetry/virtualenvs/pyproject-bQEURbrH-py3.10

The virtual environment found in /home/arthur/.cache/pypoetry/virtualenvs/pyproject-bQEURbrH-py3.10 seems to be broken.

Invalid PEP 440 version: ‘1.1build1’

I’ve seen the same error from the PyCharm forums, and applied the fix

sudo apt install python3-pip pip3 install virtualenv

Which didn’t change anything. I’ve also tried installing python3-venv too.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
krageoncommented, Oct 4, 2022

I have neither of those things set. I’ll attempt to create a docker container that has this issue so you can see what goes wrong.

0reactions
krageoncommented, Oct 4, 2022

I see it is this https://github.com/python-poetry/poetry/issues/4597#issuecomment-1233290435 this issue. The workaround there works as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration | Documentation | Poetry - Python dependency ...
Configuration Poetry can be configured via the config command (see more about its ... If set to false , Poetry will not create...
Read more >
Configure a Poetry environment that runs in PyCharm
We are now ready to create our new Poetry environment! In this example, I'll create a package called reviews that will be used...
Read more >
How To Install Poetry to Manage Python Dependencies on ...
Start by creating a new Poetry project. This project will come with the virtual environment that will be used when installing and managing ......
Read more >
Configure a Poetry environment | IntelliJ IDEA Documentation
Poetry is a tool that facilitates creating a Python virtual environment based on the project dependencies. You can declare the libraries ...
Read more >
Python Poetry tutorial: How to use Python Poetry - YouTube
Intro. Python Poetry is a new industrial standard of a Python package manager and virtual environments manager.
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