On Thu, Jun 3, 2010 at 12:38 PM, Superman <[email protected]> wrote:
> 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 your 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. BTW: I would suggest you to look at lxml[1] which is another libxml2/libxslt binding but more elegant and pythonic. [1] http://codespeak.net/lxml/ -- simple is good http://brucewang.net http://twitter.com/number5 -- You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en.

