pyintaller dosent want to work with patoolib #8383
Unanswered
AlexiJemano
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so I have a py program that uses patoolib to extract a file and in pycharm it works fine but when I use pyinstaller it dosent want to work.
pyinstaller --noconfirm --onedir --console --icon "C:/Users/Administrator/Documents/IT/Python/pythonProject3/data/worldtorrent.ico" --add-data "C:/Users/Administrator/Documents/IT/Python/pythonProject3/data;data/" --add-data "C:/Users/Administrator/Documents/IT/Python/pythonProject3/config.ini;." --hidden-import "C:/Users/Administrator/Documents/IT/Python/pythonProject3/hook-patoolib.py" # I put the directory to the hidden imports "C:/Users/Administrator/Documents/IT/Python/pythonProject3/main.py"
3. Error:
I also tried with a smaller one:
hiddenimports = ['patoolib.programs', 'patoolib.programs.ar', 'patoolib.programs.arc', 'patoolib.programs.p7zip']
Beta Was this translation helpful? Give feedback.
All reactions