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: setup error on windows
Type: behavior Stage: resolved
Components: Installation, Windows Versions: Python 3.9
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, paul.moore, rikkuguzai, steve.dower, steven.daprano, terry.reedy, tim.golden, zach.ware
Priority: normal Keywords:

Created on 2020-10-18 21:49 by rikkuguzai, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
dsafdsfdsfdsfdsfsafsafsadfsagggg.PNG rikkuguzai, 2020-10-18 21:49 Picture of the f***ing error.
Python 3.9.0 (64-bit)_20201019050706.log rikkuguzai, 2020-10-19 21:36
Messages (6)
msg378904 - (view) Author: CaptainMitsumoto (rikkuguzai) Date: 2020-10-18 21:49
I am frustrated now. I was about to install Python 3.9.0 in my gaming laptop then I get this thing.

I tried to google the hex error and the error name. I tried getting help in Python Discord but no good luck, they're weren't any good solutions. I got this bug yesterday and I waited 1 day later (which is today) and it still existed. I tried installing the old versions before Python 3.9.0, still nope. Wow, this crap is driving me crazy, all I wanted to do is to code in Python.

Error: 0x80070002 - The system cannot find the file specified.
msg378907 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2020-10-18 22:16
Hi CaptainMitsumoto,

Did you follow the instructions given by the installer to read the log file? We don't have access to your log file, only you do. Can you see what file cannot be found?

Did you try some basic googling? I'm not a Windows guru, but this:

https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/0x80070002-the-system-cannot-find-the-file/cad10f8d-79f2-4a10-953f-b85478b3e1b7


suggests that the problem is related to permissions, or your OS installation, not to the installer itself. Do you have administrator privileges? Did you check your .Net framework? What version of Windows are you using?

If you have already received some suggestions which did not work, would you mind telling us what you already tried so we don't waste our time, and yours, telling you what you have already tried.

Did you successfully install the older version of Python? If so, there is nothing stopping you from coding in 3.8 and upgrading later.
msg379025 - (view) Author: CaptainMitsumoto (rikkuguzai) Date: 2020-10-19 21:36
LOG FILE (Occurring yesterday)

I have administrator privileges in my laptop. I have the latest .NET
framework. I tried installing Python before 3.9.0 and no good luck. I'm
using Windows 10 and the version is 1703. I don't think there are problems
with OS installation...

On Mon, Oct 19, 2020 at 6:17 AM Steven D'Aprano <report@bugs.python.org>
wrote:

>
> Steven D'Aprano <steve+python@pearwood.info> added the comment:
>
> Hi CaptainMitsumoto,
>
> Did you follow the instructions given by the installer to read the log
> file? We don't have access to your log file, only you do. Can you see what
> file cannot be found?
>
> Did you try some basic googling? I'm not a Windows guru, but this:
>
>
> https://answers.microsoft.com/en-us/windows/forum/windows_10-windows_install/0x80070002-the-system-cannot-find-the-file/cad10f8d-79f2-4a10-953f-b85478b3e1b7
>
>
> suggests that the problem is related to permissions, or your OS
> installation, not to the installer itself. Do you have administrator
> privileges? Did you check your .Net framework? What version of Windows are
> you using?
>
> If you have already received some suggestions which did not work, would
> you mind telling us what you already tried so we don't waste our time, and
> yours, telling you what you have already tried.
>
> Did you successfully install the older version of Python? If so, there is
> nothing stopping you from coding in 3.8 and upgrading later.
>
> ----------
> nosy: +steven.daprano
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue42074>
> _______________________________________
>
msg379469 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-10-23 19:45
Thank you for attaching the log instead of including it inline.  But when you reply by email, please delete the message you are responding too, as it duplicates the original already on the web page.

The first error in the log is a failure to make a restore point.  Then the fatal error reported:
ESOMEUSERor 0x80070002: Failed to install MSI package.
ESOMEUSERor 0x80070002: Failed to configure per-user MSI package.
Applied execute package: core_JustForMe, result: 0x80070002, restart: None
ESOMEUSERor 0x80070002: Failed to execute MSI package.

I added the Windows component so a Windows expert can try to interpret this.  Since it was installing just for you, in AppData, I don't think permissions should have been a problem.  I presume that 1703 is recent enough that the installer should work.
msg379491 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-10-23 23:02
Thanks for finding the error code, Terry.

CaptainMitsumoto, firstly sorry for the frustration. We try to make it work reliably everywhere, but there are so many variables when it comes to installation that weird things always come up.

As an alternative, you might want to try opening the Microsoft Store app and searching for one of the Python releases we publish there (probably Python 3.8 right now, or 3.9 if you want to try it out and aren't planning to install other packages). Those use a different kind of installer that is normally much more reliable.

If we're going to keep looking into the other installer that failed for you, I'm going to need the other log files that were in %TEMP%. The one that ends in "core_JustForMe" has the actual source of this error. 

However, I can tell you that the most common reason for this error code is that your virus scanner is interfering. You might have to disable it while installing.
msg404695 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2021-10-21 22:34
Closing due to lack of response.
History
Date User Action Args
2022-04-11 14:59:36adminsetgithub: 86240
2021-10-21 22:34:50zach.waresetstatus: open -> closed
resolution: out of date
messages: + msg404695

stage: resolved
2020-10-27 03:24:56vstinnersetnosy: - vstinner
2020-10-23 23:02:07steve.dowersetmessages: + msg379491
2020-10-23 19:45:22terry.reedysetnosy: + terry.reedy, paul.moore, tim.golden, zach.ware, steve.dower
messages: + msg379469
components: + Windows
2020-10-19 21:36:34rikkuguzaisetfiles: + Python 3.9.0 (64-bit)_20201019050706.log

messages: + msg379025
2020-10-18 22:16:48steven.dapranosettype: crash -> behavior
components: + Installation, - Unicode
2020-10-18 22:16:19steven.dapranosetnosy: + steven.daprano
messages: + msg378907
2020-10-18 22:05:48steven.dapranosettitle: f***ing setup failed is driving me insane -> setup error on windows
2020-10-18 21:49:09rikkuguzaicreate