[GRASS-user] GRASS python script together with pyproj

I’m trying to incorporate pyproj into a GRASS python script (Transforming coordinates this way seems way faster than importing to one LOCATION, then v.proj to another) But, I’m getting this error when I try to use the pyproj.transform function:
raise TypeError(‘input must be an array, list, tuple or scalar’)
TypeError: input must be an array, list, tuple or scalar

Before running the python script I do the usual:
export PYTHONPATH=“${PYTHONPATH}:$GISBASE/etc/python/”
export PYTHONPATH=“${PYTHONPATH}:$GISBASE/etc/python/grass”
export PYTHONPATH=“${PYTHONPATH}:$GISBASE/etc/python/grass/script”

If I comment out the last export line, the pyproj command runs successfully (and the grass modules are still loaded OK). Is there something in the grass.script modules that somehow conflicts with pyproj?
Is it OK to leave out the last PYTHONPATH line?

Thanks,
Micha

···
-- 
Micha Silver
GIS Consulting
052-3665918
[http://www.surfaces.co.il](http://www.surfaces.co.il)

Hi,

2013/1/14 Micha Silver <micha@arava.co.il>:

export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/"

this line should be enough. Then

import grass.script as grass

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On 14/01/2013 16:00, Martin Landa wrote:

Hi,

2013/1/14 Micha Silver <micha@arava.co.il>:

export PYTHONPATH="${PYTHONPATH}:$GISBASE/etc/python/"

this line should be enough. Then

import grass.script as grass

Martin

Thanks

--
Micha Silver
GIS Consulting
052-3665918
http://www.surfaces.co.il