Import Error: Shared object not open

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • satish

    Import Error: Shared object not open

    Hello all,

    I have a python module generated by SWIG. When I try to import the moduleI
    get the following error :
    [color=blue][color=green][color=darkred]
    >>> import overturec[/color][/color][/color]
    Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/home/world0/SWIGTEST/overturec.py", line 4, in ?
    import _overturec
    ImportError: .6: shared object not open

    I am sure this has got something to do with the *sys.path* . I tried editing
    it in all possible ways. I am not getting rid of this error.

    Can someone advise me ??
    --
    SATISH KUMAR CHIMAKURTHI
    Graduate Teaching Assistant
    CFD GROUP
    UNIVERSITY OF KENTUCKY
    LEXINGTON
    KENTUCKY - 40508
    Email: skchim0@engr.uk y.edu
    Mobile: 859-312-8425

  • John J. Lee

    #2
    Re: Import Error: Shared object not open

    satish <skchim0@engr.u ky.edu> writes:[color=blue]
    > I have a python module generated by SWIG. When I try to import the module I
    > get the following error :
    >[color=green][color=darkred]
    > >>> import overturec[/color][/color]
    > Traceback (most recent call last):
    > File "<stdin>", line 1, in ?
    > File "/home/world0/SWIGTEST/overturec.py", line 4, in ?
    > import _overturec
    > ImportError: .6: shared object not open
    >
    > I am sure this has got something to do with the *sys.path* . I tried editing
    > it in all possible ways. I am not getting rid of this error.[/color]
    [...]

    Never seen that error before.

    What platform (operating system) is this? What version of Python
    (probably not important, but useful to state it)?

    Where is _overturec.so (or whatever the filename is)? What's your
    sys.path? Have you tried running ldconfig or setting LD_LIBRARY_PATH ?

    Try putting the extension shared library in the current directory and
    then trying to importing it directly (import _overturec).


    John

    Comment

    Working...