[ python-Bugs-1234850 ] Admin privs required for Windows?

SourceForge.net noreply at sourceforge.net
Mon Jul 11 18:55:02 CEST 2005


Bugs item #1234850, was opened at 2005-07-08 17:52
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1234850&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Distutils
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Nobody/Anonymous (nobody)
Summary: Admin privs required for Windows?

Initial Comment:
Over in ZopeLand, there's a complaint that the ZODB 
Windows installer requires admin privileges (or 
something like that):

    http://www.zope.org/Collectors/Zope/1838

The installer was produced using Python 2.3.5, via

    python setup.py bdist_wininst

from the root of a ZODB checkout.  Anyone have a 
guess as to what privs it needs that it might not 
have?  The user says they do have permission to write 
into their Python installation directory, so that's 
not it.  The message they get is "You do not seem to 
have sufficient access rights on this machine to 
install this software". 

Status under Python 2.4.1 is unknown.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2005-07-11 18:55

Message:
Logged In: YES 
user_id=21627

The message comes from
PC\bdist_wininst\install.c:OpenLogFile, when attempting to
write to Software\Microsoft\CurrentVersion\Uninstall.
Whether this goes to HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE
apparently depends on whether Python was installed per-user
or per-machine.

In the 2.4.1 version, in CheckRootKey, there is a
HasLocalMachinePrivs function. Mark Hammond added this in
install.c 1.6 in response to #555812 and #555810, so I'm
declaring this bug fixed.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2005-07-08 20:59

Message:
Logged In: YES 
user_id=31435

Bug 1232947 is about installing Python itself.  This one is 
about installing a 3rd-party package that happens to use 
Python (a pre-existing Python), using a Windows installer 
created by Python's distutils package.  It's unlikely the bugs 
have anything in common.

----------------------------------------------------------------------

Comment By: Patrick Vrijlandt (pvrijlandt)
Date: 2005-07-08 20:48

Message:
Logged In: YES 
user_id=1307917

Did you see bug # 1232947? It provides documentation of 
another failing non-admin install. (2.4.1).


----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2005-07-08 19:11

Message:
Logged In: YES 
user_id=31435

You should be able to try 2.4.  The Python installer includes 
msvcr71.dll, and should install it into the Python directory 
(instead of into a system directory) is you do a "install just 
for me" (as opposed to "all users") install.

----------------------------------------------------------------------

Comment By: Alex (hairypalm)
Date: 2005-07-08 18:36

Message:
Logged In: YES 
user_id=1309592

I am the original "complainant".  I cannot try python 2.4 
install package because it requires MSVCR71.dll.  I 
am "locked down" at work and cannot write files except to 
my own user area.  I am also prevented from writing to some 
areas of the registry.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1234850&group_id=5470


More information about the Python-bugs-list mailing list