[GRASS-dev] GRASS 7 crashes on startup on Mac

Michael Barton Michael.Barton at asu.edu
Mon Jun 10 14:48:02 PDT 2013


Is GRASS 7 running for you with wxPython 2.9 for Python 2.7?

Michael
______________________________
C. Michael Barton 
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 	480-965-6262 (SHESC), 480-727-9746 (CSDC)
fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
www: 	http://csdc.asu.edu, http://shesc.asu.edu
		http://www.public.asu.edu/~cmbarton

On Jun 10, 2013, at 2:41 PM, William Kyngesburye <woklist at kyngchaos.com>
 wrote:

> I think we're probably at a point of not being able to do a single binary package for both Snow and Lion+ - too many differences.  It's not quite possible to install both 2.9 carbon for Python 2.6 and 2.9 cocoa for Python 2.7 - while the python parts are separate, the C library parts of one will overwrite the other, and they are probably not compatible.
> 
> The way I handle it is to compile wxpython myself.  I can install each in completely separate locations and reference whichever I need for Snow or Lion builds.  BUT, I haven't tried this yet for 2.9 carbon ON lion, I may have to also compile wxpython 2.9 carbon on Snow (and maybe even GRASS).
> 
> On Jun 10, 2013, at 4:21 PM, Michael Barton wrote:
> 
>> I just installed wxPython 2.9.0.4 for Python 2.6 (for backward compatibility with Snow Leopard). It razed an error on configuration. In checking, here is what I get.
>> 
>> /usr/local/lib/wxPython-2.9.4.0/bin/wx-config --list
>> 
>>   Default config is osx_carbon-unicode-2.9
>> 
>>         No config found to match: /usr/local/lib/wxPython-2.9.4.0/bin/wx-config --list
>>         in /usr/local/lib/wxPython-2.9.4.0/lib/wx/config
>> 
>>         Please install the desired library build, or specify a different
>>         prefix where it may be found.  If the library is not installed
>>         you may call its wx-config directly by specifying its full path.
>> 
>> 
>> Also available in /usr/local/lib/wxPython-2.9.4.0:
>>   osx_carbon-unicode-2.9
>> 
>> 
>> Any idea what is wrong? 
>> 
>> MUST I use wxPython 2.9 ONLY with Python 2.7??? That means no more Snow Leopard compatibility.
>> 
>> Michael
>> ______________________________
>> C. Michael Barton 
>> Director, Center for Social Dynamics & Complexity
>> Professor of Anthropology, School of Human Evolution & Social Change
>> Arizona State University
>> Tempe, AZ  85287-2402
>> USA
>> 
>> voice: 	480-965-6262 (SHESC), 480-727-9746 (CSDC)
>> fax:          480-965-7671(SHESC), 480-727-0709 (CSDC)
>> www: 	http://csdc.asu.edu, http://shesc.asu.edu
>> 		http://www.public.asu.edu/~cmbarton
>> 
>> On Jun 7, 2013, at 8:39 PM, William Kyngesburye <woklist at kyngchaos.com> wrote:
>> 
>>> I just compiled trunk, no compile errors, and GUI runs fine.
>>> 
>>> OSX 10.7 Lion, Xcode 4.6.2 command line tools, wxPython 2.9.4
>>> 
>>> I'm a bit lost now - what is the status of this, what is the current problem?
>>> 
>>> On Jun 7, 2013, at 10:28 AM, Michael Barton wrote:
>>> 
>>>> Maybe it is PYTHONPATH
>>>> 
>>>> BUT...
>>>> 
>>>> Python and the GUI is compiling and working just fine otherwise. And Python runs with no problem in the terminal.
>>>> 
>>>> The bogus errors for compiling mapswipe, composer, etc first appeared with what I think was the introduction of a new window class for these modules. I have not seen the toolbox, but it may reuse the same code. If I knew what this new code is, I might be able to troubleshoot it. But I don't have time to try to reverse engineer it without guidance as to where to look. The error on importing wx is misleading as to what the real error is. 
>>>> 
>>>> I can't say for sure that these are all related (and the error is indeed somewhat different for the toolbox compilation). But it seems a reasonable place to start.
>>>> 
>>>> If it IS a PYTHONPATH problem, then the code for building the toolbox is somehow ignoring PYTHONPATH because this is set properly otherwise.
>>>> 
>>> 
>>>>> On Thu, Jun 6, 2013 at 7:16 PM, Michael Barton <Michael.Barton at asu.edu> wrote:
>>>>> Anna,
>>>>> 
>>>>> This is from the log. It looks to me like a path problem during compilation
>>>>> 
>>>>> Traceback (most recent call last):
>>>>> File "tools/build_modules_xml.py", line 85, in <module>
>>>>>  sys.exit(main())
>>>>> File "tools/build_modules_xml.py", line 77, in main
>>>>>  header(fh)
>>>>> File "tools/build_modules_xml.py", line 58, in header
>>>>>  import grass.script.core as grass
>>>>> ImportError: No module named grass.script.core
>>>>> make[1]: *** [/Users/Shared/grass_dev/grass7_dev/dist.x86_64-apple-darwin12.3.0/etc/gui/wxpython/xml/module_items.xml] Error 1
>>>>> make: [default] Error 2 (ignored)
>>>>> make xml/menudata.xml
>>>>> make[1]: `xml/menudata.xml' is up to date.
>>>>> make menustrings.py
>>>>> 
>>>>> The other bogus errors on "No module named wx" also seems like a path problem.
>>>>> 
>>>>> yes, problem might be in PYTHONPATH. Could you ask about this William? I have currently no time and I am probably not able to solve this.
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Anna 
>>> 
>>>>> On Jun 6, 2013, at 2:39 AM, Anna Petrášová <kratochanna at gmail.com> wrote:
>>>>> 
>>>>>> Hi, Michael,
>>>>>> 
>>>>>> 
>>>>>> On Wed, Jun 5, 2013 at 11:45 PM, Michael Barton <Michael.Barton at asu.edu> wrote:
>>>>>> OK. I did this remotely but hopefully it is what you need.
>>>>>> 
>>>>>> yes, perfect, thanks. Could you try the compilation again with the change William did recently (demolocation probem, [1])? It might be related because from the errors in the log it seems that the virtual grass session is not there. If the problem is still there, please send me updated compilation log.
>>>>>> 
>>>>>> Thanks,
>>>>>> Anna
>>>>>> 
>>>>>> 
>>>>>> [1] https://trac.osgeo.org/grass/changeset/56621 
>>>>>> 
>>> 
>>> -----
>>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
>>> http://www.kyngchaos.com/
>>> 
>>> "The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects."
>>> 
>>> - the wisdom of Tarzan
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"
> 
> - The Ruler of the Universe
> 
> 



More information about the grass-dev mailing list