windows-build-tools icon indicating copy to clipboard operation
windows-build-tools copied to clipboard

Python Not Installing (No installer log)

Open AnuEkko opened this issue 6 years ago • 10 comments

I left this on overnight to install (after struggling to get it to work previously), and even after running for 7 hours, Python still hasn't installed and there's still no installer log file being generated at all. It seems to me as if the Python installer isn't even being executed.

wbt wbt2

I've been trying to install this as I need it for stuff to do with my Discord bot I'm programming. Any help towards this issue would be greatly appreciated.

Kind regards, Bailfire.

AnuEkko avatar Apr 02 '18 22:04 AnuEkko

I am also running into this issue with this TeamCity with a Windows agent. This process ran for 4.5 hours before I killed it.

[12:39:14]The build is removed from the queue to be prepared for the start
[12:39:14]Collecting changes in 1 VCS root
[12:39:15]Starting the build on the agent desktop-b16p6pv
[12:39:16]Clearing temporary directory: C:\BuildAgent\temp\buildTmp
[12:39:16]Publishing internal artifacts
[12:39:16]Using vcs information from agent file: 7eb4cf378c8664af.xml
[12:39:16]Checkout directory: C:\BuildAgent\work\7eb4cf378c8664af
[12:39:16]Updating sources: auto checkout (on agent) (1s)
[12:39:17]Step 1/2: Node.js NPM (4h:18m:03s)
[12:39:17][Step 1/2] Executing npm via wrapping shell script
[12:39:17][Step 1/2] Starting: cmd /c npm install --global --production windows-build-tools
[12:39:17][Step 1/2] in directory: C:\BuildAgent\work\7eb4cf378c8664af\src\myproject
[12:39:17][Step 1/2] npm install --global --production windows-build-tools (4h:18m:02s)
[12:39:25][npm install --global --production windows-build-tools] 
[12:39:25][npm install --global --production windows-build-tools] > [email protected] postinstall C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm\node_modules\windows-build-tools
[12:39:25][npm install --global --production windows-build-tools] > node ./lib/index.js
[12:39:25][npm install --global --production windows-build-tools] 
[12:39:26][npm install --global --production windows-build-tools] Downloading BuildTools_Full.exe
[12:39:26][npm install --global --production windows-build-tools] [>                                            ] 0.0% (0 B/s)
[12:39:26][npm install --global --production windows-build-tools]  [1000D [0K [1A [1000D [0K [1A [1000D [0KDownloading python-2.7.14.amd64.msi
[12:39:26][npm install --global --production windows-build-tools] [>                                            ] 0.0% (0 B/s)
[12:39:26][npm install --global --production windows-build-tools]  [1000D [0K [1A [1000D [0K [1A [1000D [0KDownloading python-2.7.14.amd64.msi
[12:39:26][npm install --global --production windows-build-tools] [>                                            ] 0.0% (0 B/s)
[12:39:26][npm install --global --production windows-build-tools] Downloaded python-2.7.14.amd64.msi. Saved to C:\WINDOWS\system32\config\systemprofile\.windows-build-tools\python-2.7.14.amd64.msi.
[12:39:26][npm install --global --production windows-build-tools]  [1000D [0K [1A [1000D [0K [1A [1000D [0KDownloading BuildTools_Full.exe
[12:39:26][npm install --global --production windows-build-tools] [>                                            ] 0.0% (0 B/s)
[12:39:26][npm install --global --production windows-build-tools] Downloaded BuildTools_Full.exe. Saved to C:\WINDOWS\system32\config\systemprofile\.windows-build-tools\BuildTools_Full.exe.
[12:39:26][npm install --global --production windows-build-tools] 
[12:39:26][npm install --global --production windows-build-tools] Starting installation...
[12:39:27][npm install --global --production windows-build-tools] Launched installers, now waiting for them to finish.
[12:39:27][npm install --global --production windows-build-tools] This will likely take some time - please be patient!
[12:39:27][npm install --global --production windows-build-tools] 
[12:39:27][npm install --global --production windows-build-tools] Status from the installers:
[12:39:28][npm install --global --production windows-build-tools] ---------- Visual Studio Build Tools ----------
[12:39:28][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:28][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:29][npm install --global --production windows-build-tools] Still waiting for installer log file... [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:29][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:29][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:30][npm install --global --production windows-build-tools] Still waiting for installer log file... [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:30][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:30][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:31][npm install --global --production windows-build-tools] Still waiting for installer log file... [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:31][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:31][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:32][npm install --global --production windows-build-tools] Still waiting for installer log file... [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:32][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:32][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:33][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:33][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:33][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:34][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:34][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:34][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:35][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:35][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:35][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:36][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:36][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:36][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:37][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:37][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:37][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:38][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:38][npm install --global --production windows-build-tools] Still waiting for installer log file...
[12:39:38][npm install --global --production windows-build-tools] ------------------- Python --------------------
[12:39:39][npm install --global --production windows-build-tools] Successfully installed Python 2.7 [1000D [0K [1A [1000D [0K [1A [1000D [0K [1A [1000D [0K---------- Visual Studio Build Tools ----------
[12:39:39][npm install --global --production windows-build-tools] Still waiting for installer log file...

ghost avatar Apr 25 '18 17:04 ghost

same here

C:\Program Files (Portable)\ConsoleZ>npm i -g windows-build-tools

> [email protected] postinstall C:\Users\USER\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./lib/index.js

Downloading BuildTools_Full.exe
[>                                            ] 0.0% (0 B/s)
Downloading python-2.7.14.amd64.msi
[>                                            ] 0.0% (0 B/s)
Downloaded python-2.7.14.amd64.msi. Saved to C:\Users\USER\.windows-build-tools\python-2.7.14.amd64.msi.

Starting installation...
Launched installers, now waiting for them to finish.
This will likely take some time - please be patient!

Status from the installers:
---------- Visual Studio Build Tools ----------
Still waiting for installer log file...
------------------- Python --------------------
Still waiting for installer log file...

bluelovers avatar Apr 27 '18 22:04 bluelovers

Same. However, after manual download of python-2.7.14.amd64.msi from python site and "repair-install" - everything working fine.

link0802 avatar May 13 '18 13:05 link0802

@link0802 I followed the above, but it still didn't resolve the issue. Do you know the name of the log file and where it expects it to be?

ryanvgates avatar Jun 12 '18 19:06 ryanvgates

I had removed Python 2 a long time ago, but it was still displayed in the "Installed Files & Programs " of Windows. I tried to run this like using npm install --global --production windows-build-tools and got stuck in the same part.

So I tried to manually install Python and saw that an error occurred in the installation. To resolve, I searched for "Python 2 " and "Python-2 " in the entire Windows registry, I removed all the keys and the problem of installation just gone. 😃

I executed npm install --global --production windows-build-tools again and everything worked.

rn4n avatar Sep 03 '18 14:09 rn4n

I'm also having the same issue (also tried @link0802 's idea)

wheresvic avatar Sep 04 '18 08:09 wheresvic

Ok I managed to solve this by simply installing python and visual studio build tools manually: https://github.com/nodejs/node-gyp

Note that In my case I still installed the 2015 build tools so I had to set npm config set msvs_version 2015 for everything to work!

wheresvic avatar Sep 04 '18 10:09 wheresvic

Pythone installed issue

What about this

i also issue for waiting visual log file.

atikvhora avatar May 01 '19 09:05 atikvhora

+1 I tried with offline installer and getting the same issue as @atikvhora .

image

rohitjain31 avatar May 10 '19 03:05 rohitjain31

Try installing previous version, it will work awesome...

npm install --global --production [email protected]

happysahota avatar May 28 '19 02:05 happysahota