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: grass-dev@…
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 hellik, 14 years ago

Keywords: wingrass added

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

Replying to jbdynamics:

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.

closing the ticket?

comment:3 by hamish, 13 years ago

Component: DefaultPython

Probably related to this issue highlighted by Glynn:

http://article.gmane.org/gmane.comp.gis.grass.user/40977/

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 hamish, 13 years ago

Milestone: 6.4.06.4.2

comment:5 by hamish, 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)

comment:6 by neteler, 12 years ago

Milestone: 6.4.26.4.3

The proposed patch has not been applied yet, any reason for that?

in reply to:  6 ; comment:7 by hellik, 12 years ago

Replying to neteler:

The proposed patch has not been applied yet, any reason for that?

tested here locally with standalone wingrass6.4.3svn-r52715, wxgui starts

in reply to:  7 comment:8 by neteler, 12 years ago

Replying to hellik:

Replying to neteler:

The proposed patch has not been applied yet, any reason for that?

tested here locally with standalone wingrass6.4.3svn-r52715, wxgui starts

Hamish: ping...

comment:9 by hamish, 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

in reply to:  9 comment:10 by neteler, 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 hamish, 12 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.