<p dir="ltr"><br>
On Mar 12, 2014 2:28 PM, "Josh Stone" <<a href="mailto:jistone@redhat.com">jistone@redhat.com</a>> wrote:<br>
><br>
> On 03/12/2014 10:42 AM, Dan Scott wrote:<br>
> > Per <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1070074">https://bugzilla.redhat.com/show_bug.cgi?id=1070074</a> I'm working on<br>
> > updating python-rdflib to 4.1.1, but currently having trouble with a<br>
> > new dependency on python-html5lib.<br>
> ><br>
> > The problem is that running a mock build fails as a few tests claim<br>
> > they were unable to import html5lib; this is perfectly consistent with<br>
> > what I see when I run nosetests in a local rdflib source tree and<br>
> > python-html5lib has not been installed. When I then install<br>
> > python-html5lib and run nosetests locally, those tests pass.<br>
> ><br>
> > The puzzling part is that the mock log shows that python-html5lib _is_<br>
> > getting installed, so the html5lib module should be available to the<br>
> > tests.<br>
> ><br>
> > Does anyone have an idea of why the installed html5lib module isn't<br>
> > being found in the mock environment?<br>
><br>
> It doesn't help that rdflib is hiding the actual ImportError, but here's<br>
> what I found using mock manually:<br>
><br>
> $ mock init<br>
> [...]<br>
> $ mock install python-html5lib<br>
> [...]<br>
> $ mock shell pydoc html5lib<br>
> [...]<br>
> problem in html5lib - <type 'exceptions.ImportError'>: No module named six<br>
><br>
> Looks like python-html5lib should require python-six.</p>
<p dir="ltr">Awesome, thanks for providing a good tip for debugging problems like this in the future!</p>
<p dir="ltr">I had tried running a few simple html5lib code examples without triggering any exceptions, but obviously didn't hit the problematic code.</p>
<p dir="ltr">I'll dig back into python-html5lib and hopefully resolve this soon. First epoch, now this :)</p>