OK. since I run Fedora 15 and I have a bare bones computer here goes. As root:
#yum install wxPython numpy python-sqlite MySQL-python PyGreSQL python-matplotlib
Thisfailed
[root@dsm2464 chrisgale]# cd Downloads/
[root@dsm2464 Downloads]# ls
RevMan_5_1_unix_java6.sh� sofastats-1.0.6
[root@dsm2464 Downloads]# cd sofastats-1.0.6/
[root@dsm2464 sofastats-1.0.6]# ls
copyright� INSTALL.sh� README.txt� sofa_main
� File "/usr/share/sofastats/setup.py", line 80, in <module>
��� import my_globals as mg # has translated text
� File "/usr/share/sofastats/my_globals.py", line 541, in <module>
��� config_globals.import_dbe_plugins() # as late as possible because uses local
� File "/usr/share/sofastats/config_globals.py", line 86, in import_dbe_plugins
��� import lib
� File "/usr/share/sofastats/lib.py", line 14, in <module>
��� import wxmpl
� File "/usr/share/sofastats/wxmpl.py", line 28, in <module>
��� from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
ImportError: No module named backend_wxagg
Please note the messages above (e.g. with a screen-shot) and press any key to close
On 7 June 2011 10:12, Grant Paton-Simpson <gr...@p-s.co.nz> wrote:
Hi Jorge,
Thanks for letting me know. I suspect it is something to do with either the matplotlib or wxpython installations. I have just tested SOFA 1.0.6 on Fedora 14 and it worked so there must be a way. Just for future reference, here are the packages which must be installed for Fedora 14:
Python was already there wxPython-2.8.11� and that brought with it some other packages needed. numpy-1:1.4.1� python-sqlite2-1:2.3.5� MySQL-python-1.2.3� PyGreSQL-3.8.1� python-matplotlib-1.0.0�
And presumably you started SOFA with start.py not setup.py.
I would suggest checking the installations again.
All the best, Grant
On 07/06/11 08:53, Jorge Saturno wrote:
Hi, I have installed all the dependencies required for fedora 14 but there was some errors on the installation:
Problem with importing my_globals. Traceback (most recent call last):
� File "/usr/share/sofastats/setup.py", line 80, in <module>� � import my_globals as mg # has translated text� File "/usr/share/sofastats/my_globals.py", line 541, in <module>� � config_globals.import_dbe_plugins() # as late as possible because uses local� File "/usr/share/sofastats/config_globals.py", line 86, in import_dbe_plugins� � import lib� File "/usr/share/sofastats/lib.py", line 14, in <module>� � import wxmpl� File "/usr/share/sofastats/wxmpl.py", line 28, in <module>� � from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
ImportError: No module named backend_wxagg
What can I do?
Thanks
I have found the answer. Try
yum install python-matplotlib-wx
The answer was in:
http://stackoverflow.com/questions/5986780/unable-to-import-figurecanvaswxagg-from-matplotlib-in-python
I will update the documentation soon.
All the best, Grant
On 07/06/11 08:53, Jorge Saturno wrote: