Opened 14 years ago

Closed 9 years ago

#1027 closed defect (fixed)

WinGrass7 + pythonhome/pythonpath

Reported by: hellik Owned by: grass-dev@…
Priority: normal Milestone: 7.0.0
Component: Installation Version: svn-trunk
Keywords: wingrass, python Cc:
CPU: x86-32 Platform: MSWindows Vista

Description

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

Change History (6)

comment:1 by hellik, 14 years ago

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

in reply to:  1 ; comment:2 by hellik, 14 years ago

Replying to 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

in reply to:  2 comment:3 by hellik, 14 years ago

Replying to 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

in reply to:  description ; comment:4 by glynn, 14 years ago

Replying to hellik:

so maybe PYTHONHOME should be changed?

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

in reply to:  4 comment:5 by hellik, 14 years ago

Replying to glynn:

Replying to 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

comment:6 by wenzeslaus, 9 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.