Open lalat-das opened 7 years ago
basestring
is removed in python 3:
https://docs.python.org/3.0/whatsnew/3.0.html
The builtin basestring abstract type was removed. Use str instead. The str and bytes types don’t have functionality enough in common to warrant a shared base class. The 2to3 tool (see below) replaces every occurrence of basestring with str.
Replacing basestring
with str
in core.py
fixes this problem, but I don't know yet whether or not this introduces other issues.
Can you please upload a 5.1 version to pypi where this fix is integrated? From the source code it looks like you only test for strings, never bytes (which would need a decode() step anyway). Also having this on pypi will give you more feedback on this topic then not having it on pypi.
python3 -V
Python 3.5.2
print(proc.sys.vm.overcommit_memory)
if proc.sys.vm.overcommit_memory != '100':
logging.info("Informational message")
NameError: name 'basestring' is not defined
I just downloaded it and tried to run on the python 3.5 interpreter. Following us the detailed error . And it is the same error which appear for every command.