Skip to content Skip to sidebar Skip to footer

Using Qwebengine Of Qt5

[14784] PyInstaller Bootloader 3.x [14784] LOADER: executable is C:\Users\╫±▐≤ΪΎ≥\Desktop\Papinhio player\exe\dist\Papinhio player.exe [14784] LOADER: homepath is C:\Use

Solution 1:

Answer :

  1. I uninstalled every version of Python i have in Windows.

  2. I installed python 3.9 @ C:\Python

  3. I installed PyQt5 , pyqt5-tools with pip

  4. I installed pyinstaller via github (commands python setup.py build and python setup.py install)

  5. I add C:\Python and C:\Python\Scripts to enviroment path.

  6. I move my project to C:\Python\Scripts

  7. 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.

  1. 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)

  2. 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"