An error is reported when the py file is packaged into an exe file
TypeError: expected str, bytes or os.PathLike object, not NoneType
After consulting, I finally got the reason. The bindepend.py
file under the Pyinstaller
package has a bug and needs to be replaced.
1. Download the repaired pyinstaller package on github: link
2. Find the script bindepend.py
3. Find the previously downloaded pyinstaller package with bugs, and replace the bindepend.py
in it
After running again, it will show success