python+libxml2+scrapy AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'
Dieter Maurer
dieter at handshake.de
Thu Aug 16 01:19:11 EDT 2012
Dmitry Arsentiev <dmarsentev at gmail.com> writes:
> Has anybody already meet the problem like this? -
> AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'
>
> When I run scrapy, I get
>
> File "/usr/local/lib/python2.7/site-packages/scrapy/selector/factories.py",
> line 14, in <module>
> libxml2.HTML_PARSE_NOERROR + \
> AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'
Apparently, the versions of "scrapy" and "libxml2" do not fit.
Check with which "libxml2" versions, your "scrapy" version can work
and then install one of them.
More information about the Python-list
mailing list