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

PySide2-5.15.0 - On >>import PySide2 : Shiboken2 ImportError: DLL load failed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Fixed
    • Affects Version/s: 5.15
    • Fix Version/s: 5.15.0, 5.15.1, 5.15
    • Component/s: PySide, Shiboken
    • Labels:
      None
    • Environment:
    • Platform/s:
      Windows
    • Commits:
      5b025c330c78abdaa13d38690c391021495a300e (pyside/pyside-setup/5.15) 7d4d2fd57fba7fa82d1899c667328535efc7694c (pyside/pyside-setup/5.15) 0467ea1c3ddbf81fe4ab9a5c521e1d41ea22481f (pyside/tqtc-pyside-setup/5.15.0)

      Description

      Python: 3.71 
      PySide2-5.15.0
      shiboken2-5.15.0

      When installing PySide2 via >>pip install PySide2 

      And then jumping in to the python console. Trying to import >>import PySide2 

      It generates the error: 

      Successfully installed PySide2-5.15.0 shiboken2-5.15.0

      C:\Users\XX>python
      Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import PySide2
      PySide2/init.py: Unable to import shiboken2 from , C:\Users\XX\AppData\Local\Programs\Python\Python37\python37.zip, C:\Users\XX\AppData\Local\Programs\Python\Python37\DLLs, C:\Users\XX\AppData\Local\Programs\Python\Python37\lib, C:\Users\XX\AppData\Local\Programs\Python\Python37, C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages, C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages\win32, C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages\win32\lib, C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages\Pythonwin
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages\PySide2_init_.py", line 88, in <module>
      _setupQtDirectories()
      File "C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages\PySide2_init_.py", line 54, in _setupQtDirectories
      import shiboken2
      File "C:\Users\XX\AppData\Local\Programs\Python\Python37\lib\site-packages\shiboken2_init_.py", line 27, in <module>
      from .shiboken2 import *
      ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.

        Attachments

          Issue Links

          For Gerrit Dashboard: PYSIDE-1323
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              falt Simo Fält
              Reporter:
              pullpullson Paul Golter
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes