[GRASS-user] Re: import wx

schorschli matthiasoswald at hotmail.com
Tue Jul 20 03:39:05 EDT 2010


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




William Kyngesburye wrote:
> 
> Maybe something is getting inserted into the python path in some other
> way?  Start python in GRASS, then
> 
> import sys
> sys.path
> 
> You should see a bunch of frameworks at the front of the list, then
> etc/python from GRASS, then the system stuff.  If there is another wx in
> the path before the GRASS etc/python, that will cause problems.
> 


'/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')?



-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/import-wx-tp5301729p5315585.html
Sent from the Grass - Users mailing list archive at Nabble.com.


More information about the grass-user mailing list