[GRASS-dev] [GRASS GIS] #1027: WinGrass7 + pythonhome/pythonpath

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
Reporter: hellik | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Keywords: wingrass, python | Platform: MSWindows Vista
      Cpu: x86-32 |
------------------------------+---------------------------------------------
with latest changes r41720, r41721, r41722 in trunk,

the WinGrass7-installation should be started by grass70.py through
grass70.bat.

tested with WinGRASS-7.0.SVN-r41722-1-Setup.exe, WinGrass isn't starting.

in grass70.bat, there is

{{{
rem Path to the python directory
set PYTHONHOME=%GRASSDIR%\Python25
if "x%GRASS_PYTHON%" == "x" set GRASS_PYTHON=python
}}}

but python.exe is installed in C:\Program Files\GRASS-70-SVN\extrabin.
only python-dll, -include, -lib, -Libs are installed in
%GRASSDIR%\Python25.

so maybe PYTHONHOME should be changed?

best regards
Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027&gt;
GRASS GIS <http://grass.osgeo.org>

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):

additionally I've seen in grass70.py

{{{
[...]
# Set the GISBASE variable
gisbase = "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-mingw32"
cmd_name = "grass70"
grass_version = "7.0.svn"
ld_library_path_var = 'PATH'
config_projshare = "/c/OSGeo4W/share/proj"
grass_config_dirname = ".grass7"
[...]
}}}

gisbase and config_projshare should reflect the installation-folder (i.e.
C:\Program Files\GRASS-70-SVN)

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):

Replying to [comment:1 hellik]:

> gisbase and config_projshare should reflect the installation-folder
(i.e. C:\Program Files\GRASS-70-SVN)
>

after correcting pythonhome,gisbase, config_projshare.

{{{
C:\Program Files\GRASS-70-SVN>grass70.bat -wx
Cleaning up temporary files ...
Starting GRASS ...
ERROR: wxGUI requires wxPython. No module named wxversion

Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.

Hit RETURN to continue...

Traceback (most recent call last):
   File "C:\Program Files\GRASS-70-SVN\grass70.py", line 909, in <module>
     set_data()
   File "C:\Program Files\GRASS-70-SVN\grass70.py", line 464, in set_data
     gui_startup()
   File "C:\Program Files\GRASS-70-SVN\grass70.py", line 488, in
gui_startup
     os.execlp(cmd_name, "-text")
   File "C:\Program Files\GRASS-70-SVN\Python25\lib\os.py", line 336, in
execlp
     execvp(file, args)
   File "C:\Program Files\GRASS-70-SVN\Python25\lib\os.py", line 353, in
execvp
     _execvpe(file, args)
   File "C:\Program Files\GRASS-70-SVN\Python25\lib\os.py", line 389, in
_execvpe
     func(fullname, *argrest)
OSError: [Errno 2] No such file or directory
}}}

but wxversion.py is in C:\Program Files\GRASS-70-SVN\Python25\Lib\

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):

Replying to [comment:2 hellik]:

> but wxversion.py is in C:\Program Files\GRASS-70-SVN\Python25\Lib\
>

sorry it's in C:\Program Files\GRASS-70-SVN\Python25\Lib\site-packages

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by glynn):

Replying to [ticket:1027 hellik]:

> so maybe PYTHONHOME should be changed?

No, we should just stop trying to "bundle" Python, and use the installer
instead.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):

Replying to [comment:4 glynn]:
> Replying to [ticket:1027 hellik]:
>
> > so maybe PYTHONHOME should be changed?
>
> No, we should just stop trying to "bundle" Python, and use the installer
instead.

FYI, I've searched through my WinVista32-box, there a few python copies on
my laptop, always shipped/bundled with a software (ArcGis 9.3, Scribus,
Inkscape, Osgeo4w,...).

Helmut

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1027: WinGrass7 + pythonhome/pythonpath
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Installation | Version: svn-trunk
Resolution: fixed | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Changes (by wenzeslaus):

  * status: new => closed
  * resolution: => fixed

Comment:

Start on MS Windows currently works, at least in general. Closing as
fixed. Please open a new issue if you encounter problems.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1027#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>