Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ImportError: No module named dl

Reply
Thread Tools

ImportError: No module named dl

 
 
mathieu
Guest
Posts: n/a
 
      04-15-2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install module, No module named scipy_distutils.core (but ihave scipy) process Python 1 10-17-2008 06:19 PM
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
Using JYTHON inside ANT : access os module -> "ImportError: no module named javaos" eric_bellard Python 1 10-07-2004 05:41 AM
Re: newbie question: ImportError: No module named Numeric Harry George Python 0 07-15-2003 07:18 PM
Newbie - No module named stdwin K Python 8 07-11-2003 04:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57