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

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation