Discussion:
[GRASSGUI] ImportError: No module named aui
Tim Michelsen
2007-11-14 22:56:52 UTC
Permalink
Hello,
today I wanted to test the new GUI but I encountered problems with the
required wxPython:

GRASS 6.2.1 (spearfish60):/usr/lib/grass/scripts > wxgrass&
[1] 17439
GRASS 6.2.1 (spearfish60):/usr/lib/grass/scripts > Traceback (most
recent call last):
File "/usr/lib/grass/etc/wx/wxgui.py", line 34, in <module>
import wx.aui
ImportError: No module named aui

[1]+ Done wxgrass
GRASS 6.2.1 (spearfish60):/usr/lib/grass/scripts >

I have the following packages installed on ubuntu feisty fawn:
rc boa-constructor 0.4.4cvs20050714-4
ii libwxbase2.6-0 2.6.3.2.1.5ubuntu6
ii libwxbase2.8-0 2.8.1.1-0ubuntu4
ii libwxbase2.8-dev 2.8.1.1-0ubuntu4
ii libwxgtk2.4-1 2.4.5.1ubuntu2
ii libwxgtk2.6-0 2.6.3.2.1.5ubuntu6
ii libwxgtk2.8-0 2.8.1.1-0ubuntu4
ii libwxgtk2.8-dev 2.8.1.1-0ubuntu4
ii python-wxglade 0.4.1-3
ii python-wxgtk2.6 2.6.3.2.1.5ubuntu6
ii python-wxgtk2.8 2.8.1.1-0ubuntu4
ii python-wxversion 2.6.3.2.1.5ubuntu6
ii wx2.6-doc 2.6.3.2.1.5ubuntu6
ii wx2.6-i18n 2.6.3.2.1.5ubuntu6
ii wx2.8-headers 2.8.1.1-0ubuntu4

Thanks for any help,
Timmie

P.S. Could this mailinglist be added to Gmane, please?
Martin Landa
2007-11-14 22:56:52 UTC
Permalink
Hi,

