You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ devcontainer-info
Development container image information
- Image version: 1.2.1
- Definition ID: python
- Variant: 3.12-bookworm
- Source code repository: https://github.com/devcontainers/images
- Source code release/branch: v0.4.10
- Timestamp: Thu, 12 Dec 2024 21:37:55 GMT
More info: https://github.com/devcontainers/images/tree/main/src/python/history/1.2.1.md
Python version: $ python -V
Python 3.12.8
pip version: $ pip --version
pip 24.3.1 from /usr/local/lib/python3.12/site-packages/pip (python 3.12)
pip-tools version: $ pip-compile --version
pip-compile, version 7.4.1
Steps to replicate
Create ./requirements.in:
# This file is used to generate requirements.txt.# NOTE:# Use Python 3.8 or greater which ever is the minimum version of the python# you plan on supporting when creating the environment or using pip-tools.# Only run the commands below to manully upgrade packages in requirements.txt:# 1) python -m pip install pip-tools# 2) pip-compile --generate-hashes --resolver=backtracking --upgrade ./requirements.in# If you are using nox commands to setup or build package you don't need to# run the above commands manually.# Required packages
pygls
packaging
# https://test.pypi.org/project/partcad/
--extra-index-url https://test.pypi.org/simple/
partcad>=0.7.53
...
Could not find a version that satisfies the requirement cadquery-ocp==7.7.2.1 (from versions: none)
No matching distribution found for cadquery-ocp==7.7.2.1
Notes
pip-compile run chose cadquery-ocp==7.7.2.1 which is yanked, which caused pip install to fail:
The text was updated successfully, but these errors were encountered:
Yanking is unlikely the reason. The installers are specifically supposed to allow installing yanked thinks if that specific version is requested via ==. There must be another incompatibility with your system, like the supported Python version.
There must be another incompatibility with your system, like the supported Python version.
Seeing that this version only has wheels published and no sdist, if you're on a platform that does not match any of those wheels, and pip cannot use the sdist to build the project for your environment, it'd end up showing that error, which is accurate and expected.
It might've been that you're adding TestPyPI into the resolution, which is quite dangerous and is highly discouraged. It is possible that it adds things into the tree with weird metadata, steering the depresolver into making bad choices.
Somebody needs to dig deeper and come up with a good reproducer that could be made into a regression test.
Environment Versions
OS Type
Python version:
$ python -V
pip version:
$ pip --version
pip-tools version:
$ pip-compile --version
Steps to replicate
./requirements.in
:requirements.txt
:Expected result
Actual result
Notes
pip-compile
run chosecadquery-ocp==7.7.2.1
which is yanked, which causedpip install
to fail:The text was updated successfully, but these errors were encountered: