Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PyQt5, QWebEngine and Opengl context #1930
My application was running fine before I add a QWebEngineView to it. Running the application using python works fine, but the .exe generated by pyinstaller dont.
I have the following errors when I start my application :
The application does not crash. But when I make my
Here is a sample code which reproduces the error :
import sys import os from PyQt5.QtWidgets import QApplication from PyQt5.QtWebEngineWidgets import QWebEngineView from PyQt5.QtCore import QUrl if __name__ == '__main__': app = QApplication(sys.argv) view = QWebEngineView() view.resize(1024, 600) view.load(QUrl("http://eric-ide.python-projects.org")) view.show() sys.exit(app.exec_())
Also, adding the missing plugins to the build dir does not fix the bug.
I have the same problem
I am using PyQt5.8, python3.5, Pyinstaller 3.3.dev0+964547c.
I have all files and directory
in both PyQt5, Qt5 and even found them in the temp folder.
I reinstalled Pyinstaller, PyQt5, and Qt5.
It runs perfectly with python, but when it is compiled with Pyinstaller.
The WebEngine shows a blank window.
I used the same code.
I'm using Fedora 24 and I've solved the problem as follows:
After finishing the execution of pyinstaller:
These steps should solve this issue.