Bug 394644 - Craft installation fails to download python
Summary: Craft installation fails to download python
Status: RESOLVED FIXED
Alias: None
Product: Craft
Classification: Developer tools
Component: Core (show other bugs)
Version: unspecified
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-24 06:12 UTC by brkopac
Modified: 2018-09-30 09:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brkopac 2018-05-24 06:12:48 UTC
When doing a clean craft installation, it fails to grab Python 3.6.2 from the server with the following output:

Start to boostrap Craft.
Where to you want us to install Craft
Craft install root: [C:\CraftRoot\]: D:\Apps\CraftRoot
We couldn't find python.

Get python
Do you want us to install python for you or do you want to manually specify the location of your python installation?
[I] Install Python  [S] Specify Installation  [Q] Quit  [?] Help (default is "I"):
Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel.
At line:40 char:21
+ ...                 Invoke-WebRequest $Script:pythonUrl -OutFile $archive
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

D:\Apps\CraftRoot\download\python-3.6.2-amd64.exe /quiet InstallAllUsers=0 PrependPath=1 TargetDir="C:\python36" AssociateFiles=0 InstallLauncherAllUsers=0
& : The term 'D:\Apps\CraftRoot\download\python-3.6.2-amd64.exe' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:44 char:19
+                 & "$archive" $command
+                   ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\Apps\CraftRo...3.6.2-amd64.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Downloading: https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBootstrap.py
C:\python36\python.exe D:\Apps\CraftRoot\download\CraftBootstrap.py --prefix D:\Apps\CraftRoot --branch master
& : The term 'C:\python36\python.exe' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:141 char:3
+ & "$Script:python" $command
+   ~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\python36\python.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Comment 1 Simon Depiets 2018-09-30 09:08:13 UTC
Git commit ed94647782fa79a49c177abfb456a20545499740 by Simon Depiets.
Committed on 30/09/2018 at 09:07.
Pushed by sdepiets into branch 'master'.

Fix python install and bump to 3.6.6

Summary:
The python installer cannot be downloaded at the moment because it uses TLS 1.2

This patch allows TLS 1.2 download and changes the method used to match what is used in the rest of the code.

Reviewers: vonreth, #craft

Reviewed By: vonreth, #craft

Tags: #craft

Differential Revision: https://phabricator.kde.org/D15849

M  +5    -4    setup/install_craft.ps1

https://commits.kde.org/craft/ed94647782fa79a49c177abfb456a20545499740