[GRASS-user] Error while running script that uses g.mapsets

Hi

I have a Python Script (for GRASS6.4) where I run this:
grass.run_command(“g.mapset”, mapset = t_mapset)
(to change active mapset)
But I get all this in the command output:
Erasing monitors… PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 Cleaning up temporary files… Your shell continues to use the history for the old mapset You can switch the history by commands: history -w; history -r /usr/local/share/grassdata/Place/National/.bash_history; HISTFILE=/usr/local/share/grassdata/Place/National/.bash_history

It seems to be running ok without any impact but:
1- Why is this happening?
2- How can I avoid this?

Thanks
Helena

Greetings
I have sent this email a few days ago but I didn’t get any answer. Could anyone please help me or give me a tip?

On Tue, Aug 3, 2010 at 5:51 PM, Helena Herrera <helenaherrera1980@gmail.com> wrote:

I have a Python Script (for GRASS6.4) where I run this:
grass.run_command(“g.mapset”, mapset = t_mapset)
(to change active mapset)
But I get all this in the command output:
Erasing monitors… PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 PNG: GRASS_TRUECOLOR status: TRUE PNG: collecting to file: map.png, GRASS_WIDTH=768, GRASS_HEIGHT=501 Cleaning up temporary files… Your shell continues to use the history for the old mapset You can switch the history by commands: history -w; history -r /usr/local/share/grassdata/Place/National/.bash_history; HISTFILE=/usr/local/share/grassdata/Place/National/.bash_history

It seems to be running ok without any impact but:
1- Why is this happening?
2- How can I avoid this?

Thanks
Helena