ldaptor-find-server cannot import name dns
Bug #881404 reported by
atimonin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ldaptor (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Console output:
$ ldaptor-find-server
Traceback (most recent call last):
File "/usr/bin/
from twisted.protocols import dns
ImportError: cannot import name dns
To post a comment you must log in.
I've found a fix, patch is simple (from twisted.protocols import dns -> from twisted.names import dns):
*** ldaptor-find-server 2011-11-02 16:37:08.760499658 +0400 find-server. orig 2011-11-02 16:28:22.433147632 +0400 protocols. ldap.distinguis hedname import DistinguishedName internet. defer import DeferredList
--- ldaptor-
***************
*** 4,10 ****
from ldaptor.
from twisted.
from twisted.internet import reactor
! from twisted.names import dns
from twisted.names import client
def printAnswer( answers, dn): protocols. ldap.distinguis hedname import DistinguishedName internet. defer import DeferredList
--- 4,10 ----
from ldaptor.
from twisted.
from twisted.internet import reactor
! from twisted.protocols import dns
from twisted.names import client
def printAnswer( answers, dn):