Darren
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To post to this group, send email to django...@googlegroups.com.
> To unsubscribe from this group, send email to django-users...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en
> .
>
Thanks for your reply. How do you check env path variables diff
between shell and code
execution?
To my wsgi file, I have this line "#!/usr/local/bin/python" which
tells which interpreter to use. And yes, libxml2.py and libxml2mod.so
files are there in "/usr/local/lib/python2.5/site-packages/" folder.
Also running ldd on libxml2mod.so outputs:
libxml2.so.2 => /usr/local/lib/libxml2.so.2 (0x00002b5368ebe000)
>> Are you running your django app under mod_wsgi? It may not running with yourNo it will not. Under mod_python and mod_wsgi that is usually going to
> interpreter in your #! line.
>
> Try using
> import sys; print sys.executable
> in your wsgi file to find out the exact interpreter your wsgi server is
> using.
be 'httpd' executable.
More important value is 'sys.prefix', plus running 'ldd' on the .so
file for the Apache module.
Graham
Verify that the python executable matches.
Darren