Problem installing on Fedora 14

382 views
Skip to first unread message

Jorge Saturno

unread,
Jun 6, 2011, 4:53:59 PM6/6/11
to sofasta...@googlegroups.com
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

Grant Paton-Simpson

unread,
Jun 6, 2011, 6:12:12 PM6/6/11
to sofasta...@googlegroups.com
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

Chris Gale

unread,
Jun 7, 2011, 12:06:47 AM6/7/11
to sofasta...@googlegroups.com
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
[root@dsm2464 sofastats-1.0.6]# bash INSTALL.sh
This script will need to be run as root or superuser to succeed
if you are installing to system directories (the default).
About to transfer all SOFA Statistics files into /usr/share/sofastats.
Press any key to proceed.

About to launch SOFA Statistics. NB to look for any warnings about missing dependencies e.g. wxPython.
If this fails with a message about the X display, just run the following command manually (assumes python 2.6 or 2.7):
/usr/bin/python /usr/share/sofastats/start.py
Press any key to proceed.

Just imported warnings
Just imported codecs
Just imported datetime
Just imported gettext
Just imported glob
Just imported os
Just imported platform
Just imported shutil
Just imported sqlite3
Just imported sys
Just imported traceback
Just ran wxversion
Just imported wx
Just identified locale folder
Just installed gettext

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

Please note the messages above (e.g. with a screen-shot) and press any key to close
--
Christopher Gale
Dunedin, New Zealand

Grant Paton-Simpson

unread,
Jun 7, 2011, 1:27:08 AM6/7/11
to sofasta...@googlegroups.com
Hi Chris,

Thanks for that. Rather than doing a clean install I ran the same yum command as you on my existing fedora 14 test installation and upgraded those libraries were prompted. It then failed as described by yourself and Jorge.

See attached image to see what was upgraded (sorry it is an image but I had trouble copying and pasting the terminal out of VirtualBox). It looks like either the wxPython or matplotlibe upgrades are the culprit. I can't look into this right now but please let me know if you make any progress.


All the best, Grant



On 07/06/11 16:06, Chris Gale wrote:
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
fedora_upgrade_blues.gif

Grant Paton-Simpson

unread,
Jun 7, 2011, 3:07:48 AM6/7/11
to sofasta...@googlegroups.com
Hi Jorge,

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:

Chris Gale

unread,
Jun 7, 2011, 9:39:42 PM6/7/11
to sofasta...@googlegroups.com
Works
Screenshot-SOFA Start.png

Grant Paton-Simpson

unread,
Jun 7, 2011, 9:46:54 PM6/7/11
to sofasta...@googlegroups.com
Excellent - thanks for helping get to the bottom of this.

Jorge Saturno

unread,
Jun 9, 2011, 11:51:39 PM6/9/11
to sofasta...@googlegroups.com
Thank you! It's working now!

:)

Ulises Pereira Obilinovic

unread,
Mar 2, 2015, 7:22:57 PM3/2/15
to sofasta...@googlegroups.com
Thanks This was really helpful for me either,

:)
Reply all
Reply to author
Forward
0 new messages