[GRASS-windows] Problem executing a python script with Grass functions from windows command line

sonja1 sonja.jankowfsky at cemagref.fr
Wed Mar 3 05:37:15 EST 2010


Hi, 
I try to run the following pythonscript under a windows command line:

import os
import grass.script as grass
env = grass.gisenv()
print env
r = grass.read_command("g.list", type='vect')
print r

#Define raster resolution
grass.run_command("g.remove", 'MASK')
grass.run_command("g.region", res='1')

I have set the following environmentvariables 
GISBASE= C:\GRASS-64
GISRC= C:\Documents and Settings\user\.grassrc6
LD_LIBRARY_PATH= C:\GRASS-64\lib
PATH=
C:\GRASS-64\etc;C:\GRASS-64\etc\python;C:\GRASS-64\lib;C:\GRASS-64\bin;C:\GRASS-64\extralib;C:\GRASS-64\scripts;C:\Python26;
PYTHONLIB= C:\Python26
PYTHONPATH=
C:\GRASS-64\etc;C:\GRASS-64\etc\python;C:\GRASS-64\lib;C:\GRASS-64\bin;C:\GRASS-64\extralib;C:\GRASS-64\scripts;C:\Python26;

The script runs ok until the command "g.remove", then I get the following
error

g.remove.exe Ordinal introuvable
L'ordinal 284 est introuvable dans la bibliothèque de liaisons dynamique
SSLEAY32.dll.

I reinstalled the latest WinGRASS version.
When I run the same script in a configured Eclipse environment, it runs
well.

Does anyone have an idea?
Thanks,
Sonja
-- 
View this message in context: http://n2.nabble.com/Problem-executing-a-python-script-with-Grass-functions-from-windows-command-line-tp4666698p4666698.html
Sent from the Grass - Win mailing list archive at Nabble.com.


More information about the grass-windows mailing list