By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

ImportError: cannot open shared object file: Permission denied

P: n/a

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/ 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/ => (0xffffe000) => /usr/lib/oracle/ (0xf71ca000) => /lib/tls/ (0xf7190000) => /lib/tls/ (0xf7061000) => /usr/lib/oracle/ (0xf6e51000) => /lib/ (0xf6e4c000) => /lib/tls/ (0xf6e29000) => /lib/ (0xf6e12000)
/lib/ (0x56555000)

some possible relevant settings in my profile:

How can I fix the problem?

Any help would be appreciated,
Oct 4 '10 #1
Share this Question
Share on Google+
2 Replies

P: n/a
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

Expert Mod 2.5K+
P: 2,851
Rhuddlan - Thanks for sharing your solution. :)
Oct 5 '10 #3

Post your reply

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