mrelectron
unread,Nov 2, 2009, 5:47:13 AM11/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pycha
Hi:
I'm having a problem with pycha, when running the barchart.py example,
there is some problem with the chartFactory function.
I'm new a Python and dont know how to fix it.
I'm running Python 2.5 on Windows.
==============================
H:\prj\pycha>barchart.py
Traceback (most recent call last):
File "H:\prj\pycha\barchart.py", line 53, in <module>
barChart('v' + output, pycha.bar.VerticalBarChart)
File "H:\prj\pycha\barchart.py", line 43, in barChart
chart = chartFactory(surface, options)
File "H:\bin\python\25\lib\site-packages\pycha\bar.py", line 25, in
__init__
super(BarChart, self).__init__(surface, options)
File "H:\bin\python\25\lib\site-packages\pycha\chart.py", line 54,
in __init__
self.options.merge(options)
File "H:\bin\python\25\lib\site-packages\pycha\chart.py", line 643,
in merge
self[key].merge(other[key])
File "H:\bin\python\25\lib\site-packages\pycha\chart.py", line 640,
in merge
for key, value in other.items():
AttributeError: 'str' object has no attribute 'items'
======================================================
Thanks
Mark