Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. pyside6-designer can't load PySidePlugin.dll (custom widgets)
Qt 6.11 is out! See what's new in the release blog

pyside6-designer can't load PySidePlugin.dll (custom widgets)

Scheduled Pinned Locked Moved Unsolved Qt for Python
5 Posts 3 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Okko Willeboordse
    wrote on last edited by
    #1

    When running in a virtual environment pyside6-designer fails to load custom widgets.

    Custom widgets only load when the 'base' Python folder is in the path.

    Note that this 'base' Python folder can be found with sys._base_executable.

    Please make pyside6-designer such that it can load custom widgets without the need for the 'base' Python folder being in the PATH.

    Reproduce with;

    Running Python 3 (tested 3.9 - 3.11 64 bit) on Windows (tested 11).

    Create a virtual environment.

    pip install PySide6.

    Run pyside6-designer.

    TicTacToe widget is not available. Help->About Plugins shows error loading PySidePlugin.dll.

    Sysinternals DebugView shows no messages.

    Add the folder holding the base Python executable (C:\Program Files\Python3XX) to the path.

    Run pyside6-designer.

    Now the TicTacToe widget is available

    2a2e8554-f695-4121-b983-504cba55b507-image.png
    d2b6452e-1692-428e-a318-b9f4343fc9a7-image.png

    JonBJ 1 Reply Last reply
    0
    • O Okko Willeboordse

      When running in a virtual environment pyside6-designer fails to load custom widgets.

      Custom widgets only load when the 'base' Python folder is in the path.

      Note that this 'base' Python folder can be found with sys._base_executable.

      Please make pyside6-designer such that it can load custom widgets without the need for the 'base' Python folder being in the PATH.

      Reproduce with;

      Running Python 3 (tested 3.9 - 3.11 64 bit) on Windows (tested 11).

      Create a virtual environment.

      pip install PySide6.

      Run pyside6-designer.

      TicTacToe widget is not available. Help->About Plugins shows error loading PySidePlugin.dll.

      Sysinternals DebugView shows no messages.

      Add the folder holding the base Python executable (C:\Program Files\Python3XX) to the path.

      Run pyside6-designer.

      Now the TicTacToe widget is available

      2a2e8554-f695-4121-b983-504cba55b507-image.png
      d2b6452e-1692-428e-a318-b9f4343fc9a7-image.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Okko-Willeboordse said in pyside6-designer can't load PySidePlugin.dll (custom widgets):

      Please make pyside6-designer such that it can load custom widgets without the need for the 'base' Python folder being in the PATH.

      If you want this you need to ask developers or raise as Qt bug.

      1 Reply Last reply
      0
      • F Offline
        F Offline
        friedemannkleint
        wrote on last edited by
        #3

        I don't think this can be fixed. Qt Designer needs to be able to load the complete DLL including its dependencies (python.dll). This happens in the library loader in C++; there is no Python involved.

        O 1 Reply Last reply
        0
        • F friedemannkleint

          I don't think this can be fixed. Qt Designer needs to be able to load the complete DLL including its dependencies (python.dll). This happens in the library loader in C++; there is no Python involved.

          O Offline
          O Offline
          Okko Willeboordse
          wrote on last edited by
          #4

          @friedemannkleint Note that other libs also need stuff from the 'base' Python folder but do not need the 'base' Python folder being in the PATH.
          Note that sys._base_executable can be used to find this folder. pyside6-designer could add this folder itself.

          1 Reply Last reply
          0
          • F Offline
            F Offline
            friedemannkleint
            wrote on last edited by
            #5

            The tool wrapper can arguably add it Prospective fix ..

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved