Bug #377
prewikka - max() takes no keyword arguments
0%
Description
Fresh installation of prewikka (from sources) on Centos 5.5.
When 'statistics' are brought up the above-mentioned internal error shows up:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/prewikka/Core.py", line 335, in process
getattr(view_object, view["handler"])()
File "/usr/lib/python2.4/site-packages/prewikka/views/stats.py", line 503, in render
self._renderClassificationsTrend(criteria)
File "/usr/lib/python2.4/site-packages/prewikka/views/stats.py", line 492, in _renderClassificationsTrend
"alert.classification.text", criteria, limit = 10, zoom_type="classifications_trend")
File "/usr/lib/python2.4/site-packages/prewikka/views/stats.py", line 447, in _addTimelineChart
timeline.render(title)
File "/usr/lib/python2.4/site-packages/prewikka/Chart.py", line 311, in render
x_labels = self._labels, series_legend=True, series_colors=colors)
File "/usr/lib/python2.4/site-packages/prewikka/cairoplot.py", line 2003, in dot_line_plot
plot.render()
File "/usr/lib/python2.4/site-packages/prewikka/cairoplot.py", line 464, in render
self.render_legend()
File "/usr/lib/python2.4/site-packages/prewikka/cairoplot.py", line 547, in render_legend
widest_word = max(self.series_labels, key = lambda item: self.context.text_extents(item)[2])
TypeError: max() takes no keyword arguments
History
#1 Updated by Francois POIROTTE about 12 years ago
- Status changed from New to Assigned
- Assignee set to Francois POIROTTE
Cet usage de la fonction built-in max() n'est possible que depuis Python 2.5.
CentOS 5.x est fourni avec Python 2.4, mais la version 2.6 est disponible dans les d
#2 Updated by Jean-Charles ROGEZ almost 12 years ago
- Project changed from PRELUDE SIEM to Prewikka
#3 Updated by Jean-Charles ROGEZ almost 12 years ago
- Assignee changed from Francois POIROTTE to Jean-Charles ROGEZ
- Target version set to 113
It's a cairoplot issue. This lib requires Python 2.5 at least.
#4 Updated by Jean-Charles ROGEZ over 11 years ago
- Status changed from Assigned to Rejected
- Resolution set to wontfix
This issue will not be fixed. Prewikka requires Python >= 2.5 (not 3.x).
For RHEL5.x, python 2.6 is available from the EPEL repository.
#5 Updated by Thomas ANDREJAK over 8 years ago
- Target version changed from 113 to Prelude OSS 1.1.0