Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#564 closed defect (worksforme)

run eric6 python ide along with qgis3/qt5 error

Reported by: Andreas Müller Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: python3 pyqt5 ide eric6
Cc:

Description

I tried to install the python ide eric6 version 18.02 with python and qt provided by OSGEO4W (eric6 itself is written in python by the way). Install works without any errors, but eric won't start - after the splash screen python crashes. Though I can see errors when i start it manually calling eric6.py:

Warning: translation file 'qt_de_DE'could not be loaded. Using default. Warning: translation file 'qscintilla_de_DE'could not be loaded. Using default. BackgroundService listening on: 61573 Could not find QtWebEngineProcess.exe Traceback (most recent call last):

File "C:\tmp\q3\apps\Python36\Lib\site-packages\eric6\Utilities\BackgroundClient.py", line 141, in run

header = self.receive(struct.calcsize(b'!II'))

File "C:\tmp\q3\apps\Python36\Lib\site-packages\eric6\Utilities\BackgroundClient.py", line 99, in receive

newData = self.connection.recv(length - len(data))

ConnectionResetError: 10054 Eine vorhandene Verbindung wurde vom Remotehost geschlossen

So it seems, that i am missing QtWebEngineProcess.exe? I searched my computer for any occurrence and found one under the dropbox install folder, so there are applictions using it. Is it part of "standard" PyQt5 and missing in the osgeo4w-packages?

Change History (5)

comment:1 by jef, 7 years ago

Resolution: worksforme
Status: newclosed

qt5-devel contains QtWebEngineProcess.exe

comment:2 by Andreas Müller, 7 years ago

Thank you jef, now i have QtWebEngineProcess.exe, it's in my path, but python/Qt doesn't find it. So it's quite the same.

I do use this little python script for further testing. It tries to show a QWebEngineView.

import sys

from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWebEngineWidgets import QWebEngineView
from PyQt5.QtCore import QUrl
def main():
    app = QApplication(sys.argv)
    window = QMainWindow()
    window.setWindowTitle('PyQt Demo')
    window.setGeometry(320, 180, 960, 540)
    view = QWebEngineView()
    view.load(QUrl('http://leafletjs.com/')) # error here
    window.setCentralWidget(view)
    window.show()
    sys.exit(app.exec_())
if __name__ == '__main__':
    main()

QT_PLUGIN_PATH ist set. When I also set QTWEBENGINEPROCESS_PATH to the correct path, the error isn't showing - but then i got new ones:

Qt WebEngine ICU data not found at C:/src/Qt/Qt5.9.2-2/5.9.2/msvc2015/resources. Trying parent directory...
Qt WebEngine ICU data not found at C:/src/Qt/Qt5.9.2-2/5.9.2/msvc2015. Trying application directory...
Qt WebEngine ICU data not found at G:/tmp/q3/apps/Python36. Trying fallback directory... The application MAY NOT work.
Installed Qt WebEngine locales directory not found at location C:/src/Qt/Qt5.9.2-2/5.9.2/msvc2015/translations\qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location G:/tmp/q3/apps/Python36\qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
[0313/220213.363:ERROR:icu_util.cc(178)] Invalid file descriptor to ICU data received.
[0313/220213.370:FATAL:icu_util.cc(297)] Check failed: result.

It seems, qt has a wrong configuration, icudtl.dat is in G:\tmp\q3\apps\Qt5\resources, qtwebengine_locales is under G:\tmp\q3\apps\Qt5\translations. I used py3_env.bat and qt5_env.bat before execution.

My path:

PATH=G:\tmp\q3\apps\qt5\bin;G:\tmp\q3\apps\Python36;G:\tmp\q3\apps\Python36\Scripts;G:\tmp\q3\apps\qt5\bin;G:\tmp\q3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;G:\tmp\q3\apps\Python36\Scripts;G:\tmp\q3\apps\qgis\bin

Some entries are doubled, as you can see...

comment:3 by jef, 7 years ago

Should be fixed in pyqt5-5.9-2

comment:4 by Andreas Müller, 7 years ago

Thank you again! Missing file was apps\Python36\qt.conf. Please don't forget to textreplace qt.conf.tmpl in postinstall.

in reply to:  4 comment:5 by jef, 7 years ago

Replying to muellea:

Missing file was apps\Python36\qt.conf. Please don't forget to textreplace qt.conf.tmpl in postinstall.

ouch, was only missing in x86.

Note: See TracTickets for help on using tickets.