ImportError: No module named dl

Discussion in 'Python' started by mathieu, Apr 15, 2008.

  1. mathieu

    mathieu Guest

    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/xcode-users/2006/Feb/msg00234.html

    Thanks
    -Mathieu
     
    mathieu, Apr 15, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harry George
    Replies:
    0
    Views:
    6,001
    Harry George
    Jul 15, 2003
  2. Carsten Gehling

    pso - ImportError: No module named url

    Carsten Gehling, Jul 16, 2003, in forum: Python
    Replies:
    0
    Views:
    539
    Carsten Gehling
    Jul 16, 2003
  3. Carsten Gehling

    SV: pso - ImportError: No module named url

    Carsten Gehling, Jul 16, 2003, in forum: Python
    Replies:
    0
    Views:
    634
    Carsten Gehling
    Jul 16, 2003
  4. x-herbert
    Replies:
    2
    Views:
    2,607
    x-herbert
    Aug 8, 2003
  5. Adam Jack
    Replies:
    0
    Views:
    491
    Adam Jack
    Aug 8, 2003
  6. Matt Smith

    Importerror no module named WIN32API

    Matt Smith, Aug 11, 2003, in forum: Python
    Replies:
    3
    Views:
    7,742
    Matt Smith
    Aug 12, 2003
  7. Wicked
    Replies:
    0
    Views:
    818
    Wicked
    Aug 14, 2003
  8. eric_bellard
    Replies:
    1
    Views:
    5,533
    CarlosRivera
    Oct 7, 2004
Loading...