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

When updating 6.6.1 to 6.6.2, some files from the wheel are skipped breaking the module

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.2
    • PySide
    • None
    • Windows 10 Enterprise 22H2
      Python 3.12
      All pip packages up-to-date
    • Windows

    Description

      This minimal example works with PySide6 6.6.1, but not with 6.6.2:

      import sys
      from PySide6.QtWidgets import QApplication, QLabel, QWidget
      
      def main():
          # Create the application
          app = QApplication(sys.argv)
          # Create a main window widget
          window = QWidget()
          window.setWindowTitle("Hello, World!")
          # Create a label widget
          label = QLabel("Hello, World!", window)
          label.setGeometry(50, 50, 200, 30)
          # Show the main window
          window.show()
          # Enter the application event loop
          sys.exit(app.exec_())
      
      if __name__ == "__main__":
          main()
      
      $ C:/Users/WilmsFA/AppData/Local/Programs/Python/Python312/python.exe c:/Users/WilmsFA/Tools/pt-tool/helloworld.py
      Traceback (most recent call last):
        File "signature_bootstrap.py", line 77, in bootstrap
        File "signature_bootstrap.py", line 93, in find_incarnated_files
        File "C:\Users\WilmsFA\AppData\Local\Programs\Python\Python312\Lib\pathlib.py", line 1162, in __init__
          super().__init__(*args)
        File "C:\Users\WilmsFA\AppData\Local\Programs\Python\Python312\Lib\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: initialized
      
      Current thread 0x00003d68 (most recent call first):
        File "<frozen importlib._bootstrap>", line 488 in _call_with_frames_removed
        File "<frozen importlib._bootstrap_external>", line 1288 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 "C:\Users\WilmsFA\AppData\Local\Programs\Python\Python312\Lib\site-packages\PySide6\__init__.py", line 64 in _setupQtDirectories
        File "C:\Users\WilmsFA\AppData\Local\Programs\Python\Python312\Lib\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 994 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 "c:\Users\WilmsFA\Tools\pt-tool\helloworld.py", line 2 in <module>
      
      Extension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, _wmi, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, xxsubtype (total: 15)    
      
      $ pip3 install PySide6==6.6.1
      Looking in indexes: https://example.com/repository/python/simple
      Collecting PySide6==6.6.1
        Using cached https://example.com/repository/python/packages/pyside6/6.6.1/PySide6-6.6.1-cp38-abi3-win_amd64.whl (66 kB)
      Collecting shiboken6==6.6.1 (from PySide6==6.6.1)
        Using cached https://example.com/repository/python/packages/shiboken6/6.6.1/shiboken6-6.6.1-cp38-abi3-win_amd64.whl (1.1 MB)
      Collecting PySide6-Essentials==6.6.1 (from PySide6==6.6.1)
        Using cached https://example.com/repository/python/packages/pyside6-essentials/6.6.1/PySide6_Essentials-6.6.1-cp38-abi3-win_amd64.whl (77.0 MB)
      Collecting PySide6-Addons==6.6.1 (from PySide6==6.6.1)
        Using cached https://example.com/repository/python/packages/pyside6-addons/6.6.1/PySide6_Addons-6.6.1-cp38-abi3-win_amd64.whl (110.3 MB)
      Installing collected packages: shiboken6, PySide6-Essentials, PySide6-Addons, PySide6
        Attempting uninstall: shiboken6
          Found existing installation: shiboken6 6.6.2
          Uninstalling shiboken6-6.6.2:
            Successfully uninstalled shiboken6-6.6.2
        Attempting uninstall: PySide6-Essentials
          Found existing installation: PySide6_Essentials 6.6.2
          Uninstalling PySide6_Essentials-6.6.2:
            Successfully uninstalled PySide6_Essentials-6.6.2
        Attempting uninstall: PySide6-Addons
          Found existing installation: PySide6_Addons 6.6.2
          Uninstalling PySide6_Addons-6.6.2:
            Successfully uninstalled PySide6_Addons-6.6.2
        Attempting uninstall: PySide6
          Found existing installation: PySide6 6.6.2
          Uninstalling PySide6-6.6.2:
            Successfully uninstalled PySide6-6.6.2
      Successfully installed PySide6-6.6.1 PySide6-Addons-6.6.1 PySide6-Essentials-6.6.1 shiboken6-6.6.1
      
      $ C:/Users/WilmsFA/AppData/Local/Programs/Python/Python312/python.exe c:/Users/WilmsFA/Tools/pt-tool/helloworld.py
      c:\Users\WilmsFA\Tools\pt-tool\helloworld.py:16: DeprecationWarning: 'exec_' will be removed in the future. Use 'exec' instead.
        sys.exit(app.exec_())
      

      Attachments

        Issue Links

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

          Activity

            People

              crmaurei Cristian Maureira-Fredes
              alexander-wilms Fabian Alexander Wilms
              Votes:
              6 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes