470,613 Members | 2,518 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,613 developers. It's quick & easy.

ImportError: No module named dl

Hi there,

I cannot figure out where did the 'dl' module went when running
python on AMD64 (debian stable).

According to the documentation, I have :
python
>>import sys
help(sys.setdlopenflags)
....
setdlopenflags(...)
<snip>
sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)
....

But when -as suggested by the doc- to load dl, I am getting:
>>import dl
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named dl

dl module is extremely important since I need to load shared lib with
RTLD_GLOBAL (and not RTLD_LOCAL)
Ref:
http://gcc.gnu.org/ml/gcc/2002-05/msg00869.html
& http://lists.apple.com/archives/xcod.../msg00234.html

Thanks
-Mathieu
Jun 27 '08 #1
0 1049

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Carsten Gehling | last post: by
reply views Thread by Wicked | last post: by
reply views Thread by M. Lavasani | last post: by
4 posts views Thread by prashant | last post: by
reply views Thread by Robert Dailey | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.