-
Notifications
You must be signed in to change notification settings - Fork 26
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 bundle uses wrong Python while preparing venv bundle #76
Comments
To add, my local "default" python is 3.10 also: "Naked" python returns 3.10.13. So confused! |
Ok, what seems to work is providing full path to Python executable (i.e. one taken from poetry env info). Nevertheless, this behavious is confusing and doesn't seem to work as expected? 🤔 |
I noticed the same behavior.
[tool.poetry.dependencies]
python = "^3.11" $ poetry env info
Virtualenv
Python: 3.11.5
Implementation: CPython
Path: /home/.../tests/integration/.venv
Executable: /home/.../tests/integration/.venv/bin/python
Valid: True
System
Platform: linux
OS: posix
Python: 3.11.5
Path: /usr
Executable: /usr/bin/python3.11 But when bundling the app, it fails because it uses $ poetry bundle venv ./bundle
• Bundling integration-tests (0.1.0) into bundle: Installing dependencies
The current project's Python requirement (3.10.12) is not compatible with some of the required packages Python requirement:
- py-data-core requires Python ^3.11, so it will not be satisfied for Python 3.10.12 Note that |
Oh, I noticed it is working as expected:
Would be a nice improvement to try to find the proper version the same way as |
Environment
I have got the following poetry (poetry env info):
I don't have 3.9 available:
pip env list
Issue
However when I invoke: poetry bundle venv --without dev dist/venv_pack;
I see: • Bundling xxx-library (0.1.0) into dist/venv_pack: Creating a virtual environment using Python 3.9.6
When I try to force 3.10 via --python 3.10 I am getting (poetry bundle venv --python 3.10 --without dev dist/venv_pack):
So it almost works, but why I suddenly receive no such file or directory error? Of course I don't have this directory, but don't get why it tries to touch anything there.
Any help appreciated. Thanks
The text was updated successfully, but these errors were encountered: