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

Error when running Pyside6 - Shibuken6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.7.2
    • Shiboken
    • None
    • I'm running Python3.12.4 on Ubuntu22.04 (X11)
    • Linux/X11

    Description

      When running Pyside6 version 6.7.2 Shibuken6 (installed version 6.7.2 also) throws the following error:

      Traceback (most recent call last):
        File "signature_bootstrap.py", line 77, in bootstrap
        File "signature_bootstrap.py", line 93, in find_incarnated_files
        File "/usr/lib/python3.12/pathlib.py", line 1162, in __init__
          super().__init__(*args)
        File "/usr/lib/python3.12/pathlib.py", line 373, in __init__
          raise TypeError(
      TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
      Fatal Python error: could not initialize part 2
      Python runtime state: initializedCurrent thread 0x00007dd7f3ff0000 (most recent call first):
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap_external>", line 1289 in create_module
        File "<frozen importlib._bootstrap>", line 813 in module_from_spec
        File "<frozen importlib._bootstrap>", line 921 in _load_unlocked
        File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1415 in _handle_fromlist
        File "<string>", line 1 in <module>Extension modules: shiboken6.Shiboken (total: 1)
      [1]    15962 IOT instruction (core dumped)  python -c 'from shiboken6 import Shiboken' 

       

       

      Then same error is throwned when importing 

      Traceback (most recent call last):
        File "signature_bootstrap.py", line 77, in bootstrap
        File "signature_bootstrap.py", line 93, in find_incarnated_files
        File "/usr/lib/python3.12/pathlib.py", line 1162, in __init__
          super().__init__(*args)
        File "/usr/lib/python3.12/pathlib.py", line 373, in __init__
          raise TypeError(
      TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'
      Fatal Python error: could not initialize part 2
      Python runtime state: initializedCurrent thread 0x0000749d22166000 (most recent call first):
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap_external>", line 1289 in create_module
        File "<frozen importlib._bootstrap>", line 813 in module_from_spec
        File "<frozen importlib._bootstrap>", line 921 in _load_unlocked
        File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1415 in _handle_fromlist
        File "/home/dev/.cache/pypoetry/virtualenvs/mega-conversao-interface-kHDtOK1C-py3.12/lib/python3.12/site-packages/PySide6/__init__.py", line 64 in _setupQtDirectories
        File "/home/dev/.cache/pypoetry/virtualenvs/mega-conversao-interface-kHDtOK1C-py3.12/lib/python3.12/site-packages/PySide6/__init__.py", line 124 in <module>
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap_external>", line 995 in exec_module
        File "<frozen importlib._bootstrap>", line 935 in _load_unlocked
        File "<frozen importlib._bootstrap>", line 1331 in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1310 in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 1360 in _find_and_load
        File "<string>", line 1 in <module>Extension modules: shiboken6.Shiboken (total: 1)
      [1]    17359 IOT instruction (core dumped)  python -c 'from PySide6.QtWidgets import QApplication' 

       

      Attachments

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

        Activity

          People

            kleint Friedemann Kleint
            vitorhideyoshi Vitor Batista
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes