Import fails with python but succeeds with python -v
John Normoyle
jnormoyle at iel.ie
Tue Apr 29 12:28:08 EDT 2008
Hi,
I've noticed strange behaviour where cx_Oracle will fail to load when
using "python" but it will succeed when using "python -v" while throwing
"Unsatisfied code symbol" errors.
This is for Python 2.5, Oracle 9.2 and cx_Oracle 4.3.1 on the platform
HP-UX 11
Output for python:
ImportError: Failed to load cx_Oracle
Output for python -v: (extract of the errors)
shl_load
/admin/3rd_party/HP-UX/cx_Oracle-4.3.1_build/build/lib.hp-ux-B.11.23-ia6
4-2.5/cx_Oracle.so
/usr/lib/hpux32/dld.so: Unsatisfied data symbol 'kpggwcx_' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'LhtStrSearch' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'kpggGetPG' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'LhtStrInsert' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'kpuhhalo' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'kpuhhfre' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'LhtStrCreate' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
/usr/lib/hpux32/dld.so: Unsatisfied code symbol 'kpugdr' in load
module '/product/app/oracle/9.2.0.2.svr/lib32/libwtc9.so'.
I don't really understand why using python -v results in such a
different in behaviour since as far as I know, it's just a verbose
option.
Any help would be appreciated in figuring this out so I can hopefully
apply that knowledge in importing cx_Oracle without using the -v option.
Thanks,
John
_____________________________________________
John Normoyle
Email: jnormoyle at iel.ie <mailto:jnormoyle at iel.ie>
Web Site: http://www.interactive-enterprise.com
<blocked::http://www.interactive-enterprise.com/>
Software Developer
Interactive Enterprise
7 Riverwalk
National Digital Park
CityWest Business Campus
Dublin 24
Ireland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080429/31c72de3/attachment.html>
More information about the Python-list
mailing list