Thank you very much! Your answer helps me solve the question troubling me 
long time.(My English is so bad that I can't express my gratitude.)

在 2013年10月12日星期六 UTC+8下午5:04:47,Tiago Palma写道:
>
> If anyone else faces this same problem, here's the solution: 
>
> The issue was because the soft links "libxml2.so.2" and "libxml2.so" that 
> are present in "/Canopy/appdata/canopy-1.1.0.1371.rh5-x86_64/lib" were 
> referencing the library "libxml2.so.2.7.8" inside of the same folder, while 
> the libxml2 installed in my system was libxml2.so.2.9.0.
>
> To solve the problem I've done the following steps:
>
> Copied the system libxml2 to the Canopy lib folder:
> > sudo cp /usr/lib/x86_64-linux-gnu/libxml2.so.2.9.0 
> /Canopy/appdata/canopy-1.1.0.1371.rh5-x86_64/lib
>
> And changed the soft link references to reference the new library
> > rm libxml2.so.2; ln -s libxml2.so.2.9.0 libxml2.so.2
> > rm libxml2.so; ln -s libxml2.so.2.9.0 libxml2.so
>
> And that's it, now it's working fine.
>
> Tiago
>
>
> On Wednesday, October 2, 2013 11:16:51 PM UTC+1, Tiago Palma wrote:
>>
>> Hi,
>>
>> I'm new to Scrapy and I'm currently facing some issues when creating a 
>> new project.
>>
>> I've managed to successfully install Scrapy, I have also installed the 
>> libxml2, libxml2-dev, libxslt and libxslt-dev libraries. 
>>
>> *pip install scrapy*
>> Requirement already satisfied (use --upgrade to upgrade): scrapy in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg
>> Requirement already satisfied (use --upgrade to upgrade): Twisted>=8.0 in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages (from scrapy)
>> Requirement already satisfied (use --upgrade to upgrade): w3lib>=1.2 in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages (from scrapy)
>> Requirement already satisfied (use --upgrade to upgrade): queuelib in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages/queuelib-1.0-py2.7.egg
>>  
>> (from scrapy)
>> Requirement already satisfied (use --upgrade to upgrade): lxml in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages (from scrapy)
>> Requirement already satisfied (use --upgrade to upgrade): pyOpenSSL in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages (from scrapy)
>> Requirement already satisfied (use --upgrade to upgrade): 
>> zope.interface>=3.6.0 in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages (from 
>> Twisted>=8.0->scrapy)
>> Requirement already satisfied (use --upgrade to upgrade): distribute in 
>> ./Enthought/Canopy_64bit/User/lib/python2.7/site-packages (from 
>> zope.interface>=3.6.0->Twisted>=8.0->scrapy)
>> Cleaning up...
>>
>>
>>
>> > *scrapy createproject tutorial*
>>
>> Traceback (most recent call last):
>>   File "/home/user/Enthought/Canopy_64bit/User/bin/scrapy", line 5, in 
>> <module>
>>     pkg_resources.run_script('Scrapy==0.18.2', 'scrapy')
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resources.py",
>>  
>> line 499, in run_script
>>     self.require(requires)[0].run_script(script_name, ns)
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resources.py",
>>  
>> line 1239, in run_script
>>     execfile(script_filename, namespace, namespace)
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/EGG-INFO/scripts/scrapy",
>>  
>> line 3, in <module>
>>     from scrapy.cmdline import execute
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/cmdline.py",
>>  
>> line 8, in <module>
>>     from scrapy.crawler import CrawlerProcess
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/crawler.py",
>>  
>> line 5, in <module>
>>     from scrapy.core.engine import ExecutionEngine
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/core/engine.py",
>>  
>> line 14, in <module>
>>     from scrapy.core.downloader import Downloader
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/core/downloader/__init__.py",
>>  
>> line 13, in <module>
>>     from .middleware import DownloaderMiddlewareManager
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/core/downloader/middleware.py",
>>  
>> line 7, in <module>
>>     from scrapy.http import Request, Response
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/http/__init__.py",
>>  
>> line 11, in <module>
>>     from scrapy.http.request.form import FormRequest
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/Scrapy-0.18.2-py2.7.egg/scrapy/http/request/form.py",
>>  
>> line 9, in <module>
>>     import lxml.html
>>   File 
>> "/home/user/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/lxml/html/__init__.py",
>>  
>> line 42, in <module>
>>     from lxml import etree
>> *ImportError: /usr/lib/x86_64-linux-gnu/libxslt.so.1: symbol xmlBufUse, 
>> version LIBXML2_2.9.0 not defined in file libxml2.so.2 with link time 
>> reference*
>>
>> Can anyone help me with this issue?
>>
>> Thanks.
>> Tiago
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to