> How many Python installations do you have on your system? What
> versions and where?
>
> Which installed version of Python was mod_wsgi compiled against? Which
> 'python' executable is in your PATH, ie., what does 'which python'
> yield?
>
> Where do you normally install Python packages/modules, ie., which site-
> packages directory, or into account somehow?
>
> How may versions of TurboGears are installed there? Are the files in
> those installations all readable to others, or do they have
> restrictive permissions on them such that not everyone could read
> them? Apache runs as a distinct user and must be able to read them
> somehow.
>
> What is PYTHONPATH set to in your personal environment?
>
> Do you have any Python eggs installed which are in compressed form and
> would thus need to be unpacked via Python egg cache directory? Can you
> clear out any Python egg cache directories you know about?
>
> At the start of the WSGI script file, add:
>
>  import sys
>  print >> sys.stderr, sys.path
>
> How are you restarting Apache, are you use 'sudo' or 'su' commands, if
> so what is the full command line you are using?
>
> Are you also loading mod_python into Apache at the same time?
>
> There are various things which can cause sys.path weirdness including
> having multiple versions of Python installed, local PYTHONPATH
> settings and ensuring Apache doesn't inherit your personal user
> environment when being started in some way.
>
> You at least thinking about the answers to above questions and
> answering them where appropriate might help to understand how you
> environment is setup.
>

These are all the questions I guess we should have asked at the
beginning. I'll add it to troubleshooting section. Thanks.
Lucas


> Otherwise I just don't know at this point. People do not generally
> have the problems you are having, so there is something strange about
> your particular environment.
>
> Graham
>
>
>
> >
>



-- 
OpenOffice and Python
http://lucasmanual.com/mywiki/OpenOffice
Commercial Grade Backup with Bacula
http://lucasmanual.com/mywiki/Bacula

--~--~---------~--~----~------------~-------~--~----~
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