我是靠谱客的博主 义气鲜花,最近开发中收集的这篇文章主要介绍qt5 python ide_#564 (run eric6 python ide along with qgis3/qt5 error) – OSGeo4W,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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/translationsqtwebengine_locales. Trying application directory...

Qt WebEngine locales directory not found at location G:/tmp/q3/apps/Python36qtwebengine_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:tmpq3appsQt5resources, qtwebengine_locales is under G:tmpq3appsQt5translations. I used py3_env.bat and qt5_env.bat before execution.

My path:

PATH=G:tmpq3appsqt5bin;G:tmpq3appsPython36;G:tmpq3appsPython36Scripts;G:tmpq3appsqt5bin;G:tmpq3bin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSsystem32WBem;G:tmpq3appsPython36Scripts;G:tmpq3appsqgisbin

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

最后

以上就是义气鲜花为你收集整理的qt5 python ide_#564 (run eric6 python ide along with qgis3/qt5 error) – OSGeo4W的全部内容,希望文章能够帮你解决qt5 python ide_#564 (run eric6 python ide along with qgis3/qt5 error) – OSGeo4W所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(44)

评论列表共有 0 条评论

立即
投稿
返回
顶部