Bug 388110 - Problems installing in w$ 10
Summary: Problems installing in w$ 10
Status: RESOLVED WORKSFORME
Alias: None
Product: Craft
Classification: Developer tools
Component: Core (show other bugs)
Version: master
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-21 10:17 UTC by Jaime Torres
Modified: 2018-12-12 08:14 UTC (History)
2 users (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 Jaime Torres 2017-12-21 10:17:49 UTC
The shell version is:
PS C:\> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      0      10586  1007

Here you have the outputs:
PS D:\craft> Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

Cambio de directiva de ejecución
La directiva de ejecución le ayuda a protegerse de scripts en los que no
confía. Si cambia dicha directiva, podría exponerse a los riesgos de seguridad
descritos en el tema de la Ayuda about_Execution_Policies en
http://go.microsoft.com/fwlink/?LinkID=135170. ¿Desea cambiar la directiva de
ejecución?
[S] Sí  [O] Sí a todo  [N] No  [T] No a todo  [U] Suspender  [?] Ayuda
(el valor predeterminado es "N"):S
PS D:\craft> iex ((new-object net.webclient).DownloadString('https://raw.github
sercontent.com/KDE/craft/master/setup/install_craft.ps1'))
Start to boostrap Craft.
Where to you want us to install Craft
Craft install root: [C:\CraftRoot\]: d:\Craft
Get-Command : No se puede validar el argumento del parámetro 'Name'. El
argumento es null o está vacío. Proporcione un argumento que no sea null o que
no esté vacío e intente ejecutar el comando de nuevo.
En línea: 23 Carácter: 24
+     $py = (Get-Command $name -ErrorAction SilentlyContinue)
+                        ~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-Command], ParameterBinding
   ValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power
   Shell.Commands.GetCommandCommand
We failed to determine your python version.

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  [?] Ayuda
(el valor predeterminado es "I"):S
Python Path: c:\Python36\python.exe
Downloading: https://raw.githubusercontent.com/KDE/craft/master/setup/CraftBoots
trap.py
c:\Python36\python.exe d:\Craft\download\CraftBootstrap.py --prefix d:\Craft --b
ranch master
Welcome to the Craft setup wizard!

Select compiler
[0] Mingw-w64, [1] Microsoft Visual Studio 2015, [2] Microsoft Visual Studio 201
7 (Default is Microsoft Visual Studio 2015): 1

Select architecture
[0] x86, [1] x64 (Default is x64):
Windows has problems with too long commands.
For that reason we mount Craft directories to drive letters.
It just maps the folder to a drive letter you will assign.
Enter drive for the build root
[Possibilities A-Z] (Default is R:):
Enter drive for the location where the git checkouts are located
[Possibilities A-Z] (Default is Q:):
Starting to download https://github.com/KDE/craft/archive/master.zip to d:\Craft
\download\craft-master.zip
540672 bytes downloaded
Execute: C:\Python36\python.exe d:\Craft\craft-master\bin\craft.py --no-cache cr
aft
[WinError 3] El sistema no puede encontrar la ruta especificada: 'R:\\'
Traceback (most recent call last):
  File "d:\Craft\craft-master\bin\craft.py", line 439, in <module>
    success = main()
  File "d:\Craft\craft-master\bin\craft.py", line 368, in main
    helper.subst()
  File "d:\Craft\craft-master\bin\CraftSetupHelper.py", line 118, in subst
    _subst(CraftStandardDirs.gitDir(), "GitDrive")
  File "d:\Craft\craft-master\bin\CraftSetupHelper.py", line 106, in _subst
    os.makedirs(path)
  File "C:\Python36\lib\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "C:\Python36\lib\os.py", line 210, in makedirs
    makedirs(head, mode, exist_ok)
  File "C:\Python36\lib\os.py", line 220, in makedirs
    mkdir(name, mode)
FileNotFoundError: [WinError 3] El sistema no puede encontrar la ruta especifica
da: 'R:\\'

Both units R: and Q: are not already mapped.
Comment 1 Hannah von Reth 2017-12-21 10:49:03 UTC
Hi can you shared %USERPROFILE%\.craft with us :)
Comment 2 Hannah von Reth 2017-12-21 10:49:49 UTC
share the log file from %USERPROFILE%\.craft
Comment 3 Jaime Torres 2017-12-21 11:16:11 UTC
Maybe the problem is my profile name, because I don't have any .craft file or directory.
My profile name is in the way: user.domain

I've retried again in the default directory, and letting it install python. The same problem.
Comment 4 Jaime Torres 2017-12-21 15:27:52 UTC
Some problems I've detected:
First I set the python path pointing to the executable! (probably a check will detect this problem earlier or in an smart way it just gets the path even if the executable is entered).

Second, I only have the free download of the VC (the 2017, not the 2015 as I selected), installed in:
D:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC with the following directories:
Auxiliary
Redist
Tools

If I execute manually 
D:\Craft\download> C:\Python36\python.exe .\CraftBootstrap.py --prefix D:\Craft\
It works with the mingw64 compiler.
Comment 5 Jaime Torres 2018-12-12 08:14:04 UTC
After some time and some w$ updates, in a fresh installation, it works for me.