I am developing a web application which displays a folium map. The web app has 3 tabs and each tab has a QtWebEngineView widget added into them.
I am trying to create a standalone .exe file for my web application. So I have used Pyinstaller to convert my project into a single .exe file. I already had to make some changes in my spec file to solve a previous issue (fixed). This is how the spec file looks
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['D:\\Bus_Stop_Finder'],
binaries=[],
datas=[('input\\stops.txt', 'input'),
('input\\Suggestions.xlsx', 'input'),
(".\\venv\\Lib\\site-packages\\branca\\*.json","branca"),
(".\\venv\\Lib\\site-packages\\branca\\templates","templates"),
(".\\venv\\Lib\\site-packages\\folium\\templates","templates"),
],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='main')
On running Pyinstaller mainspec
, the dist folder and main.exe file is created but once I run the the main.exe file, I am getting this error:
Could not find QtWebEngineProcess.exe
I have tried reading through the Qt Documentation for deploying Qt WebEngine Applications and noticed that
The WebEngine process is executed for each QWebEngineView or WebEngineView instance
I am not sure, where I have to make a modification or correction. Can someone help me out with this?