Ticket #143 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

WinGRASS Installer fails retrieving the user name on some XP versions

Reported by: timmie Assigned to: 4everskiff
Priority: major Milestone: 6.3.1
Component: default Version: 6.3.0
Keywords: Cc: marco.pasetti@alice.it
Platform: CPU:

Description

On [New GRASS Python GUI - http://grass.itc.it/grass63/binary/mswindows/native/#New%20GRASS%20Python%20GUI] it says that I need just to type grass63 -wxpython in a Mingw32Shell. When I doo this the shell reports "sh: grass63: command not found".

I suppose that a shell script for starting Grass is missing.

Using Windowws XP and the installer with RC6

Attachments

WinGRASS-Bug143-Patch.exe (71.9 kB) - added by 4everskiff on 04/29/08 05:42:50.
WinGRASS-Bug143-Patch.exe

Change History

(in reply to: ↑ description ) 04/25/08 06:16:07 changed by 4everskiff

  • cc set to marco.pasetti@alice.it.

Replying to timmie:

On [New GRASS Python GUI - http://grass.itc.it/grass63/binary/mswindows/native/#New%20GRASS%20Python%20GUI] it says that I need just to type grass63 -wxpython in a Mingw32Shell. When I doo this the shell reports "sh: grass63: command not found". I suppose that a shell script for starting Grass is missing. Using Windowws XP and the installer with RC6

Please, try it with the current WinGRASS release (6.3.0). Thanks

Marco

04/25/08 07:25:15 changed by 4everskiff

  • owner changed from grass-dev@lists.osgeo.org to 4everskiff.

04/25/08 07:25:30 changed by 4everskiff

  • status changed from new to assigned.

(in reply to: ↑ description ) 04/26/08 09:36:45 changed by 4everskiff

  • status changed from assigned to closed.
  • resolution set to invalid.

Replying to timmie:

On [New GRASS Python GUI - http://grass.itc.it/grass63/binary/mswindows/native/#New%20GRASS%20Python%20GUI] it says that I need just to type grass63 -wxpython in a Mingw32Shell. When I doo this the shell reports "sh: grass63: command not found". I suppose that a shell script for starting Grass is missing. Using Windowws XP and the installer with RC6

I check it out on another XP machine, and it works fine with current GRASS release (WinGRASS 6.3.0). Invalid bug. Ticket closed.

Marco

(follow-up: ↓ 6 ) 04/28/08 05:13:10 changed by timmie

  • status changed from closed to reopened.
  • resolution deleted.

This is still not working here. I did a new install of 6.3.0 when logged in as Administrator.

Reproduce: 1) open Mingw32 Shell from start menu 2) type grass63 => result sh: grass63: command not found 3) type grass63 -wxpython => same result as in 2)

note that the 6.3.0 installer did also not set up the sample location.

(in reply to: ↑ 5 ) 04/28/08 05:24:00 changed by 4everskiff

  • version changed from 6.3.0 RCs to 6.3.0.
  • milestone changed from 6.3.0 to 6.3.1.

Replying to timmie:

This is still not working here. I did a new install of 6.3.0 when logged in as Administrator. Reproduce: 1) open Mingw32 Shell from start menu 2) type grass63 => result sh: grass63: command not found 3) type grass63 -wxpython => same result as in 2) note that the 6.3.0 installer did also not set up the sample location.

Could you give me please some information about your system configuration? such as your %userprofile% variable?

Marco

(follow-ups: ↓ 8 ↓ 9 ) 04/29/08 03:39:05 changed by timmie

M:\>echo %userprofile% C:\Dokumente und Einstellungen\timmie

I am using XP. German version.

python is installed to c:\python and is included in %Path%

Please tell me if you'd need more information.

(in reply to: ↑ 7 ) 04/29/08 04:22:52 changed by 4everskiff

  • summary changed from not possible to start -wxpython on windows to WinGRASS Installer fails retrieving the user name on some XP versions.

Replying to timmie:

M:\>echo %userprofile% C:\Dokumente und Einstellungen\timmie I am using XP. German version. python is installed to c:\python and is included in %Path% Please tell me if you'd need more information.

Hi Timmie,

I've got the problem.

I must use a walkaround in the installer script, because the script engine is not able to retrive the name of the account in use during install procedure; since that, the installer script defines the user name from its %userprofile% variable, simply removing the "Documents and Settings\" from it... but I thought that every version of XP had "Documents and Settings\" as *user profiles root* (as my italian XP version has, though).... but it is not!!

This said, if the installer script cannot create the correct %username% folder in "..\GRASS\msys\home\", at the same time it cannot create the grass63 file (needed to launch GRASS from the msys shell).

I must work on it, finding how to retrieve the user name variable with NSIS. I'll do it from the next GRASS release. If you tell me where did you installed GRASS I'll send you the correct grass63 file to let you launch GRASS from msys shell.

Marco

PS: did you subscribed the grass-dev mailing list?

(in reply to: ↑ 7 ) 04/29/08 05:42:07 changed by 4everskiff

Hi Timmie,

please, try the patch attached. Let me know if it works.

Marco

04/29/08 05:42:50 changed by 4everskiff

  • attachment WinGRASS-Bug143-Patch.exe added.

WinGRASS-Bug143-Patch.exe

(follow-ups: ↓ 11 ↓ 13 ) 04/29/08 07:01:43 changed by timmie

Hi, the patch worked well. Even applying it from the normal user account it works.

P.S: The new GUI is great!

(in reply to: ↑ 10 ) 04/29/08 07:13:11 changed by 4everskiff

  • status changed from reopened to new.

Replying to timmie:

Hi, the patch worked well. Even applying it from the normal user account it works. P.S: The new GUI is great!

Good. I'll modify the installer script for the next release. (or should I reupload the installer modified since now?)

Markus?

05/02/08 04:34:01 changed by 4everskiff

  • status changed from new to assigned.

(in reply to: ↑ 10 ) 05/02/08 04:35:35 changed by 4everskiff

  • status changed from assigned to closed.
  • resolution set to fixed.

Replying to timmie:

Hi, the patch worked well. Even applying it from the normal user account it works. P.S: The new GUI is great!

OK. I uploaded the new installer (fixed) and updated the installer script in the SVN win32 folder.

Marco