Re: Traceback when trying to run script from cron?

2007-04-17 Thread Carsten Haese
On Tue, 2007-04-17 at 12:33 -0700, erikcw wrote: > You're right. Something is not right with my sys.path. > > cron: > '/home/lybp/public_html/winneralert', '/usr/lib/python2.2', '/usr/lib/ > python2.2/plat-linux2', '/usr/lib/python2.2/lib-tk', '/usr/lib/ > python2.2/lib-dynload', '/usr/lib/python

Re: Traceback when trying to run script from cron?

2007-04-17 Thread erikcw
On Apr 14, 10:50 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 14 Apr 2007 18:56:00 -0700, "erikcw" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > > > The cron command is python /home/lybp/public_html/wa/wa.py > > > Any idea why MySQLdb wouldn't like this? > >

Traceback when trying to run script from cron?

2007-04-14 Thread erikcw
Hi all, When trying to run this python script from cron, I get the following error: Traceback (most recent call last): File "/home/lybp/public_html/wa/wa.py", line 14, in ? import MySQLdb ImportError: No module named MySQLdb The cron command is python /home/lybp/public_html/wa/wa.py Any id