python
import wx
wx.__version__
= 2.8.1.1?
Martin
Hello,
today I wanted to test the new GUI but I encountered problems with the
GRASS 6.2.1 (spearfish60):/usr/lib/grass/scripts > wxgrass&
[1] 17439
GRASS 6.2.1 (spearfish60):/usr/lib/grass/scripts > Traceback (most
File "/usr/lib/grass/etc/wx/wxgui.py", line 34, in <module>
import wx.aui
ImportError: No module named aui
[1]+ Done wxgrass
GRASS 6.2.1 (spearfish60):/usr/lib/grass/scripts >
rc boa-constructor 0.4.4cvs20050714-4
ii libwxbase2.6-0 2.6.3.2.1.5ubuntu6
ii libwxbase2.8-0 2.8.1.1-0ubuntu4
ii libwxbase2.8-dev 2.8.1.1-0ubuntu4
ii libwxgtk2.4-1 2.4.5.1ubuntu2
ii libwxgtk2.6-0 2.6.3.2.1.5ubuntu6
ii libwxgtk2.8-0 2.8.1.1-0ubuntu4
ii libwxgtk2.8-dev 2.8.1.1-0ubuntu4
ii python-wxglade 0.4.1-3
ii python-wxgtk2.6 2.6.3.2.1.5ubuntu6
ii python-wxgtk2.8 2.8.1.1-0ubuntu4
ii python-wxversion 2.6.3.2.1.5ubuntu6
ii wx2.6-doc 2.6.3.2.1.5ubuntu6
ii wx2.6-i18n 2.6.3.2.1.5ubuntu6
ii wx2.8-headers 2.8.1.1-0ubuntu4
Thanks for any help,
Timmie
P.S. Could this mailinglist be added to Gmane, please?
_______________________________________________
grassgui mailing list
http://grass.itc.it/mailman/listinfo/grassgui
--
Martin Landa <***@gmail.com> * http://gama.fsv.cvut.cz/~landa *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-gui/attachments/20070702/b268ede2/attachment.html
Tim Michelsen
2007-11-14 22:56:52 UTC
Permalink
Post by Tim Michelsen
Hi,
python
import wx
wx.__version__
= 2.8.1.1 <http://2.8.1.1>?
Post by Martin Landa
wx.__version__
'2.6.3.2'

Is there a way to tell which wx version to use?

DrPython still requires python-wxgtk2.6 and it's still the default on
Ubuntu.

Thanks,

Timmie
Tim Michelsen
2007-11-14 22:56:52 UTC
Permalink
Hello Ubuntu users,

is there anyone who had the new GUI succesfully running with the
wxpython 2.8 that is already packaged in ubuntu 7.04 or did you use the
deb from wxpython.org?

Thanks and regards,
Timmie
Post by Tim Michelsen
Post by Tim Michelsen
python
import wx
wx.__version__
= 2.8.1.1 <http://2.8.1.1>?
Post by Martin Landa
wx.__version__
'2.6.3.2'
Is there a way to tell which wx version to use?
DrPython still requires python-wxgtk2.6 and it's still the default on
Ubuntu.
Thanks,
Timmie
Jarek Jasiewicz
2007-11-14 22:56:52 UTC
Permalink
Post by Tim Michelsen
Hello Ubuntu users,
is there anyone who had the new GUI succesfully running with the
wxpython 2.8 that is already packaged in ubuntu 7.04 or did you use
the deb from wxpython.org?
Thanks and regards,
Timmie
Post by Tim Michelsen
Post by Tim Michelsen
python
import wx
wx.__version__
= 2.8.1.1 <http://2.8.1.1>?
Post by Martin Landa
wx.__version__
'2.6.3.2'
Is there a way to tell which wx version to use?
DrPython still requires python-wxgtk2.6 and it's still the default on
Ubuntu.
Thanks,
Timmie
_______________________________________________
grassgui mailing list
http://grass.itc.it/mailman/listinfo/grassgui
I uninstal wx 2.6 and 2.8 and install aganin only 2.8 it help to run
wxpython
Tim Michelsen
2007-11-14 22:56:52 UTC
Permalink
Hello!
Post by Jarek Jasiewicz
I uninstal wx 2.6 and 2.8 and install aganin only 2.8 it help to run
wxpython
I did what you said. The Grass splash scren came up and went away.

Why do I not see the WxGrass-Windows?

Here's the error log:

/usr/lib/python2.4/site-packages/numpy/core/__init__.py:5:
RuntimeWarning: Python C API version mismatch for module multiarray:
This Python has API version 1013, module multiarray has version 1012.
import multiarray
/usr/lib/python2.4/site-packages/numpy/core/__init__.py:6:
RuntimeWarning: Python C API version mismatch for module umath: This
Python has API version 1013, module umath has version 1012.
import umath
/usr/lib/python2.4/site-packages/numpy/core/__init__.py:9:
RuntimeWarning: Python C API version mismatch for module _sort: This
Python has API version 1013, module _sort has version 1012.
import _sort
/usr/lib/python2.4/site-packages/numpy/core/numeric.py:252:
RuntimeWarning: Python C API version mismatch for module _dotblas: This
Python has API version 1013, module _dotblas has version 1012.
from _dotblas import dot, vdot, inner, alterdot, restoredot
/usr/lib/python2.4/site-packages/numpy/core/__init__.py:19:
RuntimeWarning: Python C API version mismatch for module scalarmath:
This Python has API version 1013, module scalarmath has version 1012.
import scalarmath
/usr/lib/python2.4/site-packages/numpy/lib/function_base.py:25:
RuntimeWarning: Python C API version mismatch for module _compiled_base:
This Python has API version 1013, module _compiled_base has version 1012.
from _compiled_base import _insert, add_docstring
/usr/lib/python2.4/site-packages/numpy/linalg/linalg.py:25:
RuntimeWarning: Python C API version mismatch for module lapack_lite:
This Python has API version 1013, module lapack_lite has version 1012.
from numpy.linalg import lapack_lite
/usr/lib/python2.4/site-packages/numpy/fft/fftpack.py:28:
RuntimeWarning: Python C API version mismatch for module fftpack_lite:
This Python has API version 1013, module fftpack_lite has version 1012.
import fftpack_lite as fftpack
/usr/lib/python2.4/site-packages/numpy/random/__init__.py:3:
RuntimeWarning: Python C API version mismatch for module mtrand: This
Python has API version 1013, module mtrand has version 1012.
from mtrand import *
/usr/lib/python2.4/site-packages/_xmlplus/parsers/expat.py:4:
RuntimeWarning: Python C API version mismatch for module pyexpat: This
Python has API version 1013, module pyexpat has version 1012.
from pyexpat import *
Error in sys.excepthook:
Traceback (most recent call last):
File "/var/lib/python-support/python2.5/apport_python_hook.py", line
30, in apport_excepthook
import apport.report, apport.fileutils
File "/var/lib/python-support/python2.4/apport/__init__.py", line 1,
in <module>
from apport.report import Report
File "/var/lib/python-support/python2.4/apport/report.py", line 20,
in <module>
from problem_report import ProblemReport
ImportError: Bad magic number in
/usr/lib/python2.4/site-packages/problem_report.pyc

Original exception was:
Traceback (most recent call last):
File "/usr/lib/grass/etc/wx/wxgui.py", line 918, in <module>
app = GMApp(0)
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7757, in __init__
self._BootstrapApp()
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7354, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/usr/lib/grass/etc/wx/wxgui.py", line 900, in OnInit
mainframe = GMFrame(parent=None, id=wx.ID_ANY, title="")
File "/usr/lib/grass/etc/wx/wxgui.py", line 188, in __init__
self.NewDisplay()
File "/usr/lib/grass/etc/wx/wxgui.py", line 582, in NewDisplay
auimgr=self._auimgr)
File
"/usr/local/src/gis/grass/addons/gui/gui_modules/wxgui_utils.py", line
135, in __init__
Map=self.Map, auimgr=self.auimgr)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/mapdisp.py",
line 1323, in __init__
self.AddToolbar(toolb)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/mapdisp.py",
line 1407, in AddToolbar
self.maptoolbar = toolbars.MapToolbar(self, self.Map)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/toolbars.py",
line 78, in __init__
self.InitToolbar(self.mapdisplay, self.toolbar, self.ToolbarData())
File "/usr/local/src/gis/grass/addons/gui/gui_modules/toolbars.py",
line 42, in InitToolbar
self.CreateTool(parent, toolbar, *tool)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/toolbars.py",
line 58, in CreateTool
shortHelp, longHelp)
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3715, in AddLabelTool
shortHelp, longHelp, clientData)
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3637, in DoAddTool
return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
ValueError: invalid null reference in method 'ToolBarBase_DoAddTool',
expected argument 4 of type 'wxBitmap const &'
Michael Barton
2007-11-14 22:56:52 UTC
Permalink
As the errors indicate, you seem to have a mismatch between your wxPython
and Python version. You need to have a version of wxPython 2.8 that uses the
same version of Python you have on your computer--either 2.4 OR 2.5.

Michael
Post by Tim Michelsen
Hello!
Post by Jarek Jasiewicz
I uninstal wx 2.6 and 2.8 and install aganin only 2.8 it help to run
wxpython
I did what you said. The Grass splash scren came up and went away.
Why do I not see the WxGrass-Windows?
This Python has API version 1013, module multiarray has version 1012.
import multiarray
RuntimeWarning: Python C API version mismatch for module umath: This
Python has API version 1013, module umath has version 1012.
import umath
RuntimeWarning: Python C API version mismatch for module _sort: This
Python has API version 1013, module _sort has version 1012.
import _sort
RuntimeWarning: Python C API version mismatch for module _dotblas: This
Python has API version 1013, module _dotblas has version 1012.
from _dotblas import dot, vdot, inner, alterdot, restoredot
This Python has API version 1013, module scalarmath has version 1012.
import scalarmath
This Python has API version 1013, module _compiled_base has version 1012.
from _compiled_base import _insert, add_docstring
This Python has API version 1013, module lapack_lite has version 1012.
from numpy.linalg import lapack_lite
This Python has API version 1013, module fftpack_lite has version 1012.
import fftpack_lite as fftpack
RuntimeWarning: Python C API version mismatch for module mtrand: This
Python has API version 1013, module mtrand has version 1012.
from mtrand import *
RuntimeWarning: Python C API version mismatch for module pyexpat: This
Python has API version 1013, module pyexpat has version 1012.
from pyexpat import *
File "/var/lib/python-support/python2.5/apport_python_hook.py", line
30, in apport_excepthook
import apport.report, apport.fileutils
File "/var/lib/python-support/python2.4/apport/__init__.py", line 1,
in <module>
from apport.report import Report
File "/var/lib/python-support/python2.4/apport/report.py", line 20,
in <module>
from problem_report import ProblemReport
ImportError: Bad magic number in
/usr/lib/python2.4/site-packages/problem_report.pyc
File "/usr/lib/grass/etc/wx/wxgui.py", line 918, in <module>
app = GMApp(0)
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7757, in __init__
self._BootstrapApp()
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line
7354, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "/usr/lib/grass/etc/wx/wxgui.py", line 900, in OnInit
mainframe = GMFrame(parent=None, id=wx.ID_ANY, title="")
File "/usr/lib/grass/etc/wx/wxgui.py", line 188, in __init__
self.NewDisplay()
File "/usr/lib/grass/etc/wx/wxgui.py", line 582, in NewDisplay
auimgr=self._auimgr)
File
"/usr/local/src/gis/grass/addons/gui/gui_modules/wxgui_utils.py", line
135, in __init__
Map=self.Map, auimgr=self.auimgr)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/mapdisp.py",
line 1323, in __init__
self.AddToolbar(toolb)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/mapdisp.py",
line 1407, in AddToolbar
self.maptoolbar = toolbars.MapToolbar(self, self.Map)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/toolbars.py",
line 78, in __init__
self.InitToolbar(self.mapdisplay, self.toolbar, self.ToolbarData())
File "/usr/local/src/gis/grass/addons/gui/gui_modules/toolbars.py",
line 42, in InitToolbar
self.CreateTool(parent, toolbar, *tool)
File "/usr/local/src/gis/grass/addons/gui/gui_modules/toolbars.py",
line 58, in CreateTool
shortHelp, longHelp)
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3715, in AddLabelTool
shortHelp, longHelp, clientData)
File
"/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_controls.py",
line 3637, in DoAddTool
return _controls_.ToolBarBase_DoAddTool(*args, **kwargs)
ValueError: invalid null reference in method 'ToolBarBase_DoAddTool',
expected argument 4 of type 'wxBitmap const &'
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
Tim Michelsen
2007-11-14 22:56:52 UTC
Permalink
Thanks for your response.
Post by Michael Barton
As the errors indicate, you seem to have a mismatch between your wxPython
and Python version. You need to have a version of wxPython 2.8 that uses the
same version of Python you have on your computer--either 2.4 OR 2.5.
How do I solve this mismatch?
How do I tell wxgrass which version to take?

