Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7971 > unrolled thread

Re: Python 2.7.2 for Windows reports version as 2.7.0?

Started bypython@bdurham.com
First post2011-06-19 11:35 -0400
Last post2011-06-19 11:35 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python 2.7.2 for Windows reports version as 2.7.0? python@bdurham.com - 2011-06-19 11:35 -0400

#7971 — Re: Python 2.7.2 for Windows reports version as 2.7.0?

Frompython@bdurham.com
Date2011-06-19 11:35 -0400
SubjectRe: Python 2.7.2 for Windows reports version as 2.7.0?
Message-ID<mailman.156.1308497747.1164.python-list@python.org>
Hi Mark,

> The version info comes from the DLL - I wonder if the DLL being found is somehow old?
>
> Make sure:
>
> >>> import sys
> >>> win32api.GetModuleFileName(sys.dllhandle)
>
> Is the DLL you expect.

After uninstalling and reinstalling for the current user only (vs. all
users), Python now reports the correct version number.

And running your code above confirms that the proper DLL is being loaded
(c:\Python27\Python27.dll).

My original version of Python 2.7.0 was installed for all users and when
I ran the 2.7.2 MSI I chose to install for all users as well.

After running the 2.7.2 MSI, my Python exe's had the correct timestamps,
but I failed to check the python27.dll timestamp to see if this file was
out-of-date.

I wonder if changing my install method to current user forced the
installation of the updated python27.dll? And perhaps the default 2.7.2
installation in all users mode (when one is updating an existing 2.7
installation) doesn't update the Python27.dll under some conditions?

Regards,
Malcolm

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web