lxml_html.make_links_absolute(link)
File "/home/sov1et/dinowatcher_pypy/site-packages/lxml/html/__init__.py", line 340, in make_links_absolute
self.rewrite_links(link_repl)
File "/home/sov1et/dinowatcher_pypy/site-packages/lxml/html/__init__.py", line 468, in rewrite_links
for el, attrib, link, pos in self.iterlinks():
File "/home/sov1et/dinowatcher_pypy/site-packages/lxml/html/__init__.py", line 381, in iterlinks
for el in self.iter(etree.Element):
File "lxml.etree.pyx", line 2752, in lxml.etree.ElementDepthFirstIterator.__next__ (src/lxml/lxml.etree.c:65185)
File "lxml.etree.pyx", line 1537, in lxml.etree._elementFactory (src/lxml/lxml.etree.c:50951)
AttributeError: '_Document' object has no attribute '_init'
Versions:
pypy: PyPy 2.2.1 with GCC 4.6.3
ii libxml2 2.7.8.dfsg-5.1ubuntu4.6 GNOME XML library
ii libxml2-dev 2.7.8.dfsg-5.1ubuntu4.6 Development files for the GNOME XML library
ii libxml2-utils 2.7.8.dfsg-5.1ubuntu4.6 XML utilities
ii libxslt1-dev 1.1.26-8ubuntu1.3 XSLT 1.0 processing library - development kit
ii libxslt1.1 1.1.26-8ubuntu1.3 XSLT 1.0 processing library - runtime library
Code:
parser = lxml.html. HTMLParser( encoding= page_encoding) fromstring( page_body, parser=parser) html.make_ links_absolute( link)
lxml_html = lxml.html.
lxml_
Trace:
lxml_ html.make_ links_absolute( link) sov1et/ dinowatcher_ pypy/site- packages/ lxml/html/ __init_ _.py", line 340, in make_links_absolute rewrite_ links(link_ repl) sov1et/ dinowatcher_ pypy/site- packages/ lxml/html/ __init_ _.py", line 468, in rewrite_links sov1et/ dinowatcher_ pypy/site- packages/ lxml/html/ __init_ _.py", line 381, in iterlinks etree.Element) : ElementDepthFir stIterator. __next_ _ (src/lxml/ lxml.etree. c:65185) _elementFactory (src/lxml/ lxml.etree. c:50951)
File "/home/
self.
File "/home/
for el, attrib, link, pos in self.iterlinks():
File "/home/
for el in self.iter(
File "lxml.etree.pyx", line 2752, in lxml.etree.
File "lxml.etree.pyx", line 1537, in lxml.etree.
AttributeError: '_Document' object has no attribute '_init'
Versions: 5.1ubuntu4. 6 GNOME XML library 5.1ubuntu4. 6 Development files for the GNOME XML library 5.1ubuntu4. 6 XML utilities
pypy: PyPy 2.2.1 with GCC 4.6.3
ii libxml2 2.7.8.dfsg-
ii libxml2-dev 2.7.8.dfsg-
ii libxml2-utils 2.7.8.dfsg-
ii libxslt1-dev 1.1.26-8ubuntu1.3 XSLT 1.0 processing library - development kit
ii libxslt1.1 1.1.26-8ubuntu1.3 XSLT 1.0 processing library - runtime library
pypy ./get_versions.py (your code) 'final' , serial=42)
Python : (major=2, minor=7, micro=3, releaselevel=
lxml.etree : (3, 3, 4, 0)
libxml used : (2, 7, 8)
libxml compiled : (2, 7, 8)
libxslt used : (1, 1, 26)
libxslt compiled : (1, 1, 26)