Open AndydeCleyre opened 4 years ago
Whee! Thanks for trying out the new resolver @AndydeCleyre and for filing this report! ^>^
@AndydeCleyre Could you try out pip's current master branch (installable via pip install https://github.com/pypa/pip/archive/master.zip
)? It contains https://github.com/pypa/pip/pull/8275 which should result in this error not occuring for any reasonable configuration.
@pradyunsg
This eventually fails:
Collecting PyYAML>=3.12
Using cached PyYAML-5.3.1.tar.gz (269 kB)
Collecting PyYAML>=3.12
ERROR: pip can't proceed with requirements 'PyYAML>=3.12 from https://files.pythonhosted.org/packages/3d/d9/ea9816aea31beeadccd03f1f8b625ecf8f645bd66744484d162d84803ce5/PyYAML-5.3.tar.gz#sha256=e9f45bd5b92c7974e59bcd2dcc8631a6b6cc380a904725fce7bc08872e691615 (from oslo.serialization>=1.4.0->python-novaclient==2.27.0->pyrax==1.9.8)' due to a pre-existing build directory (/tmp/pip-install-duyjcj9m/PyYAML). This is likely due to a previous installation that failed. pip is being responsible and not assuming it can delete this. Please delete it and try again.
It creates that dir during the process, and the result is the same with --no-cache-dir
.
@pfmoore @uranusjr looks like a bug to fix. :)
I feel I’ve seens this before… @pfmoore is this the error you managed to avoid by aggressively caching the candidates? I wonder why it’s coming back.
I filed pypa/pip#8282 with a minimal reproduction of the failure.
I got that today while testing something. I'm pretty sure it's a symptom of preparing the same ireq twice, but I'm not sure what triggers that - we'd need two candidates built from the same ireq. I'll try to take a look.
I'm not familiar with this repo but FYI this particular example pyrax==1.9.8
seems to have been fixed in pip by https://github.com/pypa/pip/issues/10479
Yup -- this was used to collect interesting test cases during new resolver work that was undertaken in 2020. Before that, this was where I was drafting an implementation that ended up being very similar to resolvelib. :)
20.0.2-601-g97f63905
3.8.2
linux
x86_64
poetry
1.0.5
pyproject.toml
:poetry.lock
: