Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 ImportError "QtWingets" PyQt5
#1
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 <info@riverbankcomputing.com>
#
# 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
# info@riverbankcomputing.com.
#
# 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!!!!
Larz60+ wrote Sep-17-2018, 11:04 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Huge code problems (buttons(PyQt5),PyQt5 Threads, Windows etc) ZenWoR 0 276 Apr-06-2019, 11:15 PM
Last Post: ZenWoR

Forum Jump:


Users browsing this thread: 1 Guest(s)