Re: Unable to import libxml2mod from the python script

2010-06-03 Thread Jeliuc Alexandr
You can use ipython or simple idle to see it /usr/local/lib/python2.5. but /bin/python are you sure about default version? On Jun 3, 3:06 pm, Darren wrote: > Go to  /usr/local/bin and do ls -l and see if python is a sym link. If   > so, see where it points and verify it points to python25. Your

Re: Unable to import libxml2mod from the python script

2010-06-03 Thread Darren
Go to /usr/local/bin and do ls -l and see if python is a sym link. If so, see where it points and verify it points to python25. Your modules are here: /usr/local/lib/python2.5/site-packages Verify that the python executable matches. Darren On Jun 2, 2010, at 9:38 PM, Superman wrote: Th

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Bruce Wang
On Thu, Jun 3, 2010 at 1:26 PM, Graham Dumpleton wrote: > > > > > 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 wsg

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Graham Dumpleton
On Jun 3, 1:20 pm, Bruce Wang wrote: > On Thu, Jun 3, 2010 at 12:38 PM, Superman 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 interpret

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Graham Dumpleton
On Jun 3, 12:38 pm, Superman 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. Generally, no it doesn't. If this is a WSGI script

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Bruce Wang
On Thu, Jun 3, 2010 at 12:38 PM, Superman 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 >

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Superman
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/" fol

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Jeliuc Alexandr
You should check env path variables diff between shell and code execution. Another way check this error path is there libxml2 or not. it may be in usr/lib/python2.5. or something like that. On Jun 2, 4:57 pm, Superman wrote: > I have a django site that is integrated with scrapy, but when the > s

Re: Unable to import libxml2mod from the python script

2010-06-02 Thread Darren
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 wrote: I have a django site that is integrated with scrapy,

Unable to import libxml2mod from the python script

2010-06-02 Thread Superman
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 import libxml2mod ImportError: /usr/local/lib/python2.5/site-packages/ libxml2mod.so: undefined