Skip to content

install.py not working with Python created by UV #2038

@legomir

Description

@legomir

Describe the bug here.

Environment

  • OS: MacOS Sequoia 15.5
  • Rez version: 3.3.0
  • Rez python version: 3.11.9

To Reproduce

  1. Create python by using UV: uv python install 3.11.9 -i /path/to/python
  2. Run: /path/to/python/bin/python ./install.py /path/to/rez

Expected behavior
Rez install script finished python install successfully.

Actual behavior
Rez installation fails with:

~/tools/python/cpython-3.11.9-macos-aarch64-none/bin/python3.11 ./install.py ~/tools/rez/{version} -v
installing rez to /Users/pawelbernaciak/tools/rez/3.3.0...
Traceback (most recent call last):
  File "/Users/pawelbernaciak/dev/rez/./install.py", line 322, in <module>
    install(dest_dir, print_welcome=True, editable=opts.editable)
  File "/Users/pawelbernaciak/dev/rez/./install.py", line 155, in install
    create_virtual_environment(dest_dir)
  File "/Users/pawelbernaciak/dev/rez/./install.py", line 51, in create_virtual_environment
    builder.create(dest_dir)
  File "/Users/pawelbernaciak/tools/python/cpython-3.11.9-macos-aarch64-none/lib/python3.11/venv/__init__.py", line 76, in create
    self._setup_pip(context)
  File "/Users/pawelbernaciak/tools/python/cpython-3.11.9-macos-aarch64-none/lib/python3.11/venv/__init__.py", line 358, in _setup_pip
    self._call_new_python(context, '-m', 'ensurepip', '--upgrade',
  File "/Users/pawelbernaciak/tools/python/cpython-3.11.9-macos-aarch64-none/lib/python3.11/venv/__init__.py", line 354, in _call_new_python
    subprocess.check_output(args, **kwargs)
  File "/Users/pawelbernaciak/tools/python/cpython-3.11.9-macos-aarch64-none/lib/python3.11/subprocess.py", line 466, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/pawelbernaciak/tools/python/cpython-3.11.9-macos-aarch64-none/lib/python3.11/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Users/pawelbernaciak/tools/rez/3.3.0/bin/python3.11', '-m', 'ensurepip', '--upgrade', '--default-pip']' died with <Signals.SIGABRT: 6>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions