[Tutor] Re: random import errors

Lee Harr missive at hotmail.com
Tue Apr 5 23:22:10 CEST 2005

>I have a python script that runs on my webserver every fifteen minutes.  It
>has run for several months with absolutely no problems.  Suddenly, 
>morning I got an email from cron with an import error for sre_constants 

>   File "/usr/lib/python2.2/sre_compile.py", line 15, in ?
>     from sre_constants import *
>ImportError: No module named sre_constants

Do you have more than one version of python installed?
Can you copy sre_constants.py from another system?

Express yourself instantly with MSN Messenger! Download today it's FREE! 

More information about the Tutor mailing list