Уведомления

Группа в Telegram: @pythonsu

#1 Март 30, 2018 17:40:48

Yust
Зарегистрирован: 2018-03-25
Сообщения: 10
Репутация: +  0  -
Профиль   Отправить e-mail  

No module named PyQt.QtGui помогите вылечить

Добрый день!

Не могу справиться с PyQt:

C:\OSGeo4W64\bin\python.exe DPythonProjects/SWMM-EPANET_User_Interface/src/ui/EPANET/frmMainEPANET.py
Traceback (most recent call last):
File “DPythonProjects/SWMM-EPANET_User_Interface/src/ui/EPANET/frmMainEPANET.py”, line 15, in <module>
from ui.frmMain import frmMain, ModelLayers
File “D:\PythonProjects\SWMM-EPANET_User_Interface\src\ui\frmMain.py”, line 30, in <module>
from ui.frmTranslateCoordinates import frmTranslateCoordinates
File “D:\PythonProjects\SWMM-EPANET_User_Interface\src\ui\frmTranslateCoordinates.py”, line 7, in <module>
from ui.selectCrsDlg import SelectCrsDlg
File “D:\PythonProjects\SWMM-EPANET_User_Interface\src\ui\selectCrsDlg.py”, line 24, in <module>
from qgis.gui import QgsProjectionSelector
File “C:\OSGeo4W64\apps\qgis\python\qgis\__init__.py”, line 71, in <module>
from qgis.PyQt import QtCore
File “C:\OSGeo4W64\apps\qgis\python\qgis\PyQt\QtCore.py”, line 26, in <module>
from PyQt.QtGui import *
ImportError: No module named PyQt.QtGui

Process finished with exit code 1

Помогите, подскажите пожалуйста что ему не так?

# -*- coding: utf-8 -*-

"""
***************************************************************************
QtCore.py
---------------------
Date : November 2015
Copyright : (C) 2015 by Matthias Kuhn
Email : matthias at opengis dot ch
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Matthias Kuhn'
__date__ = 'November 2015'
__copyright__ = '(C) 2015, Matthias Kuhn'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'

from PyQt.QtGui import *

from types import MethodType


_QVariant__repr__ = QVariant.__repr__
_QVariant__eq__ = QVariant.__eq__
_QVariant__ne__ = QVariant.__ne__
_QVariant__hash__ = QVariant.__hash__


def __bool__(self):
return not self.isNull()


def __repr__(self):
if self.isNull():
return 'NULL'
else:
return _QVariant__repr__(self)


def __eq__(self, other):
if self.isNull():
return (isinstance(other, QVariant) and other.isNull())or other is None
else:
return _QVariant__eq__(self, other)


def __ne__(self, other):
if self.isNull():
return not (isinstance(other, QVariant) and other.isNull()) and other is not None
else:
return _QVariant__ne__(self, other)


def __hash__(self):
if self.isNull():
return 2178309
else:
return _QVariant__hash__(self)


QVariant.__bool__ = __bool__
QVariant.__repr__ = __repr__
QVariant.__eq__ = __eq__
QVariant.__ne__ = __ne__
QVariant.__hash__ = __hash__

NULL = QVariant(QVariant.Int)

Офлайн

#2 Март 30, 2018 17:42:11

vic57
Зарегистрирован: 2015-07-07
Сообщения: 913
Репутация: +  127  -
Профиль  

No module named PyQt.QtGui помогите вылечить

есть PyQt4,PyQt5. PyQt не встречал

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version