Reputation: 23
Whenever I try to put any .py file into pyinstaller I always get an error TypeError: expected str, bytes or os.PathLike object, not NoneType
I havent been able to find any fixes that make sense.
Ive tried reinstalling pyinstaller and different files.
I dont think there is any code problems since this occurs no matter what file I use
Expected: a compiled exe file.
Actual Result:
TypeError: expected str, bytes or os.PathLike object, not NoneType
error and nothing is compiled
Upvotes: 0
Views: 1957
Reputation: 6031
First, uninstall pyinstaller completely with pip uninstall pyinstaller
then delete C:/Users/<Username>/AppData/Roaming/Pyinstaller
directory.
Next Install pyinstaller with pip install -U pyinstaller
.
If still shows the same error try to replace bindepend.py
from here in <Python path>\Lib\site-packages\PyInstaller\depend
directory.
Upvotes: 1