Bug 386757 - Python error with craftenv.ps1
Summary: Python error with craftenv.ps1
Status: RESOLVED FIXED
Alias: None
Product: Craft
Classification: Developer tools
Component: Core (show other bugs)
Version: stable
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-11 18:36 UTC by Uwe Stöhr
Modified: 2017-11-12 11:53 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 Uwe Stöhr 2017-11-11 18:36:16 UTC
I installed the latest craft following these guidelines:
https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows

At first there is a bug in the desription because
craftenv.ps1
is not under
C:\KDEROOT\craft\
but under
C:\CraftRoot\craft

I use CMake 3.9.5, Python 3.6.3, Qt 5.9.2 and ECM 5.39.0

I run now a powershell and entered

C:\CraftRoot\craft\craftenv.ps1

then I get a Python error:

python.exe : Craft Root          : C:\CraftRoot
At C:\CraftRoot\craft\craftenv.ps1:80 char:2
+ (& $env:CRAFT_PYTHON ([IO.PATH]::COMBINE("$env:CraftRoot", "bin", "Cr ...
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Craft Root          : C:\CraftRoot 
   :String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Craft               : R:\
Version             : master
ABI                 : windows-msvc2015_64-cl
Svn directory       : C:\CraftRoot\download\svn
Git directory       : Q:\
Download directory  : C:\CraftRoot\download

In my CraftSettings.ini I read
Python = C:\Program Files (x86)\Python36-32
so Python was correctly detected.
Comment 1 Uwe Stöhr 2017-11-12 00:22:35 UTC
Hmm, I again set up craft now from scratch and now trhe problem is gone. It might be that I received the problem because following
https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows
I used
kdeenv.ps1 then I got a deprecation warning and switched to craftenv.ps1.
https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows
was fixed in this respect already, so onec the wrong KDEROOT path is there replaced with Craftroot I think this bug can be closed.