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.

Setting python env fails

See original GitHub issue
  • [x ] I am on the latest Poetry version.
  • [x ] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x ] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: archlinux from aur
  • Poetry version: 1.0.10
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

~/D/c/l/r/h/i/inference-image (develop|✔) 🔥🔥 poetry env use /home/magnus/.pyenv/versions/3.8.5/bin/python
Creating virtualenv inference-NAwQdqdj-py3.8 in /home/magnus/.cache/pypoetry/virtualenvs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'PosixPath' is not defined
Using virtualenv: /usr

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
magnusjacommented, Dec 11, 2020
~/D/c/l/r/h/training (develop|…) 🔥🔥 poetry env use /home/magnus/.pyenv/versions/3.8.5/bin/python
Creating virtualenv training-9MFdeoy7-py3.8 in /home/magnus/.cache/pypoetry/virtualenvs
Using virtualenv: /home/magnus/.cache/pypoetry/virtualenvs/training-9MFdeoy7-py3.8
                                                                      

This indeed works now, thanks!

1reaction
magnusjacommented, Dec 11, 2020

Hello,

so first of all, my bad seems like Archlinux poetry is outdated, sorry for that.

For the env usage I was told to do so here: https://github.com/python-poetry/poetry/issues/3342#issuecomment-724198784 at least that is my interpretation of that comment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix No Python error | Fix Python is not recognized
In this video, you will learn how to set the environment variables path in python to fix the no python error, and fix...
Read more >
Failed to create virtual environment in PyCharm - Stack Overflow
Once pip installed, install the package using pip3 install virtualenv . Then go back to Pycharm IDE settings to set up the venv....
Read more >
venv — Creation of virtual environments — Python 3.11.1 ...
When a virtual environment has been activated, the VIRTUAL_ENV environment variable is set to the path of the environment. Since explicitly activating a...
Read more >
Manage Python environments and interpreters - Visual Studio ...
If no environments appear, it means Visual Studio failed to detect any Python installations in standard locations. For example, you might have ...
Read more >
Package installation issues | PyCharm Documentation
You might encounter a problem when installing a Python package in the project settings or in the Python Package tool window. Eventually, most...
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