0

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

2
  • Just a suggestion, try with a simple python file first. If that is converted then some problem in your code else pyinstaller setup has some problem. Commented Jun 1, 2019 at 1:45
  • Please show an example of a command you've tried Commented Jun 1, 2019 at 2:34

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.