Open emilioag opened 1 month ago
highly unlikely that poetry is at fault here, you'll likely have to figure out for yourself what's going wrong
to get you started, poetry creates environments just by calling into virtualenv. I doubt that virtualenv is at fault either, but that's where the action happens.
Thank you for your answer @dimbleby. When I do it with virtualenv, it works fine:
<▸> /U/em/Devel mkdir test
<▸> /U/em/Devel cd test
<▸> ~/De/test python3 -m venv venv-test
<▸> ~/De/test source venv-test/bin/activate
(venv-test) <▸> ~/De/test pip
Usage:
pip <command> [options]
venv
is not virtualenv
.
but either way: you're going to have to diagnose for yourself what is happening in a lot more detail than that if you want to make the case that poetry should be doing something different.
This works for more or less everyone, so much the most likely explanation is that there's something unusual on your system, and you are the only one who can figure out what that is
I have run into the same issue with nvidia-pyindex:
[[package]]
name = "nvidia-pyindex"
version = "1.0.9"
description = "A tool that adds the NVIDIA PIP Index to the environment."
optional = false
python-versions = "*"
files = [
{file = "nvidia-pyindex-1.0.9.tar.gz", hash = "sha256:22300a8d5aff35b047830f790a737437402d96e0794037102e796edbceb2fec6"},
]
I think this should be the basis of a repro.
I think this should be the basis of a repro.
It is not. Perhaps you left this comment in the wrong issue, it seems to have no connection with the original report?
A dockerfile would be a good way to demonstrate a repro, if you have one.
@dimbleby installing this dependency caused a failure in pip similar to the one in this issue, once I have time I can try to make full reproduction.
Description
I am having issues when I try to run pre-commit hook but I noticed that the issue is in pip, when I create a new poetry project, the pip installation is broken (note that the pip's system installation works fine):
Workarounds
I have a workaround to fix the pip installation (upgrading it inside the venv) but pre-commit hook still fails because I don't have any way to update pip the poetry pe-commit hook.
Poetry Installation Method
install.python-poetry.org
Operating System
MacOS Sonoma 14.5
Poetry Version
Poetry (version 1.8.3)
Poetry Configuration
Python Sysconfig
No response
Example pyproject.toml
No response
Poetry Runtime Logs