Skip to content
Advertisement

pyinstaller [ErrNo 22]

I’m trying to use Pyinstaller to make an exe of my python code to easily distribute. Every time I try run pyinstaller.py I get an error “[Errno 22] invalid mode (‘rb’) or filename: ””

I’ve seen a few other posts on this issue saying the problem is usually caused by hardcoding in filepaths for reading data, but all my filepaths are done using variables and asking the user where the files are located.

JavaScript

anyone have any ideas how I can start to fix this?

edit: Using version 2.1 of pyinstaller

edit: So I tried testing my code by creating this:

JavaScript

which is giving me the same error.

Advertisement

Answer

Well reinstalled pywin32 and now working :S just going go with it

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement