You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"TypeError: expected str, bytes or os.PathLike object, not WindowsPath" in Windows 10
Code for reproduction
importmatplotlib
Actual outcome
...
File "...\matplotlib\__init__.py", line 777, in _open_file_or_url
fname = os.path.expanduser(fname)
File "...\lib\ntpath.py", line 312, in expanduser
path = os.fspath(path)
TypeError: expected str, bytes or os.PathLike object, not WindowsPath
Sorry, it appears that the root cause sits in something else in the system. The issue is not reproducible, after rebuilding the user's python libraries.
Bug report
Bug summary
"TypeError: expected str, bytes or os.PathLike object, not WindowsPath" in Windows 10
Code for reproduction
Actual outcome
Expected outcome
Matplotlib version
print(matplotlib.get_backend())
):The text was updated successfully, but these errors were encountered: