ImportError: No module named aui

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

ImportError: No module named aui

Timmie
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?

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named aui

Martin Landa
Hi,

python
import wx
wx.__version__

>=  2.8.1.1?

Martin

2007/7/2, Tim Michelsen <[hidden email]>:
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?

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui



--
Martin Landa <[hidden email]> * http://gama.fsv.cvut.cz/~landa *
_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named aui

Timmie
Martin Landa schrieb:
> Hi,
>
> python
> import wx
> wx.__version__
>
>  >=  2.8.1.1 <http://2.8.1.1>?

No, python seems to use the older wx version by default:

 >>> 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
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named aui

Timmie
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


>> python
>> import wx
>> wx.__version__
>>
>>  >=  2.8.1.1 <http://2.8.1.1>?
>
> No, python seems to use the older wx version by default:
>
>  >>> 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
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: Re: ImportError: No module named aui

Jarek Jasiewicz
Tim Michelsen wrote:

> 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
>
>
>>> python
>>> import wx
>>> wx.__version__
>>>
>>>  >=  2.8.1.1 <http://2.8.1.1>?
>>
>> No, python seems to use the older wx version by default:
>>
>>  >>> 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
> [hidden email]
> 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

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named aui

Timmie
Hello!
> 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 &'

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: Re: ImportError: No module named aui

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.

Michael


On 7/24/07 3:30 PM, "Tim Michelsen" <[hidden email]> wrote:

> Hello!
>> 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, 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


_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: ImportError: No module named aui

Timmie
Thanks for your response.

> 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!

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: Re: ImportError: No module named aui

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).

Hope this clarifies things somewhat.

Michael


On 8/8/07 5:50 AM, "Tim Michelsen" <[hidden email]> wrote:

> Thanks for your response.
>
>> 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


_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS-dev] Re: Re: ImportError: No module named aui

Brad Douglas
On Wed, 2007-08-08 at 23:35 -0700, Michael Barton wrote:

> 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>

_______________________________________________
grassgui mailing list
[hidden email]
http://grass.itc.it/mailman/listinfo/grassgui