[Python-bugs-list] [ python-Bugs-493837 ] Distutils not finding Python on Win2K
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 29 Jan 2002 11:34:21 -0800
Bugs item #493837, was opened at 2001-12-16 00:17
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=493837&group_id=5470
Category: Distutils
Group: Platform-specific
>Status: Closed
>Resolution: Works For Me
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Thomas Heller (theller)
Summary: Distutils not finding Python on Win2K
Initial Comment:
Thomas (or anyone else), can you help this fellow who
posted to the Tutor list? If there's a systematic
problem here with 2.2c1, we've only got a window of a
few days to fix it.
"""
From: tutor-admin@python.org [mailto:tutor-
admin@python.org]On Behalf Of Quniceleaf Listservs
Sent: Sunday, December 16, 2001 2:02 AM
To: tutor@python.org
Subject: [Tutor] Python not being found in the
registry?
I'm using Python 2.2c1 on a Win2K machine.
I've repeatedly tried installing two Python addons
from different sources (XIST and the MySQL-interface)
that each use a Windows installer program based on
distutils-1.0.2pre.
Both need to locate the Python installation before
proceeding with the setup, and will not allow the user
to browse and specify the location themselves.
Unfortunately, neither can ever find a Python
installation, and thus will not install.
I've tried this repeatedly with Python 2.1, 2.2b,
2.2c1, and with ActiveState's distribution. In each
case the installation is reflected in the Windows
registry, but only the ActiveState install appears in
the setup (and due to instability issues I am sticking
with the standard distribution).
Has anyone else encountered this problem?
- Brian
"""
Unfortunately, the Tutor list reports his email
address as listservb@quinceleaf.com, which doesn't
seem reasonable.
----------------------------------------------------------------------
>Comment By: Thomas Heller (theller)
Date: 2002-01-29 11:34
Message:
Logged In: YES
user_id=11105
This should have been closed some time ago.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2001-12-17 09:37
Message:
Logged In: YES
user_id=31435
Thanks, guys -- I think you've explained it. Feel free to
close this if you can't think of anything else to do
<wink> -- I don't have a way to contact the OP.
PythonLabs installers previous to 2.2 used a much older
version of Wise (dating back to when Win95 was brand new),
and there are many problems with Win2K installs, esp. under
non-Admin accounts; I've seen the bogus "corrupt
installation" msg myself. Nothing we can do about it, alas.
The 2.2 installer uses an up-to-date Wise, and the install
script was extensively reworked to support non-Admin
installs on Win2K; and you can use the "advanced options"
screen in the 2.2 installer to select a non-Admin install
even if you are an Admin (then it writes under HKCU instead
of HKLM, and stores DLLs in the Python root instead of in
the system dir).
----------------------------------------------------------------------
Comment By: Thomas Heller (theller)
Date: 2001-12-17 02:44
Message:
Logged In: YES
user_id=11105
I think MAL is right: It seems Brian is trying to install
XIST and MySQL, which are built for Python2.1 (only), and
the installer does not show (for purpose) the 2.2
installation.
Probably the installer should display a clear message to
the user if there are other Python versions not matching
the requirements for the package to install.
(But maybe also the packagers of packages should clearly
indicate that this is build for a certain Python version?)
The only other possibility could be that the bdist_wininst
installer does not work correctly if the registry entries
are under HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE.
The code is there - but how can I test it.
Tried to install python2.1.1 when using the Guest account
(Win2k, SP2), but all I get is 'corrupt installation
detected'. Is this a known problem?
----------------------------------------------------------------------
Comment By: M.-A. Lemburg (lemburg)
Date: 2001-12-17 01:28
Message:
Logged In: YES
user_id=38388
One problem could be that Brian is trying to install a binary for a
non-installed Python version on the machine. In that case,
the installer does not display any entries in the Python directory
selection box.
Another possibility is fixing the binaries to use the latest distutils
version available. Thomas Heller made some changes which solved a
few problems in distutils 1.0.3 AFAIR.
As a test I'd suggest to install egenix-mx-base on the machine and
see what you get (the installer for that package was built using
distutils 2.0.3).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=493837&group_id=5470