Solution:
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
and python setup.py install
)
I add C:Python and C:PythonScripts to enviroment path.
I move my project to C:PythonScripts
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:PythonScriptsPapinhio playerexedistPapinhio playerPyQt5Qt
esources to C:PythonScriptsPapinhio playerexedist)
I copy QtWebEngineProcess.exe from C:PythonScriptsPapinhio playerexedistPapinhio playerPyQt5Qtin to C:PythonScriptsPapinhio playerexedist
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/translationsqtwebengine_locales. Trying application directory...
Qt WebEngine locales directory not found at location C:/Python/Scripts/Papinhio player/exe/distqtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
js: Unrecognized feature: 'clipboard-write'.
js: A cookie associated with a cross-site resource at http://youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `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/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
js: A cookie associated with a cross-site resource at http://www.youtube.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `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/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
but the site is displayed correctly.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…