Python Forum
[PyQt] [Solved] Help with an DLL import error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] [Solved] Help with an DLL import error
#1
Hello,

I have a quick script that should let me view the GUI.
But when I run it I get this error:
Error:
from PyQt6.QtWidgets import QApplication ImportError: DLL load failed while importing QtGui: The specified procedure could not be found.
Does anyone know how I can fix this?

Thanks in advance.


The code:
from PyQt6 import uic
from PyQt6.QtWidgets import QApplication

Form, Window = uic.loadUiType("LoginScreenGUI.ui")

app = QApplication([])
window = Window()
form = Form()
form.setupUi(window)
window.show()
app.exec()
Reply
#2
Fixed it. Just changed PyQt6 to PyQt5
Reply
#3
This is how I show PDF in PyQt5, external modules are not required.
Reply
#4
You need to reinstall PyQt6 with this command in Windows OS:

pip3 install PyQt6 --user --ignore-installed
Make a search with my nickname catafest and you will find my blog about python
Reply
#5
Everything works properly when changed PyQt6 to PyQt5
Drift Boss
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] [Solved] Eric 7 uic error arwen 2 1,305 Jan-20-2023, 08:19 AM
Last Post: arwen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020