[issue20641] Python installer needs elevated rights to install pip

2014-03-17 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 31c7dc7ccbaa by Martin v. Löwis in branch '3.4':
Issue #20641: Run custom actions with the NoImpersonate flag to support UAC.
http://hg.python.org/cpython/rev/31c7dc7ccbaa

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I managed to reproduce the problem. It happens (for me) when installing into 
c:\program files (or \program files (x86)). I'll look into fixing it.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Mark Lawrence

Mark Lawrence added the comment:

FTR I was referring to Terry's comment that there's no pip.xxx in c:/windows. 
 Pleased to see you have it sussed :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Patrick Westerhoff

Patrick Westerhoff added the comment:

Hey all,

yes, I indeed try to install Python into `C:\Program Files\`. I’m doing that on 
Windows 8.1 64bit with an Administrator account (which doesn’t matter though) 
with standard UAC (which only asks when applications make changes to the 
computer settings). This UAC setting means that every access to e.g. 
`C:\Windows` or `C:\Program Files` will need elevated rights.

The MSI cannot be run with real administrator rights but automatically request 
elevated rights when they need it, so to install, I just execute it and let the 
installer request elevated rights as it needs to. My installation directory is 
`C:\Program Files\Development\Python34`.

Then, somewhere at the end of the setup bar, a Python console window pops up, 
saying that it’s installing pip. After its download, I can see some red text 
flash up and the window disappears (I’ve attached the `pip.log`). The installer 
then finishes, but the `\Scripts\` directory is missing.

As mentioned above, elevated rights are required when installing into 
`C:\Program Files\`. As you tried to reproduce it while installing to 
`C:\Python34\` you didn’t get the same problem. In fact, testing it again by 
installing it there works fine. This however is not really an acceptable 
solution for me. As suggested in my first message, the launched Python process 
should have elevated rights itself, but I don’t know if it’s possible to 
inherit those from the installer.

I don’t personally mind if this isn’t a blocker for the Python 3.4 release. I 
personally can live with installing pip with an elevated command line myself 
(that’s what I always did :P). But in the long run, we might want to find a 
real solution for this.

--
Added file: http://bugs.python.org/file34184/pip.log

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am installing into C:/Programs, so the problem is not specific to 'Program 
Files', with a space.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7b80f57f904e by Martin v. Löwis in branch 'default':
Issue #20641: Run custom actions with the NoImpersonate flag to support UAC.
http://hg.python.org/cpython/rev/7b80f57f904e

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Martin v . Löwis

Martin v. Löwis added the comment:

This is now fixed; the cherry-picking request is issue20738.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-22 Thread Patrick Westerhoff

Patrick Westerhoff added the comment:

That’s great to hear, thanks a lot :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Nick Coghlan

Nick Coghlan added the comment:

Patrick, could you let us know exactly which version of Windows exhibited the 
problem?

I also had no issues when testing the 3.4b3 installer on Windows 7 64-bit a few 
weeks ago, and I don't believe I have adjusted the UAC settings on that machine.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Also, what kind of account exactly is attempting to perform the installation?

--
priority: release blocker - normal

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I have default UAC on win7, 64 bit, installed from user account, gave admin 
password when requested, and did not see an error message (but have not tried 
to use pip either). 'pip' at command line is not recognized, but I don't know 
if it should be or if I have to be in the proper directory.

I did initially have a problem with c1, but that seems to be because .b3 did 
not properly uninstall .b2. (Once I re-downloaded .b2 so I could 'repair' .b2 
and ininstall it from programs list, .c1 install worked.)

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Nick Coghlan

Nick Coghlan added the comment:

Try pip3, Terry - there's an error in rc1 that means it doesn't install the
unversioned command (this is planned to be fixed in rc2).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Terry J. Reedy

Terry J. Reedy added the comment:

pip3 is not recognized either. There is a bunch of stuff added to 3.4 
site_packages: easy_install, pip, pip1.5.2..., setuptools, setuptools2-1..., 
There is a py.exe but no pip.xxx in c:/windows.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Mark Lawrence

Mark Lawrence added the comment:

Surely tools like this would still be installed in c:\Python34\Scripts and not 
c:\Windows ?

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-21 Thread Martin v . Löwis

Martin v. Löwis added the comment:

Mark: the installation of py.exe in c:\windows is correct, see PEP 397. Note 
that this is not at all the issue reported here.

Terry: Whether or not pip3 is found on the path is not the issue reported here, 
either. The OP mentioned a permission error, although he didn't report how 
exactly this error manifests (I assume that the install process would fail, 
resulting in nothing being installed).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-20 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I cannot reproduce the problem. It works fine for me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-16 Thread Patrick Westerhoff

New submission from Patrick Westerhoff:

When installing Python 3.4 with the MSI, you can choose to install pip as part 
of the setup. With activated UAC on Windows (which is the recommended default), 
the installer will ask for elevated rights during the setup to copy the files 
over to the installation directory.

However, when the setup then attempts to install pip, the Python interpreter 
running the `ensurepip` library to install it is *not* run with elevated 
rights. This obviously results in a permission error when it then tries to copy 
over pip into the `\Scripts\` install directory.

This is similar to the advanced installer option “Compile .py files to byte 
code”, which has been failing forever because of the same problem. But now, 
with pip, this is an actual problem.

I suggest that you either run the pip install process from within the elevated 
setup, inheriting the rights—if that’s even possible—or explicitely request 
elevated rights for it again.

--
components: Windows
messages: 211360
nosy: poke
priority: normal
severity: normal
status: open
title: Python installer needs elevated rights to install pip
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20641] Python installer needs elevated rights to install pip

2014-02-16 Thread Ned Deily

Ned Deily added the comment:

Elevating to release blocker pending evaluation by Martin et al.

--
nosy: +larry, loewis, ncoghlan, ned.deily
priority: normal - release blocker

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20641
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com