ldaptor-find-server cannot import name dns

Bug #881404 reported by atimonin
10
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/ldaptor-find-server", line 7, in <module>
    from twisted.protocols import dns
ImportError: cannot import name dns

Revision history for this message
atimonin (atimonin) wrote :

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
--- ldaptor-find-server.orig 2011-11-02 16:28:22.433147632 +0400
***************
*** 4,10 ****
  from ldaptor.protocols.ldap.distinguishedname import DistinguishedName
  from twisted.internet.defer import DeferredList
  from twisted.internet import reactor
! from twisted.names import dns
  from twisted.names import client

  def printAnswer(answers, dn):
--- 4,10 ----
  from ldaptor.protocols.ldap.distinguishedname import DistinguishedName
  from twisted.internet.defer import DeferredList
  from twisted.internet import reactor
! from twisted.protocols import dns
  from twisted.names import client

  def printAnswer(answers, dn):

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ldaptor (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.