<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: Times; "><pre>I was to mutch optimist :-)</pre><pre>i bypassed the version problem, but obviously from 2.8.x and 2.9.x</pre><pre>there are some api changes ... so the gui doesn't work</pre><pre>i'lll try to work a bit on it to see what can i do.</pre><pre><br></pre><pre>this the first error i'm having running wxpython gui under wx-2.9 :</pre><pre><br></pre><pre>GRASS 6.5.svn (&lt;UNKNOWN&gt;):~ &gt; g.gui
Launching 'wxpython' GUI in the background, please wait ...
Traceback (most recent call last):
  File "/Applications/GRASS-6.5.app/Contents/MacOS/etc/wxpython/wxgui.py", line 1637, in &lt;module&gt;
    sys.exit(main())
  File "/Applications/GRASS-6.5.app/Contents/MacOS/etc/wxpython/wxgui.py", line 1630, in main
    app = GMApp(workspaceFile)
  File "/Applications/GRASS-6.5.app/Contents/MacOS/etc/wxpython/wxgui.py", line 1552, in __init__
    wx.App.__init__(self, False)
  File "/usr/local/lib/wxPython-2.9.1.1.b20101001/lib/python2.7/site-packages/wx-2.9.1-osx_cocoa/wx/_core.py", line 8470, in __init__
    self._BootstrapApp()
  File "/usr/local/lib/wxPython-2.9.1.1.b20101001/lib/python2.7/site-packages/wx-2.9.1-osx_cocoa/wx/_core.py", line 8035, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/Applications/GRASS-6.5.app/Contents/MacOS/etc/wxpython/wxgui.py", line 1573, in OnInit
    workspace = self.workspaceFile)
  File "/Applications/GRASS-6.5.app/Contents/MacOS/etc/wxpython/wxgui.py", line 112, in __init__
    self.SetIcon(wx.Icon(os.path.join(globalvar.ETCICONDIR, 'grass.ico'), wx.BITMAP_TYPE_ICO))
  File "/usr/local/lib/wxPython-2.9.1.1.b20101001/lib/python2.7/site-packages/wx-2.9.1-osx_cocoa/wx/_gdi.py", line 1265, in __init__
    _gdi_.Icon_swiginit(self,_gdi_.new_Icon(*args, **kwargs))
wx._core.PyAssertionError: C++ assertion "err == noErr" failed at /BUILD/wxPython-src-2.9.1.1.b20101001/src/osx/core/bitmap.cpp(590) in GetIconRef(): Error when constructing icon ref
</pre><div><br></div><pre><br></pre><pre><br></pre><pre><br><blockquote type="cite">Hi,

sorry, i haven't specified it in the previouse mail,
but i'm already using in my configure instruction :

--with-python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config \
--with-wxwidgets=/usr/local/lib/wxPython-2.9.1.1.b20101001/bin/wx-config


the problem seems to be in my "version number" and in "globalvar.py" :

GRASS 6.5.svn (&lt;UNKNOWN&gt;):~ &gt; python
Python 2.7 (r27:82500, Jul 17 2010, 23:39:56) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt;<i> import wx
</i>&gt;&gt;&gt;<i> ver = wx.version().split(' ')[0]
</i>&gt;&gt;&gt;<i> ver
</i>'2.9.1.1.b20101001'
&gt;&gt;&gt;<i> version = [2, 8, 11, 0]
</i>&gt;&gt;&gt;<i> if map(int, ver.split('.')) &lt; version:
</i>...     print 'false'
... 
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ValueError: invalid literal for int() with base 10: 'b20101001'
&gt;&gt;&gt;<i> ver.split('.')
</i>['2', '9', '1', '1', 'b20101001']
&gt;&gt;&gt;<i> ver.split('.')[-1]
</i>'b20101001'
&gt;&gt;&gt;<i> ver.split('.')[-1:]
</i>['b20101001']
&gt;&gt;&gt;<i> ver.split('.')[:-1]
</i>['2', '9', '1', '1']


i'm looking to hack globalvar to fix the problem,
thanks for any hints.

Ciao,

