[GRASS-user] Error when running a scrip in Windows-WinGRASS
M.Onur Kurum
mokurum at ncsu.edu
Thu Oct 14 13:00:22 EDT 2010
I completely removed the Python25 bundled with GRASS and changed the
startup bat file to not look for the bundled python so this is how it goes:
C:\GRASS-70-SVN>set_shell_start_grass70svn.bat
Cleaning up temporary files...
Starting GRASS GIS...
Traceback (most recent call last):
File "C:\GRASS-70-SVN\etc\gui\wxpython\gis_set.py", line 38, in <module>
import gui_modules.goutput
File "C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\goutput.py", line
35, in <module>
import gcmd
File "C:\GRASS-70-SVN\etc\gui\wxpython\gui_modules\gcmd.py", line 44,
in <module>
from win32file import ReadFile, WriteFile
ImportError: No module named win32file
Error in GUI startup. If necessary, please report this error to the
GRASS developers.
Switching to text mode now.
Hit RETURN to continue...
Traceback (most recent call last):
File "C:\GRASS-70-SVN\grass70.py", line 956, in <module>
set_data()
File "C:\GRASS-70-SVN\grass70.py", line 497, in set_data
gui_startup()
File "C:\GRASS-70-SVN\grass70.py", line 519, in gui_startup
os.execlp(cmd_name, "-text")
File "C:\Python26\lib\os.py", line 327, in execlp
execvp(file, args)
File "C:\Python26\lib\os.py", line 344, in execvp
_execvpe(file, args)
File "C:\Python26\lib\os.py", line 380, in _execvpe
func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
I guess this is what you meant with
"The only thing which may be problematic is the wxPython digitiser module. "
for windows grass 7 comes bundled with python25 and now I use python26
installed separately.
Could you be more specific about how to remove the module ? I am lost there.
in the bundled \Python25\Lib\site-packages\wx-2.8-msw-unicode I see that
wxpython is
Metadata-Version: 1.0
Name: wxPython
Version: 2.8.9.1 for python 2.5
and the one in \Python26\Lib\site-packages\wx-2.8-msw-unicode is version
2.8.11.0 for python 2.6
thanks
Onur
On 10/14/2010 2:44 AM, Glynn Clements wrote:
> M.Onur Kurum wrote:
>
>> Any ideas, suggestions ?
>> I just want to be able to launch the GUI when I have a .py of my own
>> under /scripts in grass6.4 or 7.0
> For 7.0, remove any version of Python which is bundled with GRASS, and
> remove any reference to it from the startup scripts. Just use the
> installed version of Python.
>
> The only thing which may be problematic is the wxPython digitiser
> module. That includes a binary component which will only work with the
> exact versions of Python and wxPython for which it was compiled. If
> this module is present, you may need to remove it in order to start
> the GUI.
>
--
M.Onur Kurum
Graduate Research Assistant
Dept. of Civil, Construction, and Environmental Engineering
North Carolina State University
Campus Box 7908
2501 Stinson Drive, 428 Mann Hall
Raleigh, NC 27695-7908
Office: (919) 515-1340
Mobile: (919) 200-0665
Email: mokurum at ncsu.edu
Email: m.onur.kurum at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20101014/774017d7/attachment.html
More information about the grass-user
mailing list