ROOT Version: 6.14/06
Platform: Windows 10 Entreprise (64 bits)
Compiler: Visual Studio 2017 Community (v15.7.6)
Python: 2.7.15
Hello,
After downloading and unzipping root_v6.14.06.win32.vc15.debug.zip, I entered the following commands to create a TF1:
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.7.6
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>C:\URANIE\tools\root_v6.14.06.win32.vc15.debug\bin\thisroot.bat
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>set PATH=C:\Python27;%PATH%
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>python
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Warning in <TClassTable::Add>: class ROOT::Detail::TTypedIter<class TEnumConstant> already in TClassTable
>>> ROOT.TF1("f", "x", 0., 1.)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\URANIE\tools\root_v6.14.06.win32.vc15.debug\bin\ROOT.py", line 564, in __getattr1
self.__finalSetup()
File "C:\URANIE\tools\root_v6.14.06.win32.vc15.debug\bin\ROOT.py", line 671, in __finalSetup
gRootDir = self.gRootDir
File "C:\URANIE\tools\root_v6.14.06.win32.vc15.debug\bin\ROOT.py", line 613, in __getattr2
raise AttributeError( name )
AttributeError: gRootDir
>>>
There was a warning while importing ROOT. And an AttributeError exception was raised.
A similar behaviour is observed for gStyle and gRandom:
>>> ROOT.gStyle
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\URANIE\tools\root_v6.14.06.win32.vc15.debug\bin\ROOT.py", line 613, in __getattr2
raise AttributeError( name )
AttributeError: gStyle
>>> ROOT.gRandom
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\URANIE\tools\root_v6.14.06.win32.vc15.debug\bin\ROOT.py", line 613, in __getattr2
raise AttributeError( name )
AttributeError: gRandom
Do you know how to solve this problem?
Best regards,