wxPython in KyngChaos GRASS 6.4

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

wxPython in KyngChaos GRASS 6.4

Neil Best

I installed all of the KyngChaos frameworks for GRASS today and everything seems to be working except for the wxPython GUI.  When I type 'g.gui wxpython I get the following.  I have scoured the READMEs for clues but it seems like everything should just work out of the box.  Can anyone tell me what this means and what I should do?

/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_core.py:4: RuntimeWarning: Python C API version mismatch for module _core_: This Python has API version 1012, module _core_ has version 1013.
  import _core_
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_core.py:4: RuntimeWarning: Python C API version mismatch for module swig_runtime_data2: This Python has API version 1012, module swig_runtime_data2 has version 1013.
  import _core_
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_gdi.py:4: RuntimeWarning: Python C API version mismatch for module _gdi_: This Python has API version 1012, module _gdi_ has version 1013.
  import _gdi_
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_windows.py:4: RuntimeWarning: Python C API version mismatch for module _windows_: This Python has API version 1012, module _windows_ has version 1013.
  import _windows_
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_controls.py:4: RuntimeWarning: Python C API version mismatch for module _controls_: This Python has API version 1012, module _controls_ has version 1013.
  import _controls_
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_misc.py:4: RuntimeWarning: Python C API version mismatch for module _misc_: This Python has API version 1012, module _misc_ has version 1013.
  import _misc_
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/aui.py:104: RuntimeWarning: Python C API version mismatch for module _aui: This Python has API version 1012, module _aui has version 1013.
  import _aui
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/combo.py:9: RuntimeWarning: Python C API version mismatch for module _combo: This Python has API version 1012, module _combo has version 1013.
  import _combo
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/html.py:8: RuntimeWarning: Python C API version mismatch for module _html: This Python has API version 1012, module _html has version 1013.
  import _html
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/stc.py:10: RuntimeWarning: Python C API version mismatch for module _stc: This Python has API version 1012, module _stc has version 1013.
  import _stc
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/date.py:7: RuntimeWarning: Python C API version mismatch for module _date: This Python has API version 1012, module _date has version 1013.
  import _date
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/date.py:7: RuntimeWarning: Python C API version mismatch for module swig_runtime_data3: This Python has API version 1012, module swig_runtime_data3 has version 1013.
  import _date
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/grass.py:7: RuntimeWarning: Python C API version mismatch for module _grass: This Python has API version 1012, module _grass has version 1013.
  import _grass
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/math.py:7: RuntimeWarning: Python C API version mismatch for module _math: This Python has API version 1012, module _math has version 1013.
  import _math
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/imagery.py:7: RuntimeWarning: Python C API version mismatch for module _imagery: This Python has API version 1012, module _imagery has version 1013.
  import _imagery
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/vector.py:7: RuntimeWarning: Python C API version mismatch for module _vector: This Python has API version 1012, module _vector has version 1013.
  import _vector
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/proj.py:7: RuntimeWarning: Python C API version mismatch for module _proj: This Python has API version 1012, module _proj has version 1013.
  import _proj
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/stats.py:7: RuntimeWarning: Python C API version mismatch for module _stats: This Python has API version 1012, module _stats has version 1013.
  import _stats
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/raster.py:7: RuntimeWarning: Python C API version mismatch for module _raster: This Python has API version 1012, module _raster has version 1013.
  import _raster
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/display.py:7: RuntimeWarning: Python C API version mismatch for module _display: This Python has API version 1012, module _display has version 1013.
  import _display
/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/grass/lib/utils.py:7: RuntimeWarning: Python C API version mismatch for module _utils: This Python has API version 1012, module _utils has version 1013.
  import _utils
/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/vdigit/grass6_wxvdigit.py:7: RuntimeWarning: Python C API version mismatch for module _grass6_wxvdigit: This Python has API version 1012, module _grass6_wxvdigit has version 1013.
  import _grass6_wxvdigit
profile.py:
    This module requires the NumPy module, which could not be
    imported. It probably is not installed (it's not part of the
    standard Python distribution). See the Numeric Python site
    (http://numpy.scipy.org) for information on downloading source or
    binaries.
Traceback (most recent call last):
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py", line 80, in ?
    import gui_modules.menudata as menudata
  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/menudata.py", line 24, in ?
    import elementtree.ElementTree as etree # Python <= 2.4
ImportError: No module named elementtree.ElementTree

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wxPython in KyngChaos GRASS 6.4

William Kyngesburye

On Oct 16, 2009, at 6:45 AM, Neil Best wrote:

> I installed all of the KyngChaos frameworks for GRASS today and  
> everything
> seems to be working except for the wxPython GUI.  When I type 'g.gui
> wxpython I get the following.  I have scoured the READMEs for clues  
> but it
> seems like everything should just work out of the box.  Can anyone  
> tell me
> what this means and what I should do?
>
> /Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_core.py:4:
> RuntimeWarning: Python C API version mismatch for module _core_:  
> This Python
> has API version 1012, module _core_ has version 1013.
>  import _core_
> /Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wx/_core.py:4:
> RuntimeWarning: Python C API version mismatch for module  
> swig_runtime_data2:
> This Python has API version 1012, module swig_runtime_data2 has  
> version
> 1013.

Maybe related to below...

> profile.py:
>    This module requires the NumPy module, which could not be
>    imported. It probably is not installed (it's not part of the
>    standard Python distribution). See the Numeric Python site
>    (http://numpy.scipy.org) for information on downloading source or
>    binaries.
> Traceback (most recent call last):
>  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/
> wxgui.py",
> line 80, in ?
>    import gui_modules.menudata as menudata
>  File
> "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/
> menudata.py",
> line 24, in ?
>    import elementtree.ElementTree as etree # Python <= 2.4
> ImportError: No module named elementtree.ElementTree
>

Python <= 2.4 - Sounds like you are on OSX Tiger.  You must install  
Python 2.5 (and not 2.6) from python.org for Tiger, since the system  
Python is too old.

NumPy - I include a NumPy in my GDAL framework.  GRASS requires my  
frameworks, make sure those are installed.  Frameworks for Tiger are  
on the archive page of my site.  (Also make sure to get a Tiger  
version from there, or you'll have more trouble)

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those  
least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy


_______________________________________________
grass-gui mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-gui
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: wxPython in KyngChaos GRASS 6.4

Neil Best

William Kyngesburye wrote
Python <= 2.4 - Sounds like you are on OSX Tiger.  You must install  
Python 2.5 (and not 2.6) from python.org for Tiger, since the system  
Python is too old.

Thanks, William.  Now I get it.  My $PATH was such that python under Macports was being found first.  Stupid Macports.  I was using their GDAL for a while, but once I needed GRASS I jumped over to your stuff and I love it.  Thanks for making it available and thanks for the clue.

Neil
Loading...