I just installed html5lib with Python for Windows Command Prompt. Package was installed here:
file "c: \ Python27 \ lib \ site-packages \ html5lib However, if I import html5lib I try:
#! / Usr / bin / python import html5lib I get the following error:
Tracebacks (most recent call final): File "C: \ user \ workspace \ testhtml5 \ src \ test.py", line 2, in the & lt; module & gt; import html5lib file "C: \ Python27 \ lib \ Site-packages \ html5lib \ ____ init__ Py ", line 16, .html5parser import HTMLParser, from parse, parseFragment file, from & lt; modules & gt;: from" C: \ Python 27 \ lib \ site-packages \ html5lib \ html5parser.py ", line 2, in the & lt; modules & gt; import with_metaclass import error: any modules named six may cause an error but no thoughts? Thanks < P>
You are missing the six module. You can download it, or better, Pip can use six .
No comments:
Post a Comment