Skip to content

pybuild-deps throws errors w/ latest pip version (25.1) #5310

@tchughesiv

Description

@tchughesiv

Expected Behavior

make lock-python-dependencies-all should run successfully

Current Behavior

pixi run --environment py310 --manifest-path infra/scripts/pixi/pixi.toml \
		"uv pip install -p 3.10 pybuild-deps==0.5.0 && \
		pybuild-deps compile --generate-hashes \
		-o sdk/python/requirements/py3.10-minimal-sdist-requirements-build.txt \
		sdk/python/requirements/py3.10-minimal-sdist-requirements.txt"
Using Python 3.10.14 environment at: infra/scripts/pixi/.pixi/envs/py310
Audited 1 package in 3ms
Traceback (most recent call last):
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/bin/pybuild-deps", line 10, in <module>
    sys.exit(cli())
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/click/core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/click/core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/click/core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/click/core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/click/core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/pybuild_deps/scripts/compile.py", line 115, in compile
    hashes = compiler.resolver.resolve_hashes(results) if generate_hashes else None
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/piptools/resolver.py", line 167, in resolve_hashes
    with self.repository.allow_all_wheels(), log.indentation():
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/contextlib.py", line 135, in __enter__
    return next(self.gen)
  File "/Users/tohughes/workspace/feast/infra/scripts/pixi/.pixi/envs/py310/lib/python3.10/site-packages/piptools/repositories/pypi.py", line 452, in allow_all_wheels
    self.finder.find_all_candidates.cache_clear()
AttributeError: 'function' object has no attribute 'cache_clear'
make: *** [lock-python-dependencies-all] Error 1

Steps to reproduce

Run make lock-python-dependencies-all

Specifications

  • Version: Python 3.9, 3.10, 3.11
  • Platform: Macos
  • Subsystem:

Possible Solution

Lock pip to prior version (25.0.1) during pybuild-deps execution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions