[python-win32] Re: Installing Build 202 with Python 2.4a1
Paul Moore
pf_moore at yahoo.co.uk
Fri Jul 9 22:10:56 CEST 2004
"Moore, Paul" <Paul.Moore at atosorigin.com> writes:
> From: Tony Meyer
>> Has anyone else had troubles using the Build 202 installer with
>> Python 2.4a1? It all goes nicely for me until the end, when I
>> get:
> [...]
>
> I got the same problem. Haven't had a chance to look into it yet.
Looks like the following bit of code from the postinstall script is at
fault:
try:
# When this script is run from inside the bdist_wininst installer,
# file_created() and directory_created() are additional builtin
# functions which write lines to Python23\pywin32-install.log. This is
# a list of actions for the uninstaller, the format is inspired by what
# the Wise installer also creates.
file_created
except NameError:
def file_created(file):
pass
def directory_created(directory):
pass
def get_root_hkey():
try:
_winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE,
root_key_name, _winreg.KEY_CREATE_SUB_KEY)
return _winreg.HKEY_LOCAL_MACHINE
except OSError, details:
# Either not exist, or no permissions to create subkey means
# must be HKCU
return _winreg.HKEY_CURRENT_USER
I can only assume from this that the bdist_wininst installer for 2.4
doesn't provide the same set of "extra builtins" as the one for 2.3
and earlier.
Paul.
--
A little inaccuracy sometimes saves tons of explanation -- Saki
More information about the Python-win32
mailing list