Python 2.2 dynamic library problem on Compaq Tru64

Steve Holden sholden at holdenweb.com
Thu Feb 7 09:07:18 EST 2002


"Fernando Pérez" <fperez528 at yahoo.com> wrote in message
news:a3pq1c$nru$1 at peabody.colorado.edu...
> Anthony Allen wrote:
>
> >> > ? ? import cx Oracle, os, sys, smtplib
>
> This line is extremely suspicious, see the missing comma between cx and
> Oracle. Modules can't have spaces in their names. Double check that first.
>
Fernando:

Maybe your news server hadn't shown you the original post when you sent this
reply ... there was an underscore between "cx" and "Oracle", giving the
correct module name.

Almost certainly the cron job somehow needs to establish the correct
sys.path to find the cx_Oracle module. Whether you do this by manipulating
the shell environment (either PYTHONPATH or LD_LIBRARY_PATH) or directly
modifying sys.path in Python is a matter of taste and local administration.

regards
 Steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Author, Python Web Programming: http://pydish.holdenweb.com/pwp/

"This is Python.  We don't care much about theory, except where it
intersects with useful practice."  Aahz Maruch on c.l.py







More information about the Python-list mailing list