There were similar problems. Here is my fix for PyQt5, cffi, python 3.4.3:
This fixes the error "sip" not found and "_cffi_backend" if this happens:
block_cipher = None
a = Analysis(['LightShowApp.py'],
pathex=['c:\\MyProjects\\light-show-editor-36',
'c:\\Python34\\libs\\', 'c:\\Python34\\Lib\\site-packages'],
binaries=None,
datas=None,
hiddenimports=['sip', 'cffi'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='LightShowApp',
debug=False,
strip=False,
upx=True,
console=True )
Look at "pathex" and "hiddenimports" above. These are the only changes generated by default. Create an exe with:
pyinstaller LightShowApp.spec -F
I ran this outside of venv or pip-win - anyTF in which shit!
user1277936
source
share