Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7314636
By: georgew89

Thank you Fabio and apologies for the delay in answering, I have been away for
a while.
The good news is that the variable shows up, therefore the problem is not Pydev.
I have since re-installed Eclipse, Python2.6 and Pydev and now all is well and
debugging works as expected.

However I have also now tested WinXP and Ubuntu 9.04(with Grass (6.4.rc4), 
Eclipse
(3.4.2)  and Pydev 1.4.5., Python 2.6 with uneven results.

Using Eclipse to run or debug this short Python program:

import os
import grass

vectorname="map2000vect"
type="vector"
mapset="PERMANENT"

env = grass.gisenv()
print env
res = grass.find_file(vectorname,type,mapset)
print res
rem = grass.read_command('g.remove', vect=vectorname)
print rem

behaves faultlessly under WinXP but when run under Ubuntu although it runs 
without
errors, only the first two commands are actually executed and produce output,
the g.remove appears to be executed (i.e. no error is given) but results in
no removal and no output.
The same source program runs correctly  when executed in Ubuntu as a normal
python script from the Grass terminal (hence GRASS is not at fault).
Given that the first two commands only read data and the third has to write,
could this be a permissions error, (although no error is given)?
Any help you can give would be greatly appreciated.
Many thanks
George

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to