This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Windows installer: Failed to run untrusted mode.
Type: crash Stage: resolved
Components: Installation Versions: Python 3.7, Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Cabu, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2018-08-28 10:49 by Cabu, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Setup_20180828111438_Failed.txt Cabu, 2018-08-28 10:49 Installer Error log
Messages (4)
msg324235 - (view) Author: (Cabu) Date: 2018-08-28 10:49
At work, we are using Windows 7 Enterprise. I have local admin rights on a separate account.

When trying to install Python 3.6.3 or 3.7.0 for amd64, the installer stop after a couple of seconds without any message/popup. But, I have found the attched log in a temp folder.

It seems that the installer try to run a copy of itself in a folder where even the local admin can't run executables by company policy.

I didn't find any issue with the same error code in the tracker.
msg324327 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2018-08-29 15:45
Unfortunately, I don't have any better suggestion than trying to get your company policy changed :(

The "clean room" feature of our installer is not configurable (and also not in our code, so we can't change it without going through the upstream project). You will likely have similar trouble with any other installer that uses the same project, which includes many of Microsoft's programs - if there is an exception for Microsoft signed code, perhaps you could request an exception for PSF signed code?

If you have more information about the specific technical configuration that prevents this, then I may be able to follow up with people to find other ideas.
msg324352 - (view) Author: (Cabu) Date: 2018-08-29 22:35
Knowing the IT department, I will receive a nice letter saying that they don't care because it is not an approved software and that I could use Java for my development needs. I wanted to develop some interesting tools in python that could be used by a lot of colleagues to force their hand in approving it in a quicker way, else it will be like they have done for php and in 5 years they will finnally approve the use of python 2.7 (without pip to install non approved libraries) as a standard tool :(

If I want the latest and greatest Python environment, it would be easier for me to copy a working installation from my computer and update the registry and environment variables like the installer should do. For that purpose, do you have somewhere the list of registry keys and environment variables to insert/update?

In the meantime I have found a 'workaround': Install Anaconda. I will not have python 3.7, but 3.6.3 is better than nothing :/ But still a pity to install 600MB of cruft for the 30MB of Python goodies :)
msg324362 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2018-08-30 01:38
We're totally okay with you using a different installer if you want. We know and trust Anaconda, and while they do things differently, if that model works for you then it'll be fine.

Python 3.7 shouldn't need any registry settings or environment variables to operate correctly for the most part - I fixed those dependencies in 3.6. You may need to "python -m pip install --force pip" after copying it though, if you want to use the plain "pip" command ("python -m pip" will work). You also won't get the py.exe launcher unless you copy that from C:\Windows.

Good luck!
History
Date User Action Args
2022-04-11 14:59:05adminsetgithub: 78709
2018-08-30 01:38:55steve.dowersetstatus: open -> closed
resolution: not a bug
messages: + msg324362

stage: resolved
2018-08-29 22:35:56Cabusetmessages: + msg324352
2018-08-29 15:45:46steve.dowersetmessages: + msg324327
2018-08-28 10:49:59Cabucreate