[GRASS-dev] g.extension error installing addons I've written, what do I change?

Hi all,

I’ve been updating the addons I’ve written in GRASS6 to versions for GRASS7, and have been adding them to the GRASS7 addon svn, but it seems that I’m doing something wrong. The scripts all run fine from my own computer when I manually put them in my GRASS_ADDON_PATH, but when I, or others, try to install them from g.extension, we get the following error:

Fetching <r.catchment> from GRASS-Addons SVN repository (be patient)…
Compiling…
make: *** No rule to make target
/tmp/tmp3G3Iwq/r.catchment/scripts/r.catchment', needed by script’. Stop.
ERROR: Compilation failed, sorry. Please check above error messages.

Any other addons will install fine, including others that are also python scripts. This is happening with all three of the scrips I’ve converted so far (r.catchment, r.landscape.evol, and r.viewshed.cva). I’ve been using other python scripts in the addons svn as templates for the format of the makefile, html description, and the headers for my own scripts, but it seems like nothing I do is making this work properly.

Here is a link to the svn repo for my r.catchment script, which sets off the above error: https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.catchment

Here’s a link to the r.basins script, which is not mine, and does NOT set off the above error: https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.basin

Can anybody see what I am doing wrong here? Any help will be GREATLY appreciated!!!

···

Isaac I Ullah, Ph.D.

Arizona State University
School of Human Evolution and Social Change
PO Box 2402
Tempe, AZ 85287-2402
(480) 727-1054 office
(650) 201-0479 cell
iullah@asu.edu

Hi,

2015-02-25 20:26 GMT+01:00 Isaac Ullah <isaac.ullah@asu.edu>:

Fetching <r.catchment> from GRASS-Addons SVN repository (be patient)...
Compiling...
make: *** No rule to make target
`/tmp/tmp3G3Iwq/r.catchment/scripts/r.catchment', needed by
`script'. Stop.
ERROR: Compilation failed, sorry. Please check above error messages.

Python script must end with .py extension, fixed [1], now compiles [2].

Martin

[1] http://trac.osgeo.org/grass/changeset/64747
[2] http://grass.osgeo.org/addons/grass7/logs/r.catchment.log

--
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Ah! I just removed those extension because they were preventing it from running in previous version. Let me fix it on all my other scripts… Thanks!

···

On Wed, Feb 25, 2015 at 1:04 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2015-02-25 20:26 GMT+01:00 Isaac Ullah <isaac.ullah@asu.edu>:

Fetching <r.catchment> from GRASS-Addons SVN repository (be patient)…
Compiling…
make: *** No rule to make target
/tmp/tmp3G3Iwq/r.catchment/scripts/r.catchment', needed by script’. Stop.
ERROR: Compilation failed, sorry. Please check above error messages.

Python script must end with .py extension, fixed [1], now compiles [2].

Martin

[1] http://trac.osgeo.org/grass/changeset/64747
[2] http://grass.osgeo.org/addons/grass7/logs/r.catchment.log


Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa

Isaac I Ullah, Ph.D.

Arizona State University
School of Human Evolution and Social Change
PO Box 2402
Tempe, AZ 85287-2402
(480) 727-1054 office
(650) 201-0479 cell
iullah@asu.edu