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

pyside6-deploy fails on from . import …

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.8.1, 6.8.0.2
    • Tooling
    • None

    Description

      When pyside6-deploy meets a line like this:

      from . import whatever
      

      it fails with an error like this:

      Traceback (most recent call last):
        File "${PROJECT_DIR}/.venv/lib/python3.12/site-packages/PySide6/scripts/deploy_lib/dependency_util.py", line 146, in pyside_module_imports
          if main_mod_name.startswith("PySide6"):
             ^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: 'NoneType' object has no attribute 'startswith'
      

      The check is clearly missing from there. The line 146 should be like this:

          if main_mod_name is not None main_mod_name.startswith("PySide6"):
      

      Attachments

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

        Activity

          People

            shpremna Shyamnath Premnadh
            stsav012 Anton Yablokov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes