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