#1692: calling a script within a script failing on Windows XP
---------------------------------------------------------------+------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.report, v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
---------------------------------------------------------------+------------
Hi,
We're trying to run v.random.cover(.sh) from grass6 addons on Windows XP
using the standard 6.4.2-2 prebuilt binaries. That script calls
v.report(.sh), but v.report fails. "g.parser has encountered a problem
and needs to close." and v.report exits with a non-zero error code.
turning debug to level 1 I see "ret = 1" from the G_spawn() command.
Running the exact same v.report command from the msys command line works
fine.
I'd note v.report sends data to both stderr and stdout, but that's all
after the g.parser call.
I seem to recall a problem long ago where in wingrass a script calling
another script didn't work.
Running `which v.report` from the msys command prompt shows `C:/Program
Files/GRASS 6.4.2/scripts`, not the wrapper .bat file in $GISBASE/bin/.
maybe it doesn't like $0 != what gets run on the second g.parser pass??
I'm not sure what to try to debug next.
thanks,
Hamish
ps- we were also unable to download any of the addons directly with the
gui extension tool, although the zip files seem ok on the server. Is it
working for anyone with those 6.4.2-2 binaries?
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by hellik):
Replying to [ticket:1692 hamish]:
>
> ps- we were also unable to download any of the addons directly with the
gui extension tool, although the zip files seem ok on the server. Is it
working for anyone with those 6.4.2-2 binaries?
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by martinl):
Replying to [comment:3 hellik]:
> Replying to [ticket:1692 hamish]:
> >
> > ps- we were also unable to download any of the addons directly with
the gui extension tool, although the zip files seem ok on the server. Is
it working for anyone with those 6.4.2-2 binaries?
>
> confirmed, unable to download
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by martinl):
Replying to [comment:6 hamish]:
> > we need to fix this ASAP as it takes out a bunch of the scripts,
> > including many of the v.db.* ones.
It seems to me that shell scripts don't work only if there are installed
as !AddOns. I think it's caused by the fact that shell script and bat
script are placed in the same directory. It's result of your wish [1]
which required extra hacking on g.extension side (it was the bad idea from
POV) and moreover produced this blocker. It would be nice to simplify
things and to complicated them when it's really not necessary. I hope that
it was fixed in r53428 in G65. Please could you try the next snapshot, at
least `v.random.cover` seems to work for me.
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: martinl
Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by hellik):
Replying to [comment:7 martinl]:
I hope that it was fixed in r53428 in G65. Please could you try the next
snapshot, at least `v.random.cover` seems to work for me.
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: martinl
Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by hellik):
Replying to [comment:10 martinl]:
>
> strange, tested with the same revision (both native and OSGeo4W)
>
> 1. `v.random.cover` reinstalled using wxGUI Extension Manager
> 1. the module runs without problems
>
maybe unrelated but deinstalling via wxgui-g.extension-manager seems not
to work, folder content after deinstalling
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: martinl
Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by hellik):
Replying to [comment:12 martinl]:
> Replying to [comment:11 hellik]:
>
> > maybe unrelated but deinstalling via wxgui-g.extension-manager seems
not to work, folder content after deinstalling
>
> this should be fixed in r53480
#1692: calling a script within a script failing on Windows XP
-----------------------------------------------------+----------------------
Reporter: hamish | Owner: martinl
Type: defect | Status: assigned
Priority: blocker | Milestone: 6.4.3
Component: Shell Scripts | Version: 6.4.2
Keywords: v.random.cover, wingrass, shell scripts | Platform: MSWindows XP
Cpu: x86-32 |
-----------------------------------------------------+----------------------
Comment(by martinl):
Replying to [comment:9 hellik]:
please try next build (G65), I hope that r53512 will be better.
{{{
v.random.cover cover=fields cat=63 output=cover n=500 raster=landcover.30m
--o
WARNING: Vrstva 1 - žádná tabulka
WARNING: Vektorová mapa <cover> již existuje a bude přepsána.
Created <cover> with 500 random points
ERROR: Vector map <> not found in current mapset
}}}