http://bugs.winehq.org/show_bug.cgi?id=32449
Bug #: 32449 Summary: QGIS err:module:import Product: Wine Version: 1.5.19 Platform: x86 URL: http://hub.qgis.org/projects/quantum-gis/wiki/Download OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: guy.roussin@teledetection.fr Classification: Unclassified
Created attachment 42810 --> http://bugs.winehq.org/attachment.cgi?id=42810 Error log when launching qgis 1.8.0-1 on wine 1.5.19
Hi,
QuantumGIS is an open source software which run very fine on linux. Today, i try the windows version on a quantal 32 bits chroot on my debian sid amd64.
http://qgis.org/downloads/QGIS-OSGeo4W-1.8.0-1-Setup.exe
I get this error when launching qgis :
(see attachment)
I get the same error with PlayOnLinux ...
Thank you,
Guy
http://bugs.winehq.org/show_bug.cgi?id=32449
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |NEW CC| |00cpxxx@gmail.com Summary|QGIS err:module:import |Quantum GIS fails to load | |required libraries | |(dogfood) Ever Confirmed|0 |1
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com 2012-12-14 21:29:43 CST --- I can confirm this issue in wine 1.5.19. The not found files are in the same directory of the application, I remember about a similar bug but I could not find it, I will try harder later.
http://bugs.winehq.org/show_bug.cgi?id=32449
--- Comment #2 from Guy Roussin guy.roussin@teledetection.fr 2012-12-19 11:21:39 CST --- Hi,
I think it's "only" a path problem. The error occur later if i run qgis from "c:/Program Files/Quantum GIS Lisboa/bin"
/--- (quantal)guy@pcplat53:~/.wine/drive_c/Program Files/Quantum GIS Lisboa/bin$ wine ../apps/qgis/bin/qgis.exe err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. wine: Call from 0x7b83b829 to unimplemented function msvcr90.dll._set_fmode, aborting wine: Unimplemented function msvcr90.dll._set_fmode called at address 0x7b83b829 (thread 0009), starting debugger... ... ---
I need to install vcrun2008 :
$ winetricks vcrun2008
and now i get some similar errors than in #1. But those dll are in other directories ...
/--- (quantal)guy@pcplat53:~/.wine/drive_c/Program Files/Quantum GIS Lisboa/bin$ wine ../apps/qgis/bin/qgis.exe err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. fixme:system:SetProcessDPIAware stub! fixme:wintab32:X11DRV_WTInfoW Return proper size fixme:win:FlashWindowEx 0x16aefd4 fixme:ntdll:NtLockFile I/O completion on lock not implemented yet ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files. ... err:module:import_dll Library libgrass_gis.6.4.2.dll (which is needed by L"C:\Program Files\Quantum GIS Lisboa\apps\qgis\bin\qgisgrass.dll") not found err:module:import_dll Library libgrass_vect.6.4.2.dll (which is needed by L"C:\Program Files\Quantum GIS Lisboa\apps\qgis\bin\qgisgrass.dll") not found err:module:import_dll Library libgrass_dbmibase.6.4.2.dll (which is needed by L"C:\Program Files\Quantum GIS Lisboa\apps\qgis\bin\qgisgrass.dll") not found err:module:import_dll Library libgrass_dbmiclient.6.4.2.dll (which is needed by L"C:\Program Files\Quantum GIS Lisboa\apps\qgis\bin\qgisgrass.dll") not found ... err:module:import_dll Library qgisgrass.dll (which is needed by L"C:\Program Files\Quantum GIS Lisboa\apps\qgis\plugins\grassrasterprovider.dll") not found ImportError: No module named site fixme:msvcrt:__clean_type_info_names_internal (0x287570) stub ---
Guy
http://bugs.winehq.org/show_bug.cgi?id=32449
--- Comment #3 from Austin English austinenglish@gmail.com 2012-12-19 12:00:15 CST --- (In reply to comment #2)
Hi,
I think it's "only" a path problem. The error occur later if i run qgis from "c:/Program Files/Quantum GIS Lisboa/bin"
/--- (quantal)guy@pcplat53:~/.wine/drive_c/Program Files/Quantum GIS Lisboa/bin$ wine ../apps/qgis/bin/qgis.exe err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. wine: Call from 0x7b83b829 to unimplemented function msvcr90.dll._set_fmode, aborting wine: Unimplemented function msvcr90.dll._set_fmode called at address 0x7b83b829 (thread 0009), starting debugger...
Please file a second bug for this.
http://bugs.winehq.org/show_bug.cgi?id=32449
--- Comment #4 from Guy Roussin guy.roussin@teledetection.fr 2012-12-19 12:30:01 CST --- Hi,
I think the problem is settings environment variables during installation of QGIS. I can now launch QGis when i fix some environment variables (i think there is more to fix).
[System\CurrentControlSet\Control\Session Manager\Environment] 1355941051 "PATH"=str(2):"C:\QGIS\bin;C:\QGIS\apps\msys\bin;C:\QGIS\apps\qgis\bin;C:\QGIS\apps\grass\grass-6.4.2\lib;C:\windows\system32;C:\windows;C:\windows\system32\wbem" "PYTHONHOME"="C:\QGIS\bin" "PYTHONPATH"="C:\QGIS\apps\Python27\Lib/"
Note : for easier job i reinstall qgis in "C:\QGIS" and i download and run the "Rapid Environment Editor"
Ok i open a new bug for the "Unimplemented function msvcr90.dll"
So this bug is not fixed but there is a workaround for people wanting to run this software ...
Guy
http://bugs.winehq.org/show_bug.cgi?id=32449
--- Comment #5 from Guy Roussin guy.roussin@teledetection.fr 2012-12-19 15:11:33 CST --- Created attachment 42863 --> http://bugs.winehq.org/attachment.cgi?id=42863 batch file from qgis which append a variable at the end of PATH
Hi,
For example, i think this batch file is not doing is job correctly under wine. I test it and it seems it does not recognize correctly "if not defined" So it exits quickly without appending the variable at the end of path.
Guy
http://bugs.winehq.org/show_bug.cgi?id=32449
Andreas Hermann Braml andreas@braml.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |andreas@braml.org
--- Comment #6 from Andreas Hermann Braml andreas@braml.org 2012-12-19 16:37:32 CST --- If the error is with the batch file, component is most likely cmd.
http://bugs.winehq.org/show_bug.cgi?id=32449
Guy Roussin guy.roussin@teledetection.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |cmd
--- Comment #7 from Guy Roussin guy.roussin@teledetection.fr 2012-12-20 05:39:02 CST --- Changing component to cmd
http://bugs.winehq.org/show_bug.cgi?id=32449
Jason Edmeades us@edmeades.me.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |us@edmeades.me.uk
--- Comment #8 from Jason Edmeades us@edmeades.me.uk 2012-12-21 16:21:46 CST --- Guy, can you please expand on exactly how you got to that batch pgm, when you think it runs as part of the process.
Note it doesnt surprise me that it fails as part of that batch program relies on delayed expansion, which is the only bit of functionality that I am aware of that is missing from cmd at the moment - something I plan to resolve next, although it'll probably be the new year before I start on this not I have the set/a stuff in today :-)
However, I traced the installer (WINEDEBUG=+cmd wine QGIS....exe) and it doesnt call that batch. addpath is added post install, so whilst it may be run as part of the main launch, it isnt setting the registry wrong at install time per-se. (I checked and it didnt mention addpath anywhere in the postinstall script run)
Also that script only modifies the current environment so it feels like its used during the launch of something. I note the icons, for example, launch grass64.bat (with e.g. -text)
So basically, are you sure its the installer that should set these, rather than the launcher of the program, and is it all 3 that are missing (PYTHONHOME, PYTHONPATH, PATH). For someone who has never seen this software, if I run the installer, what do I run next from the command prompt (and from where) and what should I see if its working (I assume I can set those variables as described, and I should see the working case).
http://bugs.winehq.org/show_bug.cgi?id=32449
--- Comment #9 from Guy Roussin guy.roussin@teledetection.fr 2012-12-24 11:00:22 CST --- Thank you Jason for your quick answer.
I think you are right. addpath seems not use during installation.
The main program is launch with "%OSGEO4W_ROOT%"\bin\qgis.bat with %OSGEO4W_ROOT% = install path (i use c:\qgis\bin\qgis.bat)
I notice that only PYTHONPATH is required to start bin/qgis.bat (no need PYTHONHOME or PATH) You only need this to start qgis (wine 1.5.20): PYTHONPATH=c:\QGIS\apps\Python27\Lib;c:\QGIS\apps\Python27\Lib\site-packages
I notice also that i need to edit qgis.bat because the start command do not accept syntax : start "xxx" /B file.bat but start /B file.bat
i add echo %PATH% to qgis.bat and it seems that PATH is correct (i don't try with spaces in paths)
Thank you again.
http://bugs.winehq.org/show_bug.cgi?id=32449
--- Comment #10 from Jason Edmeades us@edmeades.me.uk 2013-01-13 17:58:45 CST --- FYI I am looking through this at the moment, although I'm not quite sure what I am supposed to be running. In the root dir is installed a batch program which does call the addpath one you list below which shows a number of problems with wine, so I am focussing on getting those going. Note you will also need a findstr.exe from windows for now to get this going even when I've fixed the cmd issues I can see.
Can you please raise a separate bug for this issue
start "xxx" /B file.bat fails
I cant see who should be setting the python path you refer to although its not my priority at the moment as I can see enough bugs to be getting on with. I'll get those into the product and get you to retest!
https://bugs.winehq.org/show_bug.cgi?id=32449
Kaipeng Zeng kaipeng94@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kaipeng94@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=32449
Ken Sharp imwellcushtymelike@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Abandoned?
--- Comment #11 from Ken Sharp imwellcushtymelike@gmail.com --- Does this still occur in Wine 1.7.44 or later?
https://bugs.winehq.org/show_bug.cgi?id=32449
exposight exposight@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |exposight@gmail.com
--- Comment #12 from exposight exposight@gmail.com --- Still an issue in wine 4.18.
Seems like an issue in 'bat' handling, and also mentioned "%OSGEO4W_ROOT%"\bin\qgis.bat is not present after install. Setup fails to prepate all the 'bat' files needed to start the application - they set library search paths.
https://bugs.winehq.org/show_bug.cgi?id=32449
Anastasius Focht focht@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@gmx.net Keywords|Abandoned? |
--- Comment #13 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming, still present.
Stable link from Internet Archive:
https://web.archive.org/web/20120813121249/http://qgis.org/downloads/QGIS-OS...
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
https://bugs.winehq.org/show_bug.cgi?id=32449
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #14 from Vijay Kamuju infyquest@gmail.com --- can you please test this with 9.12?