Michal Mazurek wrote:
> I had similiar problems, source of it was the timestamp of the files,
> maybe check what is the timestamp when you change the file, if you are
> uploading files over scp, the timestamps can remain from the uploading
> machine, so all in all you can have timestamps in the past, this is
> one of the reasons. You can add to start/stop script a removal of all
> *.pyc in the directory, might help, its not a solution for the error,
> only a way to deal with consequences.

You should also make sure that either the user that runs your app has 
the necessary permissions to write the *.pyc files, or you compile 
everything manually. I think eggs already contain the *.pyc files of all 
Python modules automatically, but you need to take special care of Kid 
and Cheetah templates which also need to be compiled. For instance, you 
can use the following command to compile all Kid templates beneath your 
current directory:

find . -name "*.kid" | xargs kidc

-- Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to