apple / ccs-pykerberos

Python Kerberos library used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
117 stars 65 forks source link

NameError from python3.4 setup.py install #41

Closed macosforgebot closed 8 years ago

macosforgebot commented 9 years ago

duncan.macleod@… originally submitted this as ticket:908


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.

macosforgebot commented 9 years ago

johannes@… originally submitted this as comment:1:⁠ticket:908

macosforgebot commented 9 years ago

johannes@… originally submitted this as comment:2:⁠ticket:908


Ping? It's a one-word change.

macosforgebot commented 8 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:908


r15427

macosforgebot commented 8 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:908


Submitting dist/kerberos-1.2.3.tar.gz to https://pypi.python.org/pypi