[Bug 32449] Quantum GIS Lisboa 1.8.x fails to run (broken 'for' loop processing causes .bat files for setting up Python environment not run)

WineHQ Bugzilla wine-bugs at winehq.org
Tue Jan 21 14:00:58 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=32449

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Quantum GIS fails to load   |Quantum GIS Lisboa 1.8.x
                   |required libraries          |fails to run (broken 'for'
                   |(dogfood)                   |loop processing causes .bat
                   |                            |files for setting up Python
                   |                            |environment not run)
                URL|http://hub.qgis.org/project |https://web.archive.org/web
                   |s/quantum-gis/wiki/Download |/20120813121249/http://qgis
                   |                            |.org/downloads/QGIS-OSGeo4W
                   |                            |-1.8.0-1-Setup.exe
                 CC|                            |focht at gmx.net
           Keywords|Abandoned?                  |

--- Comment #13 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming, still present.

Stable link from Internet Archive:

https://web.archive.org/web/20120813121249/http://qgis.org/downloads/QGIS-OSGeo4W-1.8.0-1-Setup.exe

First, you need use 32-bit WINEPREFIX to work around bug 37789 ("Batch files
for 32-bit applications fail to run via 'cmd.exe /c' in 64-bit WINEPREFIX
('cmd.exe /c' misinterprets '(' and ')' characters in full script path name)")
when installing. Otherwise you end up with a broken installation, missing
post-install steps.

For testing the actual installation I found this:

https://gis.stackexchange.com/questions/30982/why-is-qgis-not-launching

--- snip ---
$ wine "c:\Program Files\Quantum GIS Lisboa\bin\nircmd.exe" exec hide
"c:\Program Files\Quantum GIS Lisboa\bin\qgis.bat"
--- snip ---

The app starts (splash screen is briefly shown) and then terminates silently
because it can't find Python site packages.

'c:\\Program Files\\Quantum GIS Lisboa\\bin\\qgis.bat':

--- snip ---
@echo off

SET OSGEO4W_ROOT=C:\PROG~FBU\QUAN~IR0
call "%OSGEO4W_ROOT%"\bin\o4w_env.bat
call "%OSGEO4W_ROOT%"\apps\grass\grass-6.4.2\etc\env.bat
@echo off
path
%PATH%;%OSGEO4W_ROOT%\apps\qgis\bin;%OSGEO4W_ROOT%\apps\grass\grass-6.4.2\lib
start "Quantum GIS" /B "%OSGEO4W_ROOT%"\apps\qgis\bin\qgis.exe %*
--- snip ---

'c:\\Program Files\\Quantum GIS Lisboa\\bin\\o4w_env.bat':

--- snip ---
@echo off
echo.
rem Make parent of this script location our current directory,
rem converting UNC path to drive letter if needed
pushd %~dp0
cd ..

set OSGEO4W_ROOT=%cd%
PATH=%OSGEO4W_ROOT%\bin;%PATH%
for %%f in ("%OSGEO4W_ROOT%"\etc\ini\*.bat) do call "%%f"
echo OSGEO4W home is %OSGEO4W_ROOT%
popd
--- snip ---

Relevant part cmd trace log:

--- snip ---
...
002d:trace:cmd:handleExpansion Translate command:L"for %f in
(\"C:\\PROG~FBU\\Quantum GIS Lisboa\"\\etc\\ini\\*.bat) do call \"%%f\"" 0 (at:
L"%%f\"")
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm: 'L"%f
in (\"C:\\PROG~FBU\\Quantum GIS Lisboa\"\\etc\\ini\\*.bat) do call \"%f\""'
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm: 'L"in
(\"C:\\PROG~FBU\\Quantum GIS Lisboa\"\\etc\\ini\\*.bat) do call \"%f\""'
002d:trace:cmd:WCMD_ReadAndParseLine Found 'IN '
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm:
'L"(\"C:\\PROG~FBU\\Quantum GIS Lisboa\"\\etc\\ini\\*.bat) do call \"%f\""'
002d:trace:cmd:WCMD_ReadAndParseLine Found '(' conditions: curLen(10), inQ(0),
onlyWS(1), for(1, In:1, Do:0), if(0, else:0, lwe:0)
002d:trace:cmd:WCMD_ReadAndParseLine Inside an IN
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm: 'L"GIS
Lisboa\"\\etc\\ini\\*.bat) do call \"%f\""'
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm:
'L"Lisboa\"\\etc\\ini\\*.bat) do call \"%f\""'
002d:trace:cmd:WCMD_ReadAndParseLine Found 'DO '
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm: 'L"call
\"%f\""'
002d:trace:cmd:WCMD_ReadAndParseLine Found 'FOR ', comparing next parm:
'L"\"%f\""'
002d:trace:cmd:WCMD_DumpCommands Parsed line:
002d:trace:cmd:WCMD_DumpCommands 001142E0 0 00 00114D10 L"for %f in " Redir:L""
002d:trace:cmd:WCMD_DumpCommands 00114D10 0 01 001153E0
L"\"C:\\PROG~FBU\\Quantum GIS Lisboa\"\\etc\\ini\\*.bat" Redir:L""
002d:trace:cmd:WCMD_DumpCommands 001153E0 0 01 00BD9BB0 (null) Redir:(null)
002d:trace:cmd:WCMD_DumpCommands 00BD9BB0 0 00 00000000 L"do call \"%f\""
Redir:L""
002d:trace:cmd:WCMD_process_commands Executing command: 'L"for %f in "'
002d:trace:cmd:WCMD_execute command on entry:L"for %f in " (00319764)
002d:trace:cmd:WCMD_execute Command: 'L"for %f in "'
002d:trace:cmd:handleExpansion Translate command:L"for %f in " 1 (at: L"%f in
")
002d:trace:cmd:WCMD_execute Not touching redirects for a FOR or IF command
002d:trace:cmd:WCMD_execute param1: L"%f", param2: L"in"
002d:trace:cmd:WCMD_for Variable identified as L"%f"
002d:trace:cmd:WCMD_for Searching 00114D10 as the set
002d:trace:cmd:WCMD_for Skipping 00114D10 which is part of the set
002d:trace:cmd:WCMD_for Looking for 'do ' in 00BD9BB0
002d:trace:cmd:WCMD_for Processing for set 00114D10
002d:trace:cmd:WCMD_for Processing for item 1 'L"\"C:\\PROG~FBU\\Quantum GIS
Lisboa\"\\etc\\ini\\*.bat"'
002d:trace:cmd:WCMD_for Post-command, cmdEnd = 00BD9BB0
002d:trace:cmd:WCMD_for Skipping for loop commands due to no valid iterations
002d:trace:cmd:WCMD_part_execute cmdList(003089C4), firstCmd(L"call \"%f\""),
doIt(0), isIF(0)
002d:trace:cmd:handleExpansion Translate command:L"echo OSGEO4W home is
%OSGEO4W_ROOT%" 0 (at: L"%OSGEO4W_ROOT%") 
...
--- snip ---

$ sha1sum QGIS-OSGeo4W-1.8.0-1-Setup.exe 
aec3e83a7d1a09a2e32dc3eeaddb639475b9f150  QGIS-OSGeo4W-1.8.0-1-Setup.exe

$ du -sh QGIS-OSGeo4W-1.8.0-1-Setup.exe 
128M    QGIS-OSGeo4W-1.8.0-1-Setup.exe

$ wine --version
wine-5.0-rc6

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list