TypeError: __init__() got an unexpected keyword argument 'hooksconfig'
Closed this issue · 7 comments
When using the main.spec file generated from the pyinstaller run, I get the following error when running the build during the pyinstaller step - TypeError: init() got an unexpected keyword argument 'hooksconfig'.
Here's the erroneous part of my .spec file:
a = Analysis(['__main__.py'],
pathex=['C:\\Users\\christopher164141\\PycharmProjects\\SqlMetadata\\src'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
hooksconfig={},
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
To fix the issue I simply removed the "hooksconfig={}," line from the .spec file.
The action works as expected now, but I figured I'd document the issue for others running into the problem. Thanks creating this project, it works great for me!
Faced the same issue today, and the workaround of removing that kwarg helped. My .spec
file was created with pyinstaller 4.6. It would be great if @JackMcKew could document what versions of pyinstaller are tested/supported.
The source dockerfile specifies which versions of python/pyinstaller are used
I am experiencing this issue and can't figure out how to fix it.
https://github.com/JaydenDev/AuraPad
I am experiencing this issue and can't figure out how to fix it.
Remove the "hooksconfig ={}" line from your aurapad.spec file and rerun, it should go
I am experiencing this issue and can't figure out how to fix it.
https://github.com/JaydenDev/AuraPadRemove the "hooksconfig ={}" line from your aurapad.spec file and rerun, it should go
k
The source dockerfile specifies which versions of python/pyinstaller are used
Looks like the base image is using version 3.6 but PyInstaller is currently at version 5.1