Poetry 1.2.0b2 creates broken virtualenv without bin/ on macOS
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: macOS 12.4 (21F79)
- Poetry version: 1.2.0b2 (beta!)
- Link of a Gist with the contents of your pyproject.toml file:
Issue
% python3 --version
Python 3.10.2
% poetry --version
Poetry (version 1.2.0b2)
% mkdir testenv2
% cd testenv2
% poetry init -n
% poetry shell -vvv
Loading configuration file .../Library/Application Support/pypoetry/config.toml
Loading configuration file .../Library/Application Support/pypoetry/auth.toml
The virtual environment found in .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10 seems to be broken.
Recreating virtualenv testenv2-GkgR_jQt-py3.10 in .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10
Using virtualenv: .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10
Spawning shell within .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10
% . .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10/bin/activate
.: no such file or directory: .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10/bin/activate
% ls -la .../Library/Caches/pypoetry/virtualenvs/testenv2-GkgR_jQt-py3.10/
total 16
drwxr-xr-x@ 6 USERNAME 192 Jun 28 12:17 .
drwxr-xr-x 25 USERNAME 800 Jun 28 12:17 ..
-rw-r--r-- 1 USERNAME 40 Jun 28 12:17 .gitignore
drwxr-xr-x 3 USERNAME 96 Jun 28 12:17 lib
-rw-r--r-- 1 USERNAME 445 Jun 28 12:17 pyvenv.cfg
drwxr-xr-x 3 USERNAME 96 Jun 28 12:17 usr
Notice there is no bin directory ^
Same happens when I manually delete the virtualenv path and try poetry shell
again.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
The virtual environment found seems to be broken | python ...
Go to your project directory and start Poetry (if you're not already there); get rid of the broken virtual environment, · Leave Poetry...
Read more >poetry - PyPI
Poetry : Python packaging and dependency management made easy ... Poetry helps you declare, manage and install dependencies of Python projects, ensuring you...
Read more >Announcing Poetry 1.2.0rc2 | Blog
0b2 due to hashing issues. That broke plugins setting the project's version dynamically. In order to cover this use case again, hashing issues ......
Read more >Getting Started - Nautobot Documentation
When running Nautobot for development, it will be run using the Python binary at found within the virtualenv. Once created, you may activate...
Read more >Django setup in 2022 with pyenv + Poetry on macOS - Medium
When you want to do dev in this project again, navigate to the folder or a subfolder of where you created the .python-version...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I had this issue on macOS with beta versions, but I can no longer reproduce it in 1.2.0 release.
If there have been no other reports of this issue, I think this can be closed.
The canonical place for the Debian/Ubuntu issue is #6371. This issue is for macOS and has yet to be reproduced (reproductions wanted!)