473,698 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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=$OR ACLE_BASE/10.2.0.4/client/
ORACLE_LIB=$ORA CLE_HOME/lib/
LD_LIBRARY_PATH =$LD_LIBRARY_PA TH:$ORACLE_LIB
#-------------------------------------------


How can I fix the problem?

Any help would be appreciated,
Rhuddlan
Oct 4 '10 #1
2 6981
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 Recognized Expert Moderator Specialist
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
3399
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
6402
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 problem? I have a chpass.pl which is being executed by a change password web utility page. This script tries to update a password on my linux server /etc/shadow with a file permision rw------. my chpass.pl was set to -rwsr-sr-x , with this file...
2
2241
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 executable I am loading a shared object and executing(dlsym-ing) some f() function, which inside calls the templete function. (Of course the header file with templete prototype is included in shared object source file, so it could be compiled.)
1
6403
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 Settings\Temp;W:\VTSDK\include\_CL_46271732ex': Invalid argument
4
23186
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: ..... os.mkdir(self.output) ..... img = Image.open(os.path.join(self.dir,file)) img = img.resize(self.imgSize) # and here comes the error img.save(self.output, "JPEG", optimize=1)
3
24330
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 direct console connection, It works perfect. But, when I schedule a crontab job to run the application, It logs this
4
7154
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> <body> <hr> <% set TestFile=Server.CreateObject("Scripting.FileSystemObject") TFileStream=TestFile.CreateTextFile("c:\inetpub\wwwroot\ABG_ASP\TestFile.txt")
1
3750
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 express-c for linux to give it a try since I have been using the windows version.. it seems to be missing some libs.. I searched google for the .so file and havnt' found much... since I'm not that much of a linux expert.
2
16042
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? WinVista Business PostgreSQL Version 8.2.6
6
2525
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 working. wat might be the problem?? i am using asp.net2.0, can somebody post answer for this whats the problem?
0
8671
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9152
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9016
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8887
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8856
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6515
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4613
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
1997
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.