the error as below:
1.  Traceback (most recent call last):
 File "feedup.py", line 3, in ?
   from django.core.management import setup_environ
ImportError: No module named django.core.management

2. Traceback (most recent call last):
 File "mstart", line 13, in ?
   import msnlib
ImportError: No module named msnlib


thanks!

On Feb 15, 1:46 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Thu, 2008-02-14 at 21:32 -0800, [EMAIL PROTECTED] wrote:
> > i have a python script which works smooth for me in command line.
> > but now it cannot work in cron job.
>
> > path:  /home/data
> > script: test.py
> >  it works as i type : python test.py
>
> > now i wirte a shell script as below(test.sh):
> > cd /home/data
> > python test.py
>
> > so when i run test.sh, it is ok.
>
> > but when i set a cron job to run this shell, i always get this error
> > of cannot import modules, i am sure it is nothing about  modules
> > missing, it only becuse i run it under script.
>
> Crontab doens't run with the same environment as you, the user. In
> particular the Python path will be different. Listen to the error
> message; it's telling you the right thing.
>
> Malcolm
>
> --
> Tolkien is hobbit-forming.http://www.pointy-stick.com/blog/- Hide quoted text 
> -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to