[GH-ISSUE #120] Support python 3 #77

Closed
opened 2026-02-26 10:36:01 +03:00 by kerem · 0 comments
Owner

Originally created by @pschiffe on GitHub (Aug 20, 2016).
Original GitHub issue: https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/120

When trying to use python 3, I get:

# pip3 install -r requirements.txt
...
Collecting python-ldap==2.4.21 (from -r requirements.txt (line 7))
  Using cached python-ldap-2.4.21.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-g1iucx4s/python-ldap/setup.py", line 53
        print name + ': ' + cfg.get('_ldap', name)
                 ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g1iucx4s/python-ldap

Unfortunately, python-ldap doesn't support python 3, but there are at least 2 alternatives that do:
https://github.com/cannatag/ldap3
https://github.com/pyldap/pyldap

Originally created by @pschiffe on GitHub (Aug 20, 2016). Original GitHub issue: https://github.com/PowerDNS-Admin/PowerDNS-Admin/issues/120 When trying to use python 3, I get: ``` # pip3 install -r requirements.txt ... Collecting python-ldap==2.4.21 (from -r requirements.txt (line 7)) Using cached python-ldap-2.4.21.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-g1iucx4s/python-ldap/setup.py", line 53 print name + ': ' + cfg.get('_ldap', name) ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-g1iucx4s/python-ldap ``` Unfortunately, `python-ldap` doesn't support python 3, but there are at least 2 alternatives that do: https://github.com/cannatag/ldap3 https://github.com/pyldap/pyldap
kerem closed this issue 2026-02-26 10:36:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PowerDNS-Admin-PowerDNS-Admin#77
No description provided.