I'm not sure if this is it but looking at the path to the "os.py" my 
installation (although OSGEO4W and 7.0.4) shows "Lib" not "lib" ...
It it is having trouble finding the os.py file, then the difference in the 
spelling of lib with a capital letter may be the issue...
Could it be that simple ?!?!
Chris

Chris Bartolomei P.E.
Engineer/Scientist
ENSCO, Inc.
[email protected]
________________________________________
From: grass-user [[email protected]] On Behalf Of Uwe Fischer 
[[email protected]]
Sent: Thursday, May 12, 2016 8:48 AM
To: [email protected]
Subject: [GRASS-user] problems running v.centroids

Hello List,

I can’t get >v.centroids< working in Grass 7.0.3.
When I try I get the following message:

v.centroids --overwrite --quiet input=inputmap output=outputmap cat=1000
Traceback (most recent call last):
  File "C:\PROGRA~1\QGISES~1\apps\grass\grass-7.0.3/scripts/v.centroids.py", 
line 69, in <module> main()
  File "C:\PROGRA~1\QGISES~1\apps\grass\grass-7.0.3/scripts/v.centroids.py", 
line 63, in main
    grass.exec_command("v.category", type = 'area',**options)
  File 
"C:\PROGRA~1\QGISES~1\apps\grass\grass-7.0.3\etc\python\grass\script\core.py", 
line 536, in exec_command
    os.execvpe(prog, args, env)
  File "C:\PROGRA~1\QGISES~1\apps\Python27\lib\os.py", line 353, in execvpe
    _execvpe(file, args, env)
  File "C:\PROGRA~1\QGISES~1\apps\Python27\lib\os.py", line 380, in _execvpe
    func(fullname, *argrest)

OSError: [Errno 2] No such file or directory
(Wed May 11 08:00:49 2016) Command finished (0 sec)

I have no idea what that means and where to look for the error.
Furthermore, the final goal is to run v.centroids as part of an external python 
script that can be started from outside GRASS.
When I try this, I get the following message:

Process ended with non-zero return code 1. See errors in the (error) output.

What ist the "(error) output" of a python script and where can I find it?

best regards,
Uwe Fischer

--

The information contained in this email message is intended only for the use of 
the individual(s) to whom it is addressed and may contain information that is 
privileged and sensitive. If you are not the intended recipient, or otherwise 
have received this communication in error, please notify the sender immediately 
by email at the above referenced address and note that any further 
dissemination, distribution or copying of this communication is strictly 
prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology 
originating in the United States. This includes the electronic transmission of 
information and software to foreign countries and to certain foreign nationals. 
Recipient agrees to abide by these laws and their regulations -- including the 
U.S. Department of Commerce Export Administration Regulations and the U.S. 
Department of State International Traffic in Arms Regulations -- and not to 
transfer, by electronic transmission or otherwise, any content derived from 
this email to either a foreign national or a foreign destination in violation 
of such laws.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to