duncan.macleod@… originally submitted this as ticket:908
Keywords:kerberos
Cc:johannes@…
pip-3.4 install kerberos fails due to a NameError in setup.py:
$ pip-3.4 install kerberos
Collecting kerberos
Using cached kerberos-1.2.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/Users/duncan/tmp/pip-build-z2tgrlen/kerberos/setup.py", line 36, in <module>
long_description = file(joinpath(dirname(__file__), "README.rst")).read()
NameError: name 'file' is not defined
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /Users/duncan/tmp/pip-build-z2tgrlen/kerberos
The file builtin was removed in python3, but you can use the open builtin in both python2 and python3 to achieve the same functionality.
duncan.macleod@… originally submitted this as ticket:908
pip-3.4 install kerberos
fails due to aNameError
insetup.py
:The
file
builtin was removed in python3, but you can use theopen
builtin in both python2 and python3 to achieve the same functionality.