Opened 10 years ago

Closed 10 years ago

#1535 closed defect (fixed)

winGRASS g.extension.py problems

Reported by: neteler Owned by: martinl
Priority: normal Milestone: 6.4.2
Component: wxGUI Version: 6.4.2 RCs
Keywords: g.extension, wingrass Cc: grass-dev@…
CPU: x86-32 Platform: MSWindows XP

Description

The new Python based g.extension in winGRASS 6.4.2RC3 is creating some (packaging?) problems:

  • the "find" button is not linked to python.exe, it asks which application to open for g.extension.py (see screenshot)
  • wget is not found (executing g.extension directly):
    (Mon Jan 16 10:32:57 2012)                                                      
    g.extension extension=database                                                  
    which: wget: unknown command
    GRASS_ADDON_PATH is not defined, installing to ~/.grass6/addons/
    The GRASS program path: [C:/Programmi/GRASS 6.4.SVN] contains a space. The build which follows will likely fail.
    The specified install path: [/c/Documents and Settings/netelerm.INTRA/.grass6/addons] contains a space. The build which follows will likely fail.
    The path to your GIS data: [C:\Documents and Settings\netelerm.INTRA\Documenti\grassdata] may contain a space. The build which follows will likely fail.
    Fetching <database> from GRASS-Addons SVN (be patient)...
    svn: URL 'http://svn.osgeo.org/grass/grass-
    addons/grass6/database/database' doesn't exist
    ERROR: GRASS Add-on database not found in repository or no network connection or another problem
    (Mon Jan 16 10:33:08 2012) Comando terminato (10 sec)                           
    
    

Attachments (1)

wingrass_gextensionpy_bug.png (23.9 KB ) - added by neteler 10 years ago.
.py not associated to python.exe (or the latter not found?)

Download all attachments as: .zip

Change History (10)

by neteler, 10 years ago

.py not associated to python.exe (or the latter not found?)

comment:1 by neteler, 10 years ago

Ops, I just wonder if the cool new Python g.extension is only available in GRASS 6.5/7?

comment:2 by hamish, 10 years ago

The GRASS program path: [C:/Programmi/GRASS 6.4.SVN] contains a space. The build which follows will likely fail.
The specified install path: [/c/Documents and Settings/netelerm.INTRA/.grass6/addons] contains a space. The build which follows will likely fail.
The path to your GIS data: [C:\Documents and Settings\netelerm.INTRA\Documenti\grassdata] may contain a space. The build which follows will likely fail.

afaik those warning messages only come from the shell script version(??). I did not want to make running it with paths containing spaces fatal in case somebody wanted to work on improving the make+spaces situation, but maybe we should to avoid lots of bug reports. I expect windows users to mostly spend their time in the wxgui so unless they are used to the unix version first they'd usually be steered to Martin's pre-built download modules. shrug.

wrt wget, is it not packaged?? I thought it was. or maybe curl is shipped instead? if wget is shipped maybe there's a path problem?

the python g.extension.py is in 6.4svn (it is what is shown in your screenshot). sorry I can't be much help with the .py file association errors.

g.extension ext=database ? is that to download and build all db addon modules??

Hamish

comment:3 by hamish, 10 years ago

Keywords: wingrass added

in reply to:  2 comment:4 by martinl, 10 years ago

Replying to hamish:

the python g.extension.py is in 6.4svn (it is what is shown in your screenshot). sorry I can't be much help with the .py file association errors.

strange I have tested latest 6.4svn and it works for me (stand-alone installer).

comment:5 by neteler, 10 years ago

I tried with the today's winGRASS6.4.svn:

g.extension.py extension=r.unpack svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
Extension <r.unpack> already installed. Re-installing...
Downloading precompiled GRASS Addons <r.unpack>...
ERROR: GRASS Addons <r.unpack> not found
(Tue Jan 24 23:53:57 2012) Comando terminato (3 sec)   

comment:6 by martinl, 10 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

in reply to:  5 ; comment:7 by martinl, 10 years ago

Replying to neteler:

I tried with the today's winGRASS6.4.svn:

> g.extension.py extension=r.unpack svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
> Extension <r.unpack> already installed. Re-installing...
> Downloading precompiled GRASS Addons <r.unpack>...
> ERROR: GRASS Addons <r.unpack> not found
> (Tue Jan 24 23:53:57 2012) Comando terminato (3 sec)   

Probably some problem with precompiled Addons binaries. Tested with the last build (1), seems to work. Could you test it again?

(1) http://wingrass.fsv.cvut.cz/grass64/WinGRASS-6.4.SVN-r50440-1-Setup.exe

in reply to:  7 ; comment:8 by hellik, 10 years ago

Replying to martinl:

Probably some problem with precompiled Addons binaries. Tested with the last build (1), seems to work. Could you test it again?

tested here with standalone wingrass6.4.3svn r52715

g.extension.py extension=r.pack svnurl=http://svn.osgeo.org/grass/grass-addons/grass6
Downloading precompiled GRASS Addons <r.pack>...
Updating metadata file...
Installation of <r.pack> successfully finished

at least installing addons works here on a win7-64bit-box.

closing ticket?

Helmut

in reply to:  8 comment:9 by hellik, 10 years ago

Resolution: fixed
Status: assignedclosed

Replying to hellik:

closing ticket?

seems to work now. closing ticket, reopen if needed.

Helmut

Note: See TracTickets for help on using tickets.