[Python-Dev] installer difficulties

Tim Peters tim_one@email.msn.com
Sun, 24 Sep 2000 13:55:15 -0400


[posted & mailed]

[Greg Wilson]
> I just ran the "uninstall" that comes with BeOpen-Python-2.0b1.exe (the
> September 8 version), then re-ran the installer.  A little dialog came up
> saying "Corrupt installation detected", and the installer exits. Deleted
> all of my g:\python2.0 files, all the registry entries, etc. --- same
> behavior.
>
> 1. What is it looking at to determine whether the installation is
>    corrupt?

While I built the installer, I have no idea!  It's an internal function of
the Wise software, and-- you guessed it <wink> --that's closed-source.  I
*believe* it's failing an internal consistency check, and that's all.

>    The installer itself, or my hard drive?  (If the former, my copy
>    of the downloaded installer is 5,970,597 bytes long.)

That is the correct size.

> 2. What's the fix?

Dunno.  It's a new one on me, and I uninstall and reinstall many times each
week.  Related things occasionally pop up on Python-Help, and is usually
fixed there by asking the victim to try downloading again with some other
program (Netscape instead of IE, or vice versa, or FTP, or GetRight, ...).

Here's a better check, provided you have *some* version of Python sitting
around:

>>> path = "/updates/BeOpen-Python-2.0b1.exe" # change accordingly
>>> import os
>>> os.path.getsize(path)
5970597
>>> guts = open(path, "rb").read()
>>> len(guts)
5970597
>>> import sha
>>> print sha.new(guts).hexdigest()
ef495d351a93d887f5df6b399747d4e96388b0d5
>>>

If you don't get the same SHA digest, it is indeed corrupt despite having
the correct size.  Let us know!