Bug 403527 - Trying to install LLVM with Craft gives : 'NoneType' object is not callable
Summary: Trying to install LLVM with Craft gives : 'NoneType' object is not callable
Status: REPORTED
Alias: None
Product: Craft
Classification: Developer tools
Component: Core (show other bugs)
Version: master
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-23 10:24 UTC by Petros
Modified: 2019-01-23 20:00 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 Petros 2019-01-23 10:24:01 UTC
SUMMARY
I want to build KDE Software on my Windows machine and thus I installed Craft. But when I try to install LLVM I get :

TypeError: 'NoneType' object is not callable

STEPS TO REPRODUCE
1. Open PowerShell as admin
2. Run the $CRAFTROOT/download/craftmaster/craftenv.ps1 script
3. craft llvm
4. Boom

OBSERVED RESULT
    PS C:\CraftRoot\download> craft llvm
Craft               : C:\CraftRoot\download
Version             : master
ABI                 : windows-msvc2017_64-cl
Download directory  : C:\CraftRoot\download\download
'NoneType' object is not callable
Traceback (most recent call last):
  File "C:\CraftRoot\download\craft-master\bin\craft.py", line 250, in <module>
    success = main()
  File "C:\CraftRoot\download\craft-master\bin\craft.py", line 238, in main
    if not CraftCommands.run(package, action, tempArgs):
  File "C:\CraftRoot\download\craft-master\bin\CraftCommands.py", line 240, in run
    depList = depPackage.getDependencies(depType=depType)
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftDependencyPackage.py", line 105, in getDependencies
    self.depenendencyType = depType
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftDependencyPackage.py", line 45, in depenendencyType
    self.__resolveDependencies()
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftDependencyPackage.py", line 58, in __resolveDependencies
    self.dependencies.extend(self.__readDependenciesForChildren([(x, None) for x in self.children.values()]))
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftDependencyPackage.py", line 74, in __readDependenciesForC
hildren
    p.depenendencyType = self.depenendencyType
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftDependencyPackage.py", line 45, in depenendencyType
    self.__resolveDependencies()
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftDependencyPackage.py", line 50, in __resolveDependencies
    subinfo = self.subinfo
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftPackageObject.py", line 319, in subinfo
    return self.instance.subinfo
  File "C:\CraftRoot\download\craft-master\bin\Blueprints\CraftPackageObject.py", line 307, in instance
    pack = mod.Package()
  File "C:\CraftRoot\download\etc\blueprints\locations\craft-blueprints-kde\libs\llvm-meta\llvm\llvm.py", line 30, in __
init__
    CMakePackageBase.__init__(self)
  File "C:\CraftRoot\download\craft-master\bin\Package\CMakePackageBase.py", line 15, in __init__
    PackageBase.__init__(self)
  File "C:\CraftRoot\download\craft-master\bin\Package\PackageBase.py", line 32, in __init__
    CraftBase.__init__(self)
  File "C:\CraftRoot\download\craft-master\bin\CraftBase.py", line 38, in inner
    return fun(*args, **kwargs)
  File "C:\CraftRoot\download\craft-master\bin\CraftBase.py", line 58, in __init__
    self.subinfo = mod.subinfo(self)
  File "C:\CraftRoot\download\craft-master\bin\info.py", line 65, in __init__
    self.registerOptions()
  File "C:\CraftRoot\download\etc\blueprints\locations\craft-blueprints-kde\libs\llvm-meta\llvm\llvm.py", line 8, in reg
isterOptions
    self.options.dynamic.setDefault("buildType", "Release")
TypeError: 'NoneType' object is not callable
PS C:\CraftRoot\download>

EXPECTED RESULT

Install the LLVM package

SOFTWARE/OS VERSIONS
Windows: Windows 7 x64
Qt Version: None

ADDITIONAL INFORMATION

Craft and kde-blueprints are updated. Also, running the craftenv.ps1 script gives this output:

Craft               : C:\CraftRoot\download
Version             : master
ABI                 : windows-msvc2017_64-cl
Download directory  : C:\CraftRoot\download\download
PS C:\CraftRoot\download>
Comment 1 Hannah von Reth 2019-01-23 20:00:10 UTC
Hm I can't reproduce it.
Craft and the blueprints are up to date?
And you don't actually need to run craft as admin.