Massimo.
</blockquote></pre><div><br></div></span><div><div>Il giorno 15/ott/2010, alle ore 05.30, Michael Barton ha scritto:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Because it is a custom Python build, you might need to specify --with-python=/System/Library/Frameworks/Python.framework/Versions/2.9/bin/python2.9-config<br><br>(check to make sure this is where the file is and what it is called.)<br><br>Michael<br>____________________<br>C. Michael Barton<br>Director, Center for Social Dynamics &amp; Complexity <br>Professor of Anthropology, School of Human Evolution &amp; Social Change<br>Arizona State University<br><br>voice: <span class="Apple-tab-span" style="white-space:pre">        </span>480-965-6262 (SHESC), 480-727-9746 (CSDC)<br>fax: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;480-965-7671 (SHESC), &nbsp;480-727-0709 (CSDC)<br>www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a>, <a href="http://csdc.asu.edu">http://csdc.asu.edu</a><br><br><br><br><br><br><br><br><br><br><br><br>On Oct 14, 2010, at 7:03 PM, &lt;<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>&gt; wrote:<br><br><blockquote type="cite">Message: 8<br></blockquote><blockquote type="cite">Date: Fri, 15 Oct 2010 01:43:38 +0200<br></blockquote><blockquote type="cite">From: Massimo Di Stefano &lt;<a href="mailto:massimodisasha@gmail.com">massimodisasha@gmail.com</a>&gt;<br></blockquote><blockquote type="cite">Subject: [GRASS-dev] grass fails to detect wxpython version<br></blockquote><blockquote type="cite">To: <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br></blockquote><blockquote type="cite">Message-ID: &lt;<a href="mailto:28CEF25E-7586-419C-AC9E-AF249331B0E2@gmail.com">28CEF25E-7586-419C-AC9E-AF249331B0E2@gmail.com</a>&gt;<br></blockquote><blockquote type="cite">Content-Type: text/plain; charset=us-ascii<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi All,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">for some reason i need to switch to python 2.7 on mac osx<br></blockquote><blockquote type="cite">i'm using a custom build python2.7 (i386 + x86_64)<br></blockquote><blockquote type="cite">it is my default python version.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">epy:~ epy$ which python<br></blockquote><blockquote type="cite">/Library/Frameworks/Python.framework/Versions/2.7/bin/python<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm using a snapshot buld for wx python2.9 (build with cocoa for python2.7)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">it is available there :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://wxpython.wxcommunity.com/preview/20101001/">http://wxpython.wxcommunity.com/preview/20101001/</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://wxpython.wxcommunity.com/preview/20101001/wxPython2.9-osx-2.9.1.1.b20101001-cocoa-py2.7.dmg">http://wxpython.wxcommunity.com/preview/20101001/wxPython2.9-osx-2.9.1.1.b20101001-cocoa-py2.7.dmg</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">tring to run wx-config, i have :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">/usr/local/lib/wxPython-2.9.1.1.b20101001/bin/wx-config --version-full<br></blockquote><blockquote type="cite">2.9.1.1<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">i'm building grass6_devel using as wx configure, this line :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--with-wxwidgets=/usr/local/lib/wxPython-2.9.1.1.b20101001/bin/wx-config<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">the build ends without errors but tring to run grass i have :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">GRASS 6.5.svn (&lt;UNKNOWN&gt;):~ &gt; g.gui<br></blockquote><blockquote type="cite">Launching 'wxpython' GUI in the background, please wait ...<br></blockquote><blockquote type="cite">ERROR: wxGUI requires wxPython &gt;= 2.8.1.1. Requested version of wxPython not found.<br></blockquote><blockquote type="cite">GRASS 6.5.svn (&lt;UNKNOWN&gt;):~ &gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">whay it tel me a version &lt; 2.8 ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">my new wc-config is not in the path .. can be this the reason ? i suppose configure should &nbsp;handle the path i issued to the wxwidgets options.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">have you any clue on what's wrong ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">thanks,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Massimo.<br></blockquote><br>_______________________________________________<br>grass-dev mailing list<br><a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/grass-dev<br></div></blockquote></div><br></body></html>