You're viewing a comment by Peteris Krumins and its responses.

December 28, 2009, 18:30

Abottleinfrontofme Frontallobotomy, Thanks for all the comments first of all!

Here are my suggestions:

It may be pretty tricky to set it up. First make sure you have compiled adns C library [1] (compiled as adns.so or adns.a) in your system library path (or local library path, exported via LD_LIBRARY_PATH).

Next, get the adns Python library wrapper around adns C library at [2] and build it via command [3].

Next, you can install the library wrapper via [4] and then finally try to run 'import adns'.

Another way is to do it all under virtualenv [5]. This way library installations won't pollute the system.

[1] http://www.chiark.greenend.org.uk/~ian/adns/
[2] http://code.google.com/p/adns-python/downloads/list
[3] python setup.py build
[4] python setup.py install
[5] http://pypi.python.org/pypi/virtualenv

Comment Responses

prabin Permalink
October 26, 2010, 14:47

I try to use adns module and install according to the instruction
but while I try “import adns” from the python then error occurs as
import adns
Traceback (most recent call last):
ImportError: libadns.so.1: cannot open shared object file: No such
file or directory

Please help me on this

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type first 3 letters of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.