New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.5 Win install fails with "TARGETDIR" #69331
Comments
The 3.5 Windows installer fails with "The TARGETDIR variable must be provided when invoking this installer" Here are the steps I followed:
I've saved the log file and can upload if helpful, but will have to remove personal info first |
Well, I made this happen once, but not a second time. That's better than most setup issues I get to deal with :) Still working on it - will post when I figure it out. |
We just hit this bug with "The TARGETDIR variable must be provided when invoking this installer" and an OK button (only) on a colleagues' machine. We first tried https://www.python.org/ftp/python/3.5.0/python-3.5.0-webinstall.exe (default options) and then https://www.python.org/ftp/python/3.5.0/python-3.5.0.exe (default options plus checked add to PATH) with the same problem. My colleague recalls having previously installed and then removed Python 3.5 on this machine (possibly a pre-release or beta version). Could anything in the registry or on left disk trigger this? |
That's a good idea. Can you grab the log files from %UserProfile%\AppData\Local\Temp (sort by date - they'll all be grouped together) and upload to this issue? Like Felipe, you may want to censor some usernames/paths. If you do, please let me know if they contain anything other than letters or digits (spaces and punctuation may be very important here). |
webmaster just got mail from another person hit with this on Windows 10. |
I had the same problem when trying to install 3.5 with Windows 10. I got the same results as Felipe has listed in the post from 9/16. |
Still a problem with python-2.7.10.amd64.msi. A bit surprising that this has not been addressed since 2015.05.23... |
I got this with 3.5.1 installer on Windows 7. I solved it by running installer with elevated privileges. Installer for 2.7.11 was not affected. |
Good to hear there's a workaround. I seem to recall an issue in the past with some security policies that disallow passing parameters to installers. This may be the cause here. When I get a chance to sit at a computer I'll see if I can track that down. |
To solve the problem with the variable TARGETDIR not being initialized, I called the installation program from the command shell and added the target dir option. c:\Users\xxxx\Downloads>python-3.5.1-amd64.exe TargetDir=c:\Python35 I also us the custom installation option (using the Install Now might not work). You should see that the target dir is properly setup to what you have specified. Now it installed without a problem. |
For me the custom installer worked by combining the two solutions above:
|
I ran the python-3.5.2.exe file as administrator (right click > Run as Admin) and then followed the custom installation to set up target directory. It got installed without further complaints. |
New changeset 16d652760a06 by Steve Dower in branch '3.5': New changeset 024f3312ccee by Steve Dower in branch 'default': |
I believe this change will fix it, or at least provide some more diagnostic info if it fails again. There doesn't seem to be any other way to trigger the install process without setting a target directory. |
It's quite an issue... This is 2017 and it's still there. Anyway, I encountered the same problem by running the installer in Win7, and it was fixed by running it again in administrative mode. |
Yu Zhigang - can you post your install logs from the failed install? You'll notice in my last message I said that I added some extra logging. However, it sounds like you have a certain system option set that essentially breaks paths passed between non-admin and admin processes. There is very little we can do about that, and the fix applied for this issue is not intended to solve it. |
Hi, if everything goes well you shall see the log in the attachment or somewhere. I'm uploading it. |
Got the same issue with the 3.6 installer from python.org The thing is that I can't elevate the priviliges to be administrator. So I'm stuck. Uploading the log. Running windows 7 |
You've got a different issue, but I can't tell what it is without all of the logs. Can you look in your %TEMP% directory for the file you attached, and then also include those with the same prefix? |
Please provide logs and details about how you provoked the error, and whether you can do so reliably. Or better, submit pull requests for any bugs you find in Complaints without data or offered help merely contribute to burnout in the people providing you software for free. |
3.10.9 the same problem. Showing path that was set. Showing installation. No effects - it installs to the same folder as it was before... I already have it installed in system, but I need to install it in project folder. No luck. |
|
The installer doesn't support this. You may want to look at our Nuget packages for getting a per-project copy |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: