I am trying build executable file for windows using PyInstaller 4 upgrade. I can build the executable file but when I am importing QsciScintilla, it doesn't work. I followed their tutorial and tried to use hidden import as well, I don't know how to fix it. I have been using Python 3.5.4 for development. Here is the error which I am getting:
"newnev\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 621, in exec_module
exec(bytecode, module.__dict__)
File "Window.py", line 10, in <module>
from PyQt5.Qsci import QsciScintilla
ImportError: No module named 'PyQt5.Qsci'
[1016] Failed to execute script Interface
have used:
pyinstaller --onefile --windowed Window.py
pyinstaller --onefile Window.py
pyinstaller --hidden-import=PyQt5.Qsci --onefile Window.py
pyinstaller --hiddenimport=PyQt5.Qsci --onefile Window.py
even with Python -m PyInstaller --onefile --windowed Window.py
.
Here is the .spec file which I found using pyinstaller --onefile --windowed Interface.py
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['Interface.py'],
pathex=['C:\\Users\\sasah\\Desktop\\Example'],
binaries=[],
datas=[],
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,
a.binaries,
a.zipfiles,
a.datas,
[],
name='Interface',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False )
I don't know how to bypass the issues and build the script running.