[Tutor] problem importing data is solved!

Michael Dunn Michael.Dunn at mpi.nl
Tue Dec 16 05:15:06 EST 2003


Hi everyone,

Vicki suggested ldconfig, but this doesn't exist on my machine (sunos5).
Since I asked this question yesterday I've learnt a bit more about unix
than I knew before. The disappearing variables were not the problem -- I
didn't know the difference between shell variables and environment
variables. When I set the (environment) variables properly, using setenv
rather than set, python could see them fine. The sad news is that setting
LD_LIBRARY_PATH to the path for ld.so.1 didn't fix the problem, nor did
setting LD_RUN_PATH and recompiling python. I still get:

ImportError: ld.so.1: python: fatal: libclntsh.so.8.0: open failed: No such file or directory

The file libclntsh.so.8.0 is in $ORACLE_HOME/lib -- could this be the
problem? Well of course it is! Between writing that sentence and this I
tried adding $ORACLE_HOME/lib to the LD_LIBRARY_PATH environment variable,
and now everything works fine. Sorry for exposing you all to my fumbling
discovery procedure. Maybe somebody will find it useful none the less.

Since I've broken silence, I'd just like to add that tutor at python is
absolutely brilliant -- thanks everybody who makes it so!

Michael



More information about the Tutor mailing list