Skip to content

rez-pip installation does not work for PySide6 #1926

Open
@beatreichenbach

Description

@beatreichenbach

Environment

  • OS: Rocky Linux release 8.10 (Green Obsidian) x86_64
  • Rez 3.2.1
  • Python 3.11.11

To Reproduce
rez-pip --install --release --python-version 3.11 "PySide6"
Then load the package:
rez-env PySide6 -- python

>>> from PySide6 import QtWebEngineWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'QtWebEngineWidgets' from 'PySide6' 

The problem is PySide6 points to PySide6_Essentials instead of PySide6, meaning it can never fall back to PySide6_Addons.

I don't know exactly what went wrong during the installation with rez-pip but the packages that rez installed look different than the packages installed by normal pip in a virtual environment's site-packages directory.
For example, PySide6 in rez only contains stub files while PySide6 in the venv contains actual code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrez-pipingesting py pkgs into rez (pip, wheels, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions