473,387 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to fix error: python cannot open cross compiled shared object file?

Hi,
Iam trying to build crda agent module on a cross platform(ARM).
To build the same, one of the input module is m2crypto shared object file.
I have sucesfully cross compiled and m2crypto.so file has been generated.

when I give the make command, python script is called internally which should
take m2crypto.so module as input and should generate openssl(RSA) keys.

The problem Iam facing is the python script could'nt import any of the modules from the __m2crypto.so file.
the error iam getting is
-------------------------------
$ make

GEN keys-ssl.c
Trusted pubkeys: /home/tools/crda/pubkeys/linville.key.pub.pem
Traceback (most recent call last):
File "./utils/key2pub.py", line 6, in ?
import m2crypto
ImportError: /usr/lib/python2.4/lib-dynload/m2crypto.so: cannot open shared object file: No such file or directory
make: *** [keys-ssl.c] Error 1
--------------------------------
where as, when I compile m2crypto for host machine(x86 platform) and try to build the crda for the same,
python is able to import the m2crypto.so file.

Any suggestions on how to build it successfully on the different platform(ARM).

Thanks in Advance,
Rams ch
Nov 29 '10 #1
3 2799
dwblas
626 Expert 512MB
ImportError: /usr/lib/python2.4/lib-dynload/m2crypto.so: cannot open shared object file: No such file or directory
Are you using Python2.4 on a 32 bit computer? If not, find the Python installation. Start with /usr/lib and /usr/local/lib, and then a symlink to /usr/lib/python2.4 would probably be the simplest solution.
Nov 29 '10 #2
Yes Iam using Python2.4 on a 32-bit machine.
I tried using symlink but of no avail.

My doubt is Should I build python for class platform(ARM)? so that it can read the .so file compiled for the same.
Nov 30 '10 #3
dwblas
626 Expert 512MB
I think you have to in fact, but you should emulate it on your PC first and work out the bugs http://www.crosscompile.org/static/pages/Python.html
Nov 30 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
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
2
by: Haro Panosyan | last post by:
Suppose I have defined a templete function prototype in a header file and the body in .cpp file and created executable without actually calling the templete function. Now let say from that...
0
by: Bradley1234 | last post by:
Cannot open a designer for the file because the class within it does not inherit from a class that can be visually designed. I had designed a new Form1, and got the code for the parallel port...
3
by: gmax2006 | last post by:
Hi, I am using RedHat Linux 4. and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and Python 2.3.4. When I run the application through...
2
by: AA Arens | last post by:
We sg=hare an MDB database within a SOHO LAN. Since a few days I am unable to open a base (via file double click), only ehen the other users closes the MDB. But when I open Access first and go...
1
by: vasilip | last post by:
root@Server:/opt/ibm/db2/V9.1/bin# ./db2adutl ../db2adutl: error while loading shared libraries: libApiDS.so: cannot open shared object file: No such file or directory I just installed db2 9.1...
1
by: davidson1 | last post by:
Hai friends i get the following error.... Visual Studio cannot open a designer for the file because the class within it does not inherit from a class that can be visually designed when I open my...
1
by: Dog Walker | last post by:
I need to call a function in a shared object with this signature: init_dialog(FILE *input, FILE *output) The FILE*'s are to stdin and stdout. The call from python is libdialog.init_dialog( x, y)...
0
by: member thudfoo | last post by:
On 11/8/08, Dog Walker <thudfoo@gmail.comwrote: I should have said "stderr" rather than "stdout". And the answer is: from ctypes import * from ctypes.util import find_library libc =...
2
by: Rhuddlan | last post by:
Hi, I am using RedHat EL 4 and I developed an oracle 10g based application by using cx_Oracle (cx_Oracle-4.3.1-10g-py23-1.i386.rpm) and Python 2.3.4. Running the application through direct...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.