Using Qwebengine Of Qt5
Solution 1:
Answer :
I uninstalled every version of Python i have in Windows.
I installed python 3.9 @ C:\Python
I installed PyQt5 , pyqt5-tools with pip
I installed pyinstaller via github (commands
python setup.py build
andpython setup.py install
)I add C:\Python and C:\Python\Scripts to enviroment path.
I move my project to C:\Python\Scripts
I maked the executable(s) files with
pyinstaller --name="Papinhio player" --icon=../src/media/images/papinhio_player.ico ../src/main/python_files/Papinhio_player.py
command.
I copy the contents of resources folder to dist folder ( from C:\Python\Scripts\Papinhio player\exe\dist\Papinhio player\PyQt5\Qt\resources to C:\Python\Scripts\Papinhio player\exe\dist)
I copy QtWebEngineProcess.exe from C:\Python\Scripts\Papinhio player\exe\dist\Papinhio player\PyQt5\Qt\bin to C:\Python\Scripts\Papinhio player\exe\dist
That's all!
I have some warnings like the following:
Qt WebEngine resources not found at C:/Users/EFFA~1/AppData/Local/Temp/resources. Trying parent directory...
Qt WebEngine resources not found at C:/Users/EFFA~1/AppData/Local/Temp. Trying application directory...
Installed Qt WebEngine locales directory not found at location C:/Users/EFFA~1/AppData/Local/Temp/translations\qtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location C:/Python/Scripts/Papinhio player/exe/dist\qtwebengine_locales. Trying fallback directory... Translations MAY NOTnot be correct.
js: Unrecognized feature: 'clipboard-write'.
js: A cookie associated with a cross-site resource at http://youtube.com/ was setwithout the `SameSite` attribute. A future releaseof Chrome will only deliver cookies withcross-site requests if they aresetwith `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592and https://www.chromestatus.com/feature/5633521622188032.
js: A cookie associated with a cross-site resource at http://www.youtube.com/ was setwithout the `SameSite` attribute. A future releaseof Chrome will only deliver cookies withcross-site requests if they aresetwith `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592and https://www.chromestatus.com/feature/5633521622188032.
but the site is displayed correctly.
Post a Comment for "Using Qwebengine Of Qt5"