473,586 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 :
import overturec

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: sk*****@engr.uk y.edu
Mobile: 859-312-8425

Jul 18 '05 #1
1 2147
satish <sk*****@engr.u ky.edu> writes:
I have a python module generated by SWIG. When I try to import the module I
get the following error :
import overturec

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.

[...]

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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3390
by: Douglass Turner | last post by:
Hi, Please release me from my own private hell. Platform: SuSE 8.1 I'm installing python 2.3 tarball as follows: ../configure --enable-shared make
1
1585
by: yazzoo | last post by:
I've been banging my head over a long running script that has suddenly stopped working when my ISP upgraded Apache and Suexec. They didn't specify what they did, but I presume it was the latest updates. My problem is that any script that tries to import cgi.py breaks. For example, the following script: #!/usr/bin/python print...
1
2023
by: GujuBoy | last post by:
i am using BOOST in linux with python and i can compile my CPP file just fine to make a .so but everytime i do a import i get this error >>> import dirgesh Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: libboost_python.so.1.32.0: cannot open shared object file: No such file or directory >>>
6
4730
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
3
2427
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an object :(((( Anyone pls help me to solve this problem!!! thanks in advance,
2
1478
by: baileyxia | last post by:
Hi, all I am learning how to import c code in python. Here is my simple code foo.c: ===================== #include <Python.h> void bar() { printf("Hello! C wrap!"); } static PyObject *foo_bar(PyObject *self, PyObject *args) {
1
8704
by: baling | last post by:
Hi.... Hi everybody, i have a code that i make in VBA and know I want to use this code in to VB6. But i don't know how to use that code in to VB 6.0 Please correct this code so i can use it in VB 6.0. Code: --- use in mainform ------- Option Compare Database Option Explicit
1
2873
by: bladepif | last post by:
Hello, I have a C++ dll that I can not link to may project, because it gives me an error that it is not a valid assembly or COM. I have 3 functions in this dll I need to use. - Initialize - convet MPEG frame to JPEG -Close The definition in the header file is like this:
1
6662
by: JDS | last post by:
I am getting the following error in my application: System.UnauthorizedAccessException was unhandled Message="Access to the port is denied." Source="System" StackTrace: at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str) at System.IO.Ports.SerialStream.Dispose(Boolean disposing) at...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6610
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1179
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.