http://bugs.winehq.org/show_bug.cgi?id=13844
Summary: pywin32 cannot be installed Product: Wine Version: 1.0-rc4 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: kirr@landau.phys.spbu.ru
Pywin32-211 cannot be installed - it just eat 100% cpu and never finishes.
Wine ver: c959867510703a100106f292cd26cb8f489236bb (post 1.0-rc4)
Here are the steps how to reproduce it:
$ export WINEPREFIX=`pwd`/bug.pywin32 $ wget -c http://www.python.org/ftp/python/2.5.2/python-2.5.2.msi $ wget -c http://downloads.sourceforge.net/pywin32/pywin32-211.win32-py2.5.exe $ wineboot -i $ msiexec /i python-2.5.2.msi /qb
This initilizes wine instance and installs python into it.
Let's try to install pywin32:
$ wine pywin32-211.win32-py2.5.exe
Oops, it eats 100% cpu and spawns new and new processes (pid of pywin32.exe changes) and never completes.
On Windows XP pywin32-211.win32-py2.5.exe installs fine.
Thanks beforehand.
http://bugs.winehq.org/show_bug.cgi?id=13844
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://downloads.sourceforge | |.net/pywin32/pywin32- | |211.win32-py2.5.exe Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=13844
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer, source
http://bugs.winehq.org/show_bug.cgi?id=13844
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Jeff Zaroyko jeffz@jeffz.name 2008-11-28 15:37:20 --- confirming with Wine 1.1.9
http://bugs.winehq.org/show_bug.cgi?id=13844
Alexander Wauck awauck@gac.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |awauck@gac.edu
--- Comment #2 from Alexander Wauck awauck@gac.edu 2009-02-01 22:17:29 --- Confirming with Wine 1.1.14. I've seen at least one howto that describes installing pywin32 (the same version I'm trying to install) on Wine. I wonder if the other people who are having problems are on AMD64. I'll give it a try on a 32-bit machine and see what happens.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #3 from Alexander Wauck awauck@gac.edu 2009-02-01 22:59:24 --- This bug also occurs with Wine 1.0.1 on 32-bit Ubuntu (run in a virtual machine on 64-bit Ubuntu).
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #4 from Alexander Wauck awauck@gac.edu 2009-02-01 23:10:49 --- I tried running with WINEDEBUG="wine+all". Naturally, there was a lot of repeated output, but I have attached what seems to be all of the unique output.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #5 from Alexander Wauck awauck@gac.edu 2009-02-01 23:11:34 --- Created an attachment (id=19191) --> (http://bugs.winehq.org/attachment.cgi?id=19191) Log of errors when running pywin32 installer
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #6 from Alexander Wauck awauck@gac.edu 2009-02-01 23:32:58 --- I tried using winedbg, and the most relevant-looking bit is this: 00000017:00000018: exception code=0x80000003 warning: Target reported unsupported offsets: Text=00000040;Data=0032fc4c;Bss=b7ecb0e3
I have no idea what that means, though.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #7 from Alexander Wauck awauck@gac.edu 2009-02-01 23:56:37 --- Created an attachment (id=19195) --> (http://bugs.winehq.org/attachment.cgi?id=19195) Trace of pywin32 installer failing
Unzipped, it's 8.6 MB. I suspect it repeats itself. A lot. If I figure out where it repeats, I'll attach a condensed version.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #8 from Alexander Wauck awauck@gac.edu 2009-02-02 00:00:28 --- Created an attachment (id=19198) --> (http://bugs.winehq.org/attachment.cgi?id=19198) Condensed (maybe) version of failure trace
I *think* this is the entirety of it. I'm not certain that I haven't cut out anything important, though.
http://bugs.winehq.org/show_bug.cgi?id=13844
Alexander Wauck awauck@gac.edu changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #19198|0 |1 is obsolete| |
--- Comment #9 from Alexander Wauck awauck@gac.edu 2009-02-02 00:23:33 --- Created an attachment (id=19200) --> (http://bugs.winehq.org/attachment.cgi?id=19200) The part of the trace corresponding to the actual run of the installer process
After some more in-depth analysis, this part seems to be the actual running of the program.
http://bugs.winehq.org/show_bug.cgi?id=13844
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #10 from Dan Kegel dank@kegel.com 2009-05-01 06:12:23 --- Same thing happens with current python 2.6 and its matching pywin32. The important bit from your log seems to be
0009:Call KERNEL32.GetModuleHandleA(7c37f0c0 "mscoree.dll") ret=7c348ce0 0009:Ret KERNEL32.GetModuleHandleA() retval=00000000 ret=7c348ce0 0009:Call KERNEL32.ExitProcess(00000000) ret=7c348d04
It's trying to see if mscoree.dll is already loaded, and if it isn't, it exits. Oddly enough, once when I ran winetricks dotnet20, twisted's installer immediately popped up its gui from a previous run! Go figure.
According to http://starship.python.net/crew/mhammond/win32/Downloads.html, the pywin32 installer is built using distutils (!). Sure enough, distutils seems to be able to build both msi and .exe installers. So maybe the thing to do is to try building a distutils installer for "hello, world" and see if that works.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #11 from Dan Kegel dank@kegel.com 2009-05-01 06:18:16 --- http://docs.python.org/distutils/introduction.html#a-simple-example shows how to create a .exe installer for a python app. It looks pretty easy.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #12 from Dan Kegel dank@kegel.com 2009-05-01 11:12:18 --- OK, the mscoree thing is a canard, see http://bugs.winehq.org/show_bug.cgi?id=6880#c7
It turns out that setting win2k mode some time after the install seemingly exited really does let the install complete!
So the recipe is:
rm -rf ~/.wine wine msiexec /i python-2.6.2.msi /qb wine pywin32-212.win32-py2.6.exe ls ~/.wine/drive_c/windows/temp/ and notice how it's filling up with little temp files; each one represents one retry of something sh winetricks win2k
You could probably set win2k mode beforehand, it's just fun to watch it work after the fact like that. The log file in the bad case shows
1908f:Call KERNEL32.GetPrivateProfileStringA(00408f58 "Setup",00409448 "user_access_control",00408514 "",00410a30,0000000a,00531430 "C:\windows\temp\~duc5ab.tmp") ret=004046a5 1908f:Ret KERNEL32.GetPrivateProfileStringA() retval=00000004 ret=004046a5 1908f:Call KERNEL32.GetVersionExA(0033edbc) ret=0040356b 1908f:Ret KERNEL32.GetVersionExA() retval=00000001 ret=0040356b 1908f:Call KERNEL32.LoadLibraryA(00408594 "shell32.dll") ret=004034b9 1908f:Ret KERNEL32.LoadLibraryA() retval=7e7f0000 ret=004034b9 1908f:Call KERNEL32.GetProcAddress(7e7f0000,00408f48 "IsUserAnAdmin") ret=004034cc 1908f:Ret KERNEL32.GetProcAddress() retval=00000000 ret=004034cc 1908f:Call advapi32.RegOpenKeyExA(80000002,0033ee00 "Software\Python\PythonCore\2.6\InstallPath",00000000,00020019,0033edfc) ret=00403525 ...
but in the good case shows 19099:Call KERNEL32.GetPrivateProfileStringA(00408f58 "Setup",00409448 "user_access_control",00408514 "",00410a30,0000000a,00531430 "C:\windows\temp\~duc9c4.tmp") ret=004046a5 19099:Ret KERNEL32.GetPrivateProfileStringA() retval=00000004 ret=004046a5 19099:Call KERNEL32.GetVersionExA(0033edbc) ret=0040356b 19099:Ret KERNEL32.GetVersionExA() retval=00000001 ret=0040356b 19099:Call KERNEL32.GetModuleHandleA(00000000) ret=00402607 19099:Ret KERNEL32.GetModuleHandleA() retval=00400000 ret=00402607 19099:Call user32.LoadCursorA(00000000,00007f00) ret=00402619 19099:Ret user32.LoadCursorA() retval=000010de ret=00402619 19099:Call gdi32.CreateSolidBrush(00800000) ret=00402627 19099:Ret gdi32.CreateSolidBrush() retval=0000030c ret=00402627 19099:Call user32.RegisterClassA(0033de20) ret=0040263f ...
It'd be interesting to see if that also affected a "hello, world" distutils installer.
http://bugs.winehq.org/show_bug.cgi?id=13844
--- Comment #13 from Kirill Smelkov kirr@landau.phys.spbu.ru 2009-05-01 15:18:57 --- Dan, thanks for your analysis.
I've built a hello world .exe installer on Linux from the follwing:
---- 8< (hello) ---- #!/usr/bin/env python
print 'Hello World!' ---- 8< ----
---- 8< (setup.py) ---- from distutils.core import setup
setup(name='hello-bdist_wininst', version='1.0', scripts=['hello'], ---- 8< ----
With
$ python setup.py bdist_wininst
And no, hello-bdist_wininst-1.0.win32.exe installs without a problem on wine, both xp and win2k.
I also confirm that pywin installs on wine/2k but has problems on wine/xp.
http://bugs.winehq.org/show_bug.cgi?id=13844
Louis Lenders xerox_xerox2000@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox_xerox2000@yahoo.co.uk
--- Comment #14 from Louis Lenders xerox_xerox2000@yahoo.co.uk 2009-05-01 17:00:02 --- (In reply to comment #13)
Dan, thanks for your analysis.
I've built a hello world .exe installer on Linux from the follwing:
---- 8< (hello) ---- #!/usr/bin/env python
print 'Hello World!' ---- 8< ----
---- 8< (setup.py) ---- from distutils.core import setup
setup(name='hello-bdist_wininst', version='1.0', scripts=['hello'], ---- 8< ----
With
$ python setup.py bdist_wininst
And no, hello-bdist_wininst-1.0.win32.exe installs without a problem on wine, both xp and win2k.
I also confirm that pywin installs on wine/2k but has problems on wine/xp.
i'M not sure if i downoladed the rigfht executables, but afaics the problem i saw with this app is in shell32 ( ShellExecuteA). Using a native shell32.dldl th e app install fine, ShelllEecureA seems to fail somehow hre
http://bugs.winehq.org/show_bug.cgi?id=13844
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #15 from Austin English austinenglish@gmail.com 2010-09-20 23:46:32 CDT --- Installs fine for me in wine-1.3.3-65-ga862b95 in winxp mode.
http://bugs.winehq.org/show_bug.cgi?id=13844
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org 2010-10-01 13:56:33 CDT --- Closing bugs fixed in 1.3.4.
http://bugs.winehq.org/show_bug.cgi?id=13844
Sven Ehret sven@miezekator.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sven@miezekator.de