Python Forum

Full Version: ImportError "QtWingets" PyQt5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use:

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.

>>> import PyQt5

>>> from PyQt5 import *

>>> dir(PyQt5)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_os', '_path']

>>> help(PyQt5)
Help on package PyQt5:
NAME
PyQt5
DESCRIPTION
# Copyright © 2018 Riverbank Computing Limited <[email protected]>
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# [email protected].
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
PACKAGE CONTENTS
QAxContainer
Qsci
Qt
QtBluetooth
QtCore
QtDBus
QtDesigner
QtGui
QtHelp
QtLocation
QtMultimedia
QtMultimediaWidgets
QtNetwork
QtNetworkAuth
QtNfc
QtOpenGL
QtPositioning
QtPrintSupport
QtQml
QtQuick
QtQuickWidgets
QtSensors
QtSerialPort
QtSql
QtSvg
QtTest
QtWebChannel
QtWebEngineCore
QtWebEngineWidgets
QtWebSockets
QtWidgets
QtWinExtras
QtXml
QtXmlPatterns
_QOpenGLFunctions_2_0
_QOpenGLFunctions_2_1
_QOpenGLFunctions_4_1_Core
pylupdate
pylupdate_main
pyrcc
pyrcc_main
sip
uic (package)

FILE
c:\python\python37-32\lib\site-packages\pyqt5\__init__.py


>>> from PyQt5 import Qt #No Error
>>> help(PyQt5.Qt)
Help on module PyQt5.Qt in PyQt5:

NAME
PyQt5.Qt

FILE
c:\python\python37-32\lib\site-packages\pyqt5\qt.pyd


>>> from PyQt5 import QtWidgets #Error Import
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
from PyQt5 import QtWidgets
ImportError: DLL load failed: The specified procedure could not be found.

>>> help(PyQt5.QtWidgets)
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
help(PyQt5.QtWidgets)
AttributeError: module 'PyQt5' has no attribute 'QtWidgets'

Help me please!!!!