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. shiboken2 DLL Loading Problem
Qt 6.11 is out! See what's new in the release blog

shiboken2 DLL Loading Problem

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 2 Posters 3.8k Views 2 Watching
  • 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.
  • Andy314A Offline
    Andy314A Offline
    Andy314
    wrote on last edited by Andy314
    #1

    Hello,
    usualy I develop with in C++. Now will test the Python way in Qt.
    Python 3.6 is installed in "D:\Python".

    The script fails from the very beginning in this line:

    from PySide2.QtWidgets import QApplication, QMainWindow
    

    What can be the reason ?

    This is shown in the "Application output"

    \Users\weich\AppData\Roaming\Python\Python36\site-packages, D:\Python\lib\site-packages
    Traceback (most recent call last):
      File "D:\@projekte\Python\QtTest\PythonTest\main.py", line 6, in 
    <module>
        from PySide2.QtWidgets import QApplication, QMainWindow
      File "D:\Python\lib\site-packages\PySide2\__init__.py", line 107, in <module>
        _setupQtDirectories()
      File "D:\Python\lib\site-packages\PySide2\__init__.py", line 58, in _setupQtDirectories
        import shiboken2
      File "D:\Python\lib\site-packages\shiboken2\__init__.py", line 27, in <module>
        from .shiboken2 import *
    ImportError: DLL load failed: Die angegebene Prozedur wurde nicht gefunden.
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      How did you install PySide2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Andy314A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        How did you install PySide2 ?

        Andy314A Offline
        Andy314A Offline
        Andy314
        wrote on last edited by
        #3

        @SGaist said in shiboken2 DLL Loading Problem:

        Hi,

        How did you install PySide2 ?

        Via pip.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Which version did you get ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Andy314A 1 Reply Last reply
          0
          • SGaistS SGaist

            Which version did you get ?

            Andy314A Offline
            Andy314A Offline
            Andy314
            wrote on last edited by
            #5

            @SGaist said in shiboken2 DLL Loading Problem:

            Which version did you get ?

            I got PySide2 - 5.15.2

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Try installing a previous version.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Andy314A 1 Reply Last reply
              0
              • SGaistS SGaist

                Try installing a previous version.

                Andy314A Offline
                Andy314A Offline
                Andy314
                wrote on last edited by Andy314
                #7

                @SGaist said in shiboken2 DLL Loading Problem:

                Try installing a previous version.

                I have tested a lot of PySide versions but nothing helps.
                Then in the source-code I found a hint to a libshiboken.dll. Under this topic you can find more in the net net.
                The solution was Python 3.8.7.

                1 Reply Last reply
                1

                • Login

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