Opened 15 years ago
Closed 10 years ago
#1027 closed defect (fixed)
WinGrass7 + pythonhome/pythonpath
Reported by: | hellik | Owned by: | |
---|---|---|---|
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)
follow-up: 2 comment:1 by , 15 years ago
follow-up: 3 comment:2 by , 15 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
comment:3 by , 15 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
follow-up: 5 comment:4 by , 15 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.
comment:5 by , 15 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 , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Start on MS Windows currently works, at least in general. Closing as fixed. Please open a new issue if you encounter problems.
additionally I've seen in grass70.py
gisbase and config_projshare should reflect the installation-folder (i.e. C:\Program Files\GRASS-70-SVN)
Helmut