pyreport has type error

Asked by A. Villaveces

Trying pyreport (version 0.2.11, with python 2.6 installed on ubuntu 10.10) gets this output:

Outputing report to /home/anvini/Dropbox/python/py1st/ball_variables.pdf
Traceback (most recent call last):
  File "/usr/bin/pyreport", line 1494, in <module>
    commandline_call()
  File "/usr/bin/pyreport", line 1430, in commandline_call
    main(pyfile, overrides=options)
  File "/usr/bin/pyreport", line 1490, in main
    compiler = compilers.get(options.outtype, TexCompiler)(options)
  File "/usr/bin/pyreport", line 1290, in __init__
    mathescape=true""" +"""
  File "/usr/lib/python2.6/re.py", line 151, in sub
    return _compile(pattern, 0).sub(repl, string, count)
TypeError: __call__() takes at most 5 arguments (6 given)

(It seems to be a type error in the programming of pyreport)...

What can one do in such case?

Thank you for your answer!

av

Question information

Language:
English Edit question
Status:
Solved
For:
pyreport Edit question
Assignee:
No assignee Edit question
Solved by:
Gael Varoquaux
Solved:
Last query:
Last reply:
Revision history for this message
Best Gael Varoquaux (gael-varoquaux) said :
#1

It seem to me that this is a pretty old version of pyreport (0.2.1, latest is 0.3.4). If I remember correctly, this version didn't work under Python 2.6. You should try with version 0.3.4, that you can download from http://pypi.python.org/pypi/pyreport

Revision history for this message
A. Villaveces (avillavecesn) said :
#2

Thank you so much! For some reason (?) there _was_ a version of pyreport, before even the python-setuptools were installed (once they were, I followed the familiar sudo easy_install pyreport, and the new version is correct. It works perfectly.

Thank you.

av

Revision history for this message
A. Villaveces (avillavecesn) said :
#3

Thanks Gael Varoquaux, that solved my question.