Ticket #143 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

WinGRASS Installer fails retrieving the user name on some XP versions

Reported by: timmie Owned by: 4everskiff
Priority: major Milestone: 6.3.1
Component: Default Version: 6.3.0
Keywords: Cc: marco.pasetti@…
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 Download (71.9 KB) - added by 4everskiff 4 years ago.
WinGRASS-Bug143-Patch.exe

Change History

in reply to: ↑ description   Changed 4 years ago by 4everskiff

  • cc marco.pasetti@… added

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

  Changed 4 years ago by 4everskiff

  • owner changed from grass-dev@… to 4everskiff

  Changed 4 years ago by 4everskiff

  • status changed from new to assigned

in reply to: ↑ description   Changed 4 years ago 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   Changed 4 years ago by timmie

  • status changed from closed to reopened
  • resolution invalid 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   Changed 4 years ago 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   Changed 4 years ago 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   Changed 4 years ago 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   Changed 4 years ago by 4everskiff

Hi Timmie,

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

Marco

Changed 4 years ago by 4everskiff

WinGRASS-Bug143-Patch.exe

follow-ups: ↓ 11 ↓ 13   Changed 4 years ago 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   Changed 4 years ago 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?

  Changed 4 years ago by 4everskiff

  • status changed from new to assigned

in reply to: ↑ 10   Changed 4 years ago 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

Note: See TracTickets for help on using tickets.