This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Windows installers for 2.7.3 don't install python27.dll correctly
Type: behavior Stage:
Components: Windows Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, christian.heimes, keith969, loewis
Priority: normal Keywords:

Created on 2012-12-19 11:30 by keith969, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg177736 - (view) Author: Keith Sabine (keith969) Date: 2012-12-19 11:30
The windows installers for Python 2.7.3 do not install the required python27.dll correctly.

The Windows x86 MSI Installer (2.7.3) does not install a 32 bit python27.dll in windows\system32 at all.

The Windows x86-64 MSI Installer (2.7.3) installs a 64 bit python27.dll in windows\system32, NOT in windows\SysWOW64 as it should.

The python27.dll should be kept in the python DLLs directory for both 32 and 64 bit versions, so users can clean up the mess if they need to...
msg177754 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2012-12-19 16:13
Did you select an option like "install for all users"/"install just for me" at some point?
msg177757 - (view) Author: Keith Sabine (keith969) Date: 2012-12-19 16:29
I selected "install for all users", even though there is only one...
msg177823 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2012-12-20 14:11
On my Windows box the 32bit python27.dll is in C:\Windows\System32\ and the 64bit DLL is in c:\Windows\SysWOW64\. Can you recall the installation order, did you install the 32 or 64bit version first? Did you choose "install for all users" for both installations? Which version of Windows are you running (release and service pack)?

For some applications like COM the DLL must be installed the system directory.
msg177826 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2012-12-20 14:43
Are you sure that the file in SysWOW64 is a 64-bit binary? On Win64, system32 contains the 64-bit DLLs, and SysWOW64 contains the 32-bit DLLs:

http://en.wikipedia.org/wiki/WoW64#Registry_and_file_system

Indeed, on my system, it's exactly reversed to what Christian reports.

I'm closing this report as invalid: I can't see a problem in Keith original message. *Of course* the x86 installer won't install to system32 on a Win64 system; this is correct behavior. Of course, the 64-bit installer should install to system32, this is what it should do. It should *not* install to SysWOW64.
msg177827 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2012-12-20 14:52
No, I'm not sure. I peaked into python27.dll in system32 and saw that it refers to kernel32.dll. I guess I made the wrong conclusion ... You have to admit that the naming convention is a tiny bit confusion. ;)
msg177828 - (view) Author: Keith Sabine (keith969) Date: 2012-12-20 15:23
Well all I can say is having installed BOTH the 32 and 64 bit versions, I found I only had the 32 bit dll installed.

I can raise a second issue for the request to put a copy of the dll in the DLL directory, so that it's easier to locate the correct dll if needed to ship with an embedded python application.
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60931
2012-12-20 15:23:32keith969setmessages: + msg177828
2012-12-20 14:52:39christian.heimessetmessages: + msg177827
2012-12-20 14:43:17loewissetstatus: open -> closed
resolution: not a bug
messages: + msg177826
2012-12-20 14:11:36christian.heimessetnosy: + loewis, christian.heimes
type: behavior
messages: + msg177823
2012-12-19 16:29:32keith969setmessages: + msg177757
2012-12-19 16:13:34amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg177754
2012-12-19 11:30:49keith969create