Opened 15 years ago
Closed 12 years ago
#1044 closed defect (fixed)
Crash on startup directly after install (wrong copy of python dll picked up)
Reported by: | jbdynamics | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.4.3 |
Component: | Python | Version: | 6.4.0 RCs |
Keywords: | wingrass | Cc: | |
CPU: | x86-64 | Platform: | MSWindows Vista |
Description
Debug information from console for GRASS 6.4.0 RC6 x64:
# Begin Shell output
Cleaning up temporary files ... Starting GRASS ... Traceback (most recent call last):
File "e:/GRASS-64/etc/wxpython/gis_set.py", line 863, in <module>
import gui_modules.gcmd as gcmd
File "c:\OSGeo4W\apps\grass\grass-6.4.0RC6\etc\wxpython\gui_modules\gcmd.py", line 43, in <module>
ImportError: DLL load failed: The specified procedure could not be found. Error in GUI startup. If necessary, please report this error to the GRASS developers. Switching to text mode now.
# end shell output
# begin Windows error pop-up window
GUI Window says: python.exe - Entry Point Not Found "The procedure entry point ?PyWinObject_AsHANDLE@@YAHPAU_object@@PAPAX@Z could not be located in the dynamic link library pywintypes25.dll."
# end pop-up window output
I do have Python 2.6 x86_64 installed on my Vista x64 Ultimate workstation, I do not know if that makes a difference. I also have cygwin (latest with almost every library in the Path environmental var), MinGW32 and 64 in the Path var. I do not know if that makes any difference, but I wanted to give all the possible installs that could be interfering with GRASS. Last note is that the TCL/TK GUI works great.
Change History (11)
comment:1 by , 14 years ago
Keywords: | wingrass added |
---|
comment:2 by , 14 years ago
comment:3 by , 13 years ago
Component: | Default → Python |
---|
Probably related to this issue highlighted by Glynn:
proposed patch:
Index: lib/init/init.bat =================================================================== --- lib/init/init.bat (revision 48378) +++ lib/init/init.bat (working copy) @@ -131,9 +131,9 @@ set PYTHONPATH=%PYTHONPATH%;%WINGISBASE%\etc\python;%WINGISBASE%\etc\wxpython -python "%GISBASE%/etc/wxpython/gis_set.py" +"%GRASS_PYTHON%" "%GISBASE%/etc/wxpython/gis_set.py" if %errorlevel% == 2 goto exitinit -python "%GISBASE%/etc/wxpython/wxgui.py" +"%GRASS_PYTHON%" "%GISBASE%/etc/wxpython/wxgui.py" goto exitinit
Hamish
comment:4 by , 13 years ago
Milestone: | 6.4.0 → 6.4.2 |
---|
comment:5 by , 13 years ago
Summary: | Crash on startup directly after install Grass-64 6.4 RC6 (Latest non-developmental build) → Crash on startup directly after install (wrong copy of python dll picked up) |
---|
follow-up: 7 comment:6 by , 12 years ago
Milestone: | 6.4.2 → 6.4.3 |
---|
The proposed patch has not been applied yet, any reason for that?
follow-up: 8 comment:7 by , 12 years ago
comment:8 by , 12 years ago
follow-up: 10 comment:9 by , 12 years ago
slightly more foolproof version of the patch applied in devbr6 as r55765.
I'm not sure if the default for %GRASS_PYTHON% should be "python.exe" or if just "python" is ok. After that is known I think it's ok to backport to relbr64.
Hamish
comment:10 by , 12 years ago
Replying to hamish:
I'm not sure if the default for %GRASS_PYTHON% should be "python.exe" or if just "python" is ok. After that is known I think it's ok to backport to relbr64.
Since it was "python" before it seems to be acceptable.
I have downloaded latest winGRASS-devbr (r55765) and it starts fine including the GUI. Please backport.
comment:11 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
ok, thanks. backport done w/ r55776.
wrt testing, note to be careful that (IIRC) init.bat is not used in all wingrass startup modes.
reopen if needed.
Hamish
Replying to jbdynamics:
closing the ticket?