Just grasping at straws here, but could it have anything to do with
permissions or the python path? I don't fully understand how imports
work. But, those are things I'd explore first.
Darren
On Jun 2, 2010, at 8:57 AM, Superman <[email protected]> wrote:
I have a django site that is integrated with scrapy, but when the
scrapy code is called from the view, I get this error:
File "/usr/local/lib/python2.5/site-packages/libxml2.py", line 1, in
<module>
import libxml2mod
ImportError: /usr/local/lib/python2.5/site-packages/
libxml2mod.so:
undefined symbol:xmlTextReaderSetup
But using the same python executable file on shell, I can import
libxml2 and libxml2mod fine!
import libxml2mod
import libxml2
Does anyone have an idea why my program is not working from .py file
as import is working perfect from python prompt.
--
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
.
--
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.