Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1940

RPATH issue (No module named 'PySide6.QtCore')

    XMLWordPrintable

Details

    • User Story
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.3
    • PySide
    • None
    • Linux/X11

    Description

      Apparently since release of PySide6 6.3 the RPATH seems to have broken in Linux (Manjaro/Arch).

      In this setup pyside6 installs to

      $HOME/.local/lib/python-<version>/site-packages

      (also tried with pyside6-essentials).

       

      Now the QtCore module is not found:

      Python 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0] on linux
      
      >>> from PySide6 import QtCore
      
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      ImportError: cannot import name 'QtCore' from 'PySide6' (unknown location)

      (same with `from PySide6.QtCore import Qt)

       

      Note: Cross-checked this in a venv and it works! At least this explains nobody reported this yet. I still think installing in ~/.local should work alike.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            antis81 Nils Fenner
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes