Menu

#1 MIssing "import Lib" for TCP protocol

open
nobody
None
5
2002-12-26
2002-12-26
Anonymous
No

When you try to send an AXFR query an exception is
raised (Error: global name 'Lib' is not defined). This
seems due to a missing import statement in the
sendTCPRequest(self, server) method (Base.py file).

I have solved this problem adding an import statement:

def sendTCPRequest(self, server):
" do the work of sending a TCP request "
+ import time, Lib
self.response=None
for self.ns in server:

Regards
Danilo Massa (danilo.massaATtin.it)

Discussion

  • Scott Kitterman

    Scott Kitterman - 2007-02-16

    Logged In: YES
    user_id=1300068
    Originator: NO

    A fix for this issue has been included in the latest python-dns update in Ubuntu Linux. See https://launchpad.net/ubuntu/+source/python-dns/2.3.0-5.1ubuntu2 for details.

     
  • Scott Kitterman

    Scott Kitterman - 2007-11-19

    Logged In: YES
    user_id=1300068
    Originator: NO

    Fixed in 2.3.1

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.