> On Thu, Jun 3, 2010 at 12:38 PM, Superman <ramseydsi...@gmail.com> 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.
No it will not. Under mod_python and mod_wsgi that is usually going to
be 'httpd' executable.
More important value is 'sys.prefix', plus running 'ldd' on the .so
file for the Apache module.
Graham
> 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 goodhttp://brucewang.nethttp://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 django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment