tag:blogger.com,1999:blog-9238405.post111602196053501616..comments2024-03-18T02:04:50.380-07:00Comments on Agile Testing: Installing and using cx_Oracle on UnixGrig Gheorghiuhttp://www.blogger.com/profile/17863511617654196370noreply@blogger.comBlogger15125tag:blogger.com,1999:blog-9238405.post-64071439992625150142011-01-17T14:28:43.060-08:002011-01-17T14:28:43.060-08:00i have the next error
ImportError: Failed to load...i have the next error <br />ImportError: Failed to load cx_Oracle.so<br />i have install python and cx_Oracle on the hp-ux11 x64, i do the Leon say: <br />"change "libPath" in cx_Oracle's setup.py"<br /><br /> libPath = os.path.join(oracleHome, "lib32")<br /> 160 if struct.calcsize("P") == 4:<br /> 161 alternatePath = os.path.join(oracleHome, "lib32")<br /> 162 else:<br /> 163 alternatePath = os.path.join(oracleHome, "lib32")<br /><br />but, don't work. <br /><br />Help Me pls.morfeokmghttps://www.blogger.com/profile/10150888726846825980noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-5043481075963386472010-04-22T04:59:07.772-07:002010-04-22T04:59:07.772-07:00Thank you for the quick guide!Thank you for the quick guide!Ubay Oramas Díaznoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-87491319267448693592009-11-06T07:47:19.016-08:002009-11-06T07:47:19.016-08:00Anonymous -- for Oracle headers and libraries, ins...Anonymous -- for Oracle headers and libraries, install the Oracle Instant Client from here:<br /><br />http://www.oracle.com/technology/tech/oci/instantclient/index.htmlGrig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-12492029434218247092009-11-06T07:30:25.827-08:002009-11-06T07:30:25.827-08:00Where can I get the header and libraries used by c...Where can I get the header and libraries used by cx_Oracle, if Oracle is not running on my machine ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-2987524400218718822009-06-05T14:47:42.452-07:002009-06-05T14:47:42.452-07:00Anonymous -- when I say that Oracle needs to be in...Anonymous -- when I say that Oracle needs to be installed, I am referring to header files and library files. They are used by the cx_Oracle module to connect to the Oracle server.Grig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-6011963128603866922009-06-05T13:35:21.851-07:002009-06-05T13:35:21.851-07:00When you say that Oracle has to already be install...When you say that Oracle has to already be installed (because the script looks for environment variables for the Oracle home, etc), are you referring to the client?<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-56237370323887554352007-08-19T18:34:00.000-07:002007-08-19T18:34:00.000-07:00on hp-ux 11:change "libPath" in cx_Oracle's setup....on hp-ux 11:<BR/>change "libPath" in cx_Oracle's setup.py to point to lib32 (line 72).<BR/>Also make sure SHLIB_PATH points to lib32 rather than lib. <BR/>IMPORTANT: <BR/>setenv LD_PRELOAD /usr/lib/libcl.2<BR/><BR/>that was painful.Leonhttps://www.blogger.com/profile/13755948849845030220noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-36797456289143701672007-02-07T14:15:00.000-08:002007-02-07T14:15:00.000-08:00>/usr/ucb/cc: language optional software package n...>/usr/ucb/cc: language optional software package not installed<br />> error: command 'cc' failed with exit status 1<br /><br />Try this before compiling (if using gcc)<br />export CC=gccAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-44783064755935074602007-02-07T14:14:00.000-08:002007-02-07T14:14:00.000-08:00Building on solaris 9 sparc. Got the clntsh error...Building on solaris 9 sparc. Got the clntsh error, however my LD_LIBRARY_PATH did indeed include ORACLE_HOME/lib. Just to see what I could get away with, I commented out libs = ["clntsh"] in setup.py and the compile completed. Question now is what is clntsh?<br /><br />...<br />creating build/lib.solaris-2.9-sun4u-2.5<br />gcc -shared build/temp.solaris-2.9-sun4u-2.5/cx_Oracle.o -L/nordic/apps/oracle/ora920/lib -lclntsh -o build/lib.solaris-2.9-sun4u-2.5/cx_Oracle.so -s<br />ld: fatal: library -lclntsh: not found<br />ld: fatal: File processing errors. No output written to build/lib.solaris-2.9-sun4u-2.5/cx_Oracle.so<br />collect2: ld returned 1 exit status<br />error: command 'gcc' failed with exit status 1Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1150920355205039512006-06-21T13:05:00.000-07:002006-06-21T13:05:00.000-07:00Hi can someone help me in installing cx_oracle on ...Hi can someone help me in installing cx_oracle on the Unix machine. I did as per the previoulsy posted blogs but still find this message. <BR/><BR/>import cx_oracle<BR/>Traceback (most recent call last):<BR/> File "stdin", line 1, in ?<BR/>ImportError: No module named cx_oracle<BR/><BR/>Anykind of help would be appreciated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1129834291729610942005-10-20T11:51:00.000-07:002005-10-20T11:51:00.000-07:00I'm getting this error when installing:/usr/ucb/cc...I'm getting this error when installing:<BR/><BR/>/usr/ucb/cc: language optional software package not installed<BR/>error: command 'cc' failed with exit status 1<BR/><BR/>I'm new to solaris so I have no clue what to do.<BR/>I also have no root access so I can't install anything out of my home dir. Maybe you could point me a link with binaries.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1127841417564079922005-09-27T10:16:00.000-07:002005-09-27T10:16:00.000-07:00Very useful. Like the previous commentator, I had...Very useful. Like the previous commentator, I had to make some changes in order to install cx_Oracle on Solaris. (1) I had to change "lib" to "lib32" in setup.py. Also, (2) I had to change my ORACLE_HOME environment setting from "lib" to "lib32".<BR/><BR/>Thanks, Grig!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1121735571297241132005-07-18T18:12:00.000-07:002005-07-18T18:12:00.000-07:00thanks for writing what you do. i ran into this ex...thanks for writing what you do. i ran into this exact problem installing cx_Oracle on Solaris and found your blog via google; your comments were helpful. also had to change the lib dir to lib32, in setup.pyAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1116103164487714572005-05-14T13:39:00.000-07:002005-05-14T13:39:00.000-07:00There's an Atom link at http://agiletesting.blospo...There's an Atom link at http://agiletesting.blospot.com/atom.xml. Blogger doesn't offer RSS, so I'll probably use FeedBurner to syndicate my blog via RSS. In the mean time, you can subscribe to it via bloglines.com. And thamks for the kind words!<BR/><BR/>GrigGrig Gheorghiuhttps://www.blogger.com/profile/17863511617654196370noreply@blogger.comtag:blogger.com,1999:blog-9238405.post-1116061549891538452005-05-14T02:05:00.000-07:002005-05-14T02:05:00.000-07:00What/where is the RSS link to subsribe this great ...What/where is the RSS link to subsribe this great blog?Anonymousnoreply@blogger.com