-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: expected str, bytes or os.PathLike object, not NoneType #13
Comments
This error comes up on Unix based systems. Basically, the script is searching for a temporary directory on the system environment settings and, when it doesn't find it, you get that error. |
Same issue here. |
Go to Case 6 in this url and you will see proper usage: |
I've just proposed a pull request to fix this. |
macserver@MacServer ~ % /Users/macserver/Desktop/transmission-trackers.py
Traceback (most recent call last):
File "/Users/macserver/Desktop/transmission-trackers.py", line 54, in
cache_file = path.join(env.get('TEMP',env.get('TMP',None)) ,'.cache/trackers.txt')
File "/usr/local/Cellar/[email protected]/3.9.9/Frameworks/Python.framework/Versions/3.9/lib/python3.9/posixpath.py", line 76, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
I'm using python 3.9.9 on macOS
The text was updated successfully, but these errors were encountered: