[GRASS-user] Re: import wx

William Kyngesburye woklist at kyngchaos.com
Tue Jul 20 10:08:28 EDT 2010


On Jul 20, 2010, at 2:39 AM, schorschli wrote:

> 
> I updated to version  GRASS 6.4rc6. But now I cannot start grass anymore...
> 
> File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py",
> line 1819, in <module>
>    sys.exit(main())
>  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py",
> line 1812, in main
>    app = GMApp(workspaceFile)
>  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py",
> line 1737, in __init__
>    wx.App.__init__(self, False)
>  File
> "/Users/Shared/unix/wxpython-leo/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py",
> line 7978, in __init__
>  File
> "/Users/Shared/unix/wxpython-leo/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py",
> line 7552, in _BootstrapApp
>  File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/wxgui.py",
> line 1748, in OnInit
>    introBmp       = introImage.ConvertToBitmap()
>  File
> "/Users/Shared/unix/wxpython-leo/lib/python2.5/site-packages/wx-2.8-mac-unicode/wx/_core.py",
> line 3369, in ConvertToBitmap
> wx._core.PyAssertionError: C++ assertion "image.Ok()" failed at
> ../src/mac/carbon/bitmap.cpp(1286) in wxBitmap(): invalid image
> 
This has happened before in development versions.  I thought I had it figured out as some combination of wxpython and image colorspace, but now I can't get it to work.  It works on OS X Snow Leopard.  The only difference there is Python 2.5 (Leopard) vs 2.6 (Snow).  Using Python 2.6 on Leopard isn't practical.

I need to look into this...

> '/Users/lucaurbani/Documents/code/python_scripts/park_fahrtenberechnung'
> '/Library/Frameworks/SQLite3.framework/Versions/3/Python'
> '/Library/Frameworks/GDAL.framework/Versions/1.6/Python/site-packages'
> '/Library/Frameworks/cairo.framework/Versions/1/Python'
> '/Applications/GRASS-6.4.app/Contents/MacOS/etc/python'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload'
> '/Library/Python/2.5/site-packages'
> '/usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5'
> '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC'
> 
> 
> Any ideas what could be wrong (Maybe
> '/usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.5')?
> 
GRASS path is before that, so it should not be a problem.  From the error above, it's now using the embedded wxpython.


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

[Trillian]  What are you supposed to do WITH a maniacally depressed robot?

[Marvin]  You think you have problems?  What are you supposed to do if you ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy




More information about the grass-user mailing list