2020-11-26

AttributeError: module 'os' has no attribute 'PathLike'

I have been using python 2.7 and 3.5 for running tox.

But I didn't face any problem before but recently I tried to run the program and I got this error.

AttributeError: module 'os' has no attribute 'PathLike'

In the log file there is nothing but this error so I can't even find where the problem is occuring. Anyways, after checking the documentation I found out that os.Pathlike has been newly added to python 3.6.

My question is the source code did not change nor the script or the version of python. So, even though it was not added previously in any version. If I am not using this module, why am I getting the error?



from Recent Questions - Stack Overflow https://ift.tt/3nXjrcd
https://ift.tt/eA8V8J

No comments:

Post a Comment