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. PyQt6 6.8.0 in PyCharm, when I run the debugger, the app crashes.
QtWS25 Last Chance

PyQt6 6.8.0 in PyCharm, when I run the debugger, the app crashes.

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

    Full error message:

    Traceback (most recent call last):
      File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
        pydev_imports.execfile(file, globals, locals)  # execute the script
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
        exec(compile(contents+"\n", file, 'exec'), glob, loc)
      File "C:\Users\username\OneDrive\Dokumentai\PyCharmProjects\DrumsProject\main.py", line 7, in <module>
        from PyQt6.QtWidgets import (QMainWindow, QApplication, QFrame, QPushButton, QSizeGrip, QDialog, QLabel, QSlider,
    ImportError: DLL load failed while importing QtWidgets: The specified procedure could not be found.
    python-BaseException
    
    JonBJ 1 Reply Last reply
    0
    • M Mizmas

      Full error message:

      Traceback (most recent call last):
        File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\pydevd.py", line 1570, in _exec
          pydev_imports.execfile(file, globals, locals)  # execute the script
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Program Files\JetBrains\PyCharm Community Edition 2023.2.5\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
          exec(compile(contents+"\n", file, 'exec'), glob, loc)
        File "C:\Users\username\OneDrive\Dokumentai\PyCharmProjects\DrumsProject\main.py", line 7, in <module>
          from PyQt6.QtWidgets import (QMainWindow, QApplication, QFrame, QPushButton, QSizeGrip, QDialog, QLabel, QSlider,
      ImportError: DLL load failed while importing QtWidgets: The specified procedure could not be found.
      python-BaseException
      
      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Mizmas
      Both PyQt and PyCharm, which are both implicated, are third-party products so you mgiht be better asking them.

      Does your program run OK outside of PyCharm/debugger?

      Did you try a minimal script, and with less of those classes imported from QtWidgets?

      Did you try a more up-to-date version of PyCharm than one from two years ago?

      M 1 Reply Last reply
      0
      • JonBJ JonB

        @Mizmas
        Both PyQt and PyCharm, which are both implicated, are third-party products so you mgiht be better asking them.

        Does your program run OK outside of PyCharm/debugger?

        Did you try a minimal script, and with less of those classes imported from QtWidgets?

        Did you try a more up-to-date version of PyCharm than one from two years ago?

        M Offline
        M Offline
        Mizmas
        wrote on last edited by
        #3

        @JonB I'm actually using the latest PyCharm version. This only happens with the latest PyQt6 version 6.8.0, and works fine with PyQt6 6.7.1, so it's probably an issue with the latest PyQt6 version, not the IDE.

        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