python - Conflict in convert dialog.ui to dialog.py with QGIS -
i installed qgis 2.18.11 in linux mint 18.2 whit no problem. can run qgis when want convert dialog.ui dialog.py pyuic4 -o dialog.py dialog.ui
in terminal received below error:
an unexpected error occurred. check using latest version of pyqt , send error report support@riverbankcomputing.com, including following information:
- your version of pyqt (4.11.4)
- the ui file caused error
- the debug output of pyuic4 (use -d flag when calling pyuic4)
in pyuic4 -o dialog.py dialog.ui -d
received below error:
traceback (most recent call last):
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/port_v2/invoke.py", line 34, in invoke exit_status = driver.invoke()
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/driver.py", line 59, in invoke self._generate()
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/driver.py", line 98, in _generate self._opts.resource_suffix)
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/init.py", line 173, in compileui winfo = compiler.uicompiler().compileui(uifile, pyfile, from_imports, resource_suffix)
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/compiler/compiler.py", line 55, in init compilercreatorpolicy())
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/uiparser.py", line 170, in init self.factory = qobjectcreator(creatorpolicy)
file "/usr/lib/python2.7/dist-packages/pyqt4/uic/objcreator.py", line 94, in init modinfo = plugin_locals"moduleinformation"
file "", line 52, in moduleinformation
file "/usr/lib/python2.7/dist-packages/qgis/init.py", line 26, in qgis.pyqt import qtcore
file "/usr/lib/python2.7/dist-packages/qgis/pyqt/qtcore.py", line 28, in sip.setapi(api, 2)
valueerror: api 'qdate' has been set version 1
in next try used below commands in terminal:
sudo apt-get remove --purge python-qt4 sudo apt-get clean sudo apt-get install python-qt4 sudo apt install pyqt4-dev-tools
in stage convert dialog.ui
dialog.py
pyuic4 -o dialog.py dialog.ui
command when want run qgis removed linux. how can solve problem?
Comments
Post a Comment