joblib/pyreport

PyReport Broken with Docutils 0.11

svenk opened this issue · 2 comments

PyReport crashes with any python script. I think the PyReport import function cannot handle newer calls from Docutils. Using it with a pyreport symlink from $PATH (c.f. #6):

$ pyreport --version
pyreport 0.3.3
$ python -c "import docutils; print docutils.__version__"
0.11
$ cat > hello.py
print "Hello World" 
$ pyreport hello.py 
Running python script /.../hello.py:

Hello World

Outputing report to /.../hello.pdf
Traceback (most recent call last):
  File "/home/sven/bin/pyreport", line 1260, in <module>
    commandline_call()
  File "/home/sven/bin/pyreport", line 1200, in commandline_call
    main(pyfile, overrides=options)
  File "/home/sven/bin/pyreport", line 1252, in main
    output_list = shape_output_list(output_list, options)
  File "/home/sven/bin/pyreport", line 364, in shape_output_list
    output_list = map(check_rst_block, output_list)
  File "/home/sven/bin/pyreport", line 668, in check_rst_block
    publisher.set_components('standalone', 'restructuredtext', 'pseudoxml')
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 93, in set_components
    self.set_reader(reader_name, self.parser, parser_name)
  File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 82, in set_reader
    reader_class = readers.get_reader_class(reader_name)
  File "/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py", line 110, in get_reader_class
    module = __import__(reader_name, globals(), locals(), level=1)
TypeError: __call__() got an unexpected keyword argument 'level'

No output is generated. The only way pyreport doesn't crash is using the -x option.

Checking out the latest github ''branch'' instead of installing via pip fixes both issues. The bug was most likely fixed in e6a00a2

Which, in fact, means that the currently provided version on pip is broken.