I need wxpython 2.4 for audacity, wxpython 2.6 for filezilla...

All these versions make it really confusing...

I am open for any hint!
Michael Barton
2007-11-14 22:56:52 UTC
Permalink
You can use Python 2.4 or 2.5.

You must have wxPython 2.8 or higher.

Python and wxPython version numbers are not in sync with each other.

wxPython version numbers are (I think) in sync with wxWidgets version
numbers (since wxPython is built on wxWidgets).

If you have Python 2.4, you must compile wxPython for Python 2.4 (or get a
binary that is compiled for Python 2.4)

If you have Python 2.5, you must compile wxPython for Python 2.5 (or get the
proper binary).

I recently saw come across the list the comment that wxPython 2.8 will work
fine with things that need wxPython 2.6 (although the reverse is not true of
course).

Hope this clarifies things somewhat.

Michael
Post by Tim Michelsen
Thanks for your response.
Post by Michael Barton
As the errors indicate, you seem to have a mismatch between your wxPython
and Python version. You need to have a version of wxPython 2.8 that uses the
same version of Python you have on your computer--either 2.4 OR 2.5.
How do I solve this mismatch?
How do I tell wxgrass which version to take?
I need wxpython 2.4 for audacity, wxpython 2.6 for filezilla...
All these versions make it really confusing...
I am open for any hint!
__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
Brad Douglas
2007-11-14 22:56:52 UTC
Permalink
Post by Michael Barton
You can use Python 2.4 or 2.5.
You must have wxPython 2.8 or higher.
Python and wxPython version numbers are not in sync with each other.
wxPython version numbers are (I think) in sync with wxWidgets version
numbers (since wxPython is built on wxWidgets).
If you have Python 2.4, you must compile wxPython for Python 2.4 (or get a
binary that is compiled for Python 2.4)
If you have Python 2.5, you must compile wxPython for Python 2.5 (or get the
proper binary).
I recently saw come across the list the comment that wxPython 2.8 will work
fine with things that need wxPython 2.6 (although the reverse is not true of
course).
I built RPMs for Fedora Core 6 x86_64 if anyone is interested. It'll
save a lot of headaches.
--
73, de Brad KB8UYR/6 <rez touchofmadness com>
Loading...