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