473,394 Members | 1,770 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,394 software developers and data experts.

ImportError: cx_Oracle.so: cannot open shared object file: Permission denied

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 console, when I try to import the cx_Oracle, I get the following error message:

ImportError: /usr/lib/python2.3/site-packages/cx_Oracle.so: cannot open shared object file: No such file or directory

And it seems there is no any shared library lost:

ldd /usr/lib/python2.3/site-packages/cx_Oracle.so
linux-gate.so.1 => (0xffffe000)
libclntsh.so.10.1 => /usr/lib/oracle/10.2.0.4/client/lib/libclntsh.so.10.1 (0xf71ca000)
libpthread.so.0 => /lib/tls/libpthread.so.0 (0xf7190000)
libc.so.6 => /lib/tls/libc.so.6 (0xf7061000)
libnnz10.so => /usr/lib/oracle/10.2.0.4/client/lib/libnnz10.so (0xf6e51000)
libdl.so.2 => /lib/libdl.so.2 (0xf6e4c000)
libm.so.6 => /lib/tls/libm.so.6 (0xf6e29000)
libnsl.so.1 => /lib/libnsl.so.1 (0xf6e12000)
/lib/ld-linux.so.2 (0x56555000)

some possible relevant settings in my profile:
#-------------------------------------------
ORACLE_BASE=/usr/lib/oracle/
ORACLE_HOME=$ORACLE_BASE/10.2.0.4/client/
ORACLE_LIB=$ORACLE_HOME/lib/
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_LIB
#-------------------------------------------


How can I fix the problem?

Any help would be appreciated,
Rhuddlan
Oct 4 '10 #1
2 6961
Found the answer myself: my RedHat EL4 is 64bits so I had to get the cx_Oracle source code and recompile it. Now it works!
Oct 5 '10 #2
bvdet
2,851 Expert Mod 2GB
Rhuddlan - Thanks for sharing your solution. :)
Oct 5 '10 #3

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
1
by: Chris | last post by:
Thanks to Ingo for refering me to this group. I'm a newbie with perl scripts and I'm having problem running my copied script to my server. Can anybody who is patient enough to help me with my...
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...
1
by: Joachim | last post by:
What could be the reasons for the following compilation error? c1xx : fatal error C1083: Cannot open compiler intermediate file: 'C:\Documents and Settings\Joachim Person\Local...
4
by: zombek | last post by:
I'm making a small program which takes a folder with images and generates optimized normal-sized images and thumbnails using Python Imaging Lbrary (PIL). The problem is here: ........
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...
4
by: British | last post by:
This file is suppose to display "Welcome to the Zone!" and also write it to a text file instead i get an runtime error 0x800A0046 Permission Denied The Script: <html> <title>File Object</title>...
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...
2
by: chris1611 | last post by:
hi, i started the postgresql client the first time and wanted to execute commands from file and got the following error code: \i x:\file.sql x:: Permission denied i have admin rights, so why?...
6
by: praveenkhade | last post by:
I am trying to open the Enterprise manager(sqlserver 2005) but following error is showing "mmc cannot open the selected file". yesterday it was working properly but since morning its not properly...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.