[GRASS-windows] error starting wxPython grass (Vista64)

Colin Nielsen colin.nielsen at gmail.com
Sat Apr 11 14:39:20 EDT 2009


> PYTHONPATH='C:\Python26\;C:\Program Files (x86)\ArcGIS\bin'

Two things are possibly happening here: 1) When running under msys, I
think you need PYTHONPATH to be in *nix format. 2) You need the grass
python folder to be added to PYTHONPATH.
Try adding the following to /c/OSGeo4W/apps/grass/bin/grass65:

Under "export GISBASE" put:

# Set the PYTHONPATH
PYTHONPATH="$GISBASE/etc/python:/c/Python26"

However, you should know that there is currently an error in the wxgui
code for grass 6.4 > (see http://trac.osgeo.org/grass/ticket/539)
which means that even once you get it open and running, it may not
work.

-Colin

On Sat, Apr 11, 2009 at 2:06 AM, Milton Cezar Ribeiro
<miltinho.astronauta at gmail.com> wrote:
> Dear all
>
> I am running grass6.5 under Msys (under Vista 64bits).
> The python version is 2.6.1.
> I just installed wxPython 2.8.9.2 and NumPy 1.3.0
> according the instructions  I found at
> http://svn.osgeo.org/grass/grass/trunk/gui/wxpython/README
>
> Now I am trying to start wxpython grass under MSYS but I get error
> ......................................................................
> $ /c/OSGeo4W/apps/grass/bin/grass65 -wxpython
> Cleaning up temporary files ...
> Starting GRASS ...
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "c:/OSGeo4W/apps/grass/grass-6.5.svn/etc/wxpython/gis_set.py", line
> 23, in <module>
>     import os
> ImportError: No module named os
> Error in GUI startup. If necessary, please
> report this error to the GRASS developers.
> Switching to text mode now.
> Hit RETURN to continue...
> ......................................................................
>
> If I start python26 out of MSYS and try "import site"
> or "import os" it works fine. The environment variables
> under MSYS are:
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> $ set
> !::='::\'
> !C:='C:\'
> ALLUSERSPROFILE='C:\ProgramData'
> APPDATA='C:\Users\famiglia\AppData\Roaming'
> ARCGISHOME='C:\Program Files (x86)\ArcGIS\'
> BASH=/bin/sh
> BASH_VERSINFO=([0]="2" [1]="04" [2]="0" [3]="1" [4]="release"
> [5]="i686-pc-msys")
> BASH_VERSION='2.04.0(1)-release'
> BGCOLOR=LightYellow
> COLORFGBG='default;default'
> COLORTERM=rxvt
> COLUMNS=79
> COMMONPROGRAMFILES='C:\Program Files (x86)\Common Files'
> COMMONPROGRAMFILES(X86)='C:\Program Files (x86)\Common Files'
> COMMONPROGRAMW6432='C:\Program Files\Common Files'
> COMPUTERNAME=FAMIGLIA-PC
> COMSPEC='C:\Windows\SysWOW64\cmd.exe'
> DFSTRACINGON=FALSE
> DIRSTACK=()
> DISPLAY=:0
> EUID=500
> FGCOLOR=Navy
> FP_NO_HOST_CHECK=NO
> GROUPS=()
> HISTFILE=/home/famiglia/.bash_history
> HISTFILESIZE=500
> HISTSIZE=500
> HOME=/home/famiglia
> HOMEDRIVE=C:
> HOMEPATH='\'
> HOSTNAME=FAMIGLIA-PC
> HOSTTYPE=i686
> IFS='
> '
> LINES=26
> LOCALAPPDATA='C:\Users\famiglia\AppData\Local'
> LOGNAME=famiglia
> LOGONSERVER='\\FAMIGLIA-PC'
> MACHTYPE=i686-pc-msys
> MAILCHECK=60
> MAKE_MODE=unix
> MINGW32BGCOLOR=LightYellow
> MINGW32FGCOLOR=Navy
> MSYSBGCOLOR=White
> MSYSCON=rxvt.exe
> MSYSFGCOLOR=Black
> MSYSTEM=MINGW32
> NUMBER_OF_PROCESSORS=4
> OLDPWD=/c
> OPTERR=1
> OPTIND=1
> OS=Windows_NT
> OSTYPE=msys
> PATH='.:/usr/local/bin:/mingw/bin:/bin:/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Program
> Files (x86)/ATI Technologies/ATI.ACE/Core-Static:/c/Python26'
> PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
> PIPESTATUS=([0]="0")
> PPID=2976
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_ARCHITEW6432=AMD64
> PROCESSOR_IDENTIFIER='Intel64 Family 6 Model 23 Stepping 10, GenuineIntel'
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=170a
> PROGRAMDATA='C:\ProgramData'
> PROGRAMFILES='C:\Program Files (x86)'
> PROGRAMFILES(X86)='C:\Program Files (x86)'
> PROGRAMW6432='C:\Program Files'
> PROMPT='$P$G'
> PS1='\[\033]0;$MSYSTEM:\w\007
> \033[32m\]\u@\h \[\033[33m\w\033[0m\]
> $ '
> PS2='> '
> PS4='+ '
> PUBLIC='C:\Users\Public'
> PWD=/home/famiglia
> PYTHONPATH='C:\Python26\;C:\Program Files (x86)\ArcGIS\bin'
> SESSIONNAME=Console
> SHELL=/bin/sh
> SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs
> SHLVL=1
> SYSTEMDRIVE=C:
> SYSTEMROOT='C:\Windows'
> TEMP=/tmp
> TERM=msys
> TMP=/tmp
> TRACE_FORMAT_SEARCH_PATH='\\NTREL202.ntdev.corp.microsoft.com\34FB5F65-FFEB-4B61-BF0E-A6A76C450FAA\TraceFormat'
> UID=500
> USERDOMAIN=famiglia-PC
> USERNAME=famiglia
> USERPROFILE='C:\Users\famiglia'
> WD='C:\OSGeo4W\apps\msys\\bin\'
> WINDIR='C:\Windows'
> WINDOWID=167838920
> _=-wx
> i='/etc/profile.d/*.sh'
>  -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>
> My Questions are:
>
> (1) How can I know that wxpython and numPy are
> properly installed?
> (2) How can I start "grass -wxpython"?
>
> Best wishes
>
> milton
> Brazil-Toronto
>
> _______________________________________________
> grass-windows mailing list
> grass-windows at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-windows
>
>


More information about the grass-windows mailing list