Opened 17 years ago
Closed 17 years ago
#143 closed defect (fixed)
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@… | |
CPU: | Unspecified | Platform: | Unspecified |
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 (1)
Change History (14)
comment:1 by , 17 years ago
Cc: | added |
---|
comment:2 by , 17 years ago
Owner: | changed from | to
---|
comment:3 by , 17 years ago
Status: | new → assigned |
---|
comment:4 by , 17 years ago
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
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 comment:5 by , 17 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
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.
comment:6 by , 17 years ago
Milestone: | 6.3.0 → 6.3.1 |
---|---|
Version: | 6.3.0 RCs → 6.3.0 |
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 comment:7 by , 17 years ago
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.
comment:8 by , 17 years ago
Summary: | not possible to start -wxpython on windows → 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?
comment:9 by , 17 years ago
Hi Timmie,
please, try the patch attached. Let me know if it works.
Marco
follow-ups: 11 13 comment:10 by , 17 years ago
Hi, the patch worked well. Even applying it from the normal user account it works.
P.S: The new GUI is great!
comment:11 by , 17 years ago
Status: | reopened → 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?
comment:12 by , 17 years ago
Status: | new → assigned |
---|
comment:13 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
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
Replying to timmie:
Please, try it with the current WinGRASS release (6.3.0). Thanks
Marco