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. Import packages in PySide2 has dll load fail, but import PySide2 is ok
Forum Updated to NodeBB v4.3 + New Features

Import packages in PySide2 has dll load fail, but import PySide2 is ok

Scheduled Pinned Locked Moved Unsolved Qt for Python
2 Posts 2 Posters 579 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.
  • K Offline
    K Offline
    klyjm
    wrote on last edited by
    #1

    When I use PySide2 in Anaconda, if I import Pyside2, it i ok; But when I import packages in PySide2, just like import PySide2.QtCore, there will be dll load fail:
    Python
    import PySide2.QtCore
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    ImportError: DLL load failed: The specified module could not be found.
    But when I use PyQt5, there will be nothing. My python is 3.6.8, PySide2 is 5.9.0, but when I use python 3.6.4 and PySide2 5.11.0, it is same. Do anyone know how to solve it? Thanks!

    jsulmJ 1 Reply Last reply
    0
    • K klyjm

      When I use PySide2 in Anaconda, if I import Pyside2, it i ok; But when I import packages in PySide2, just like import PySide2.QtCore, there will be dll load fail:
      Python
      import PySide2.QtCore
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      ImportError: DLL load failed: The specified module could not be found.
      But when I use PyQt5, there will be nothing. My python is 3.6.8, PySide2 is 5.9.0, but when I use python 3.6.4 and PySide2 5.11.0, it is same. Do anyone know how to solve it? Thanks!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @klyjm Please do not double post.
      https://forum.qt.io/topic/104463/import-packages-in-pyside2-has-dll-load-fail-but-import-pyside2-is-ok

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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