Problems with Importing ROOT.py


ROOT Version: 6.14.00
Platform: Windows 10
Compiler: Not Provided


Hi, I recently installed the latest binary from this site and tried to import ROOT.py with Python 3.6 originally but after browsing a bunch of posts it seems to be incompatible. But when I tried with Python 2.7, it ended in a long stacktrace and closed the program. Is there something I’m missing? Do I need to download the source?

==========================================
=============== STACKTRACE ===============
==========================================


================ Thread 0 ================
  libPyROOT!PyROOT::CreateScopeProxy()
  libPyROOT!PyROOT::CreateScopeProxy()
  python27!PyCFunction_Call()
  python27!PyEval_GetFuncDesc()
  python27!PyEval_EvalFrameEx()
  python27!PyEval_EvalCodeEx()
  python27!PyEval_GetFuncDesc()
  python27!PyEval_GetFuncDesc()
  python27!PyEval_EvalFrameEx()
  python27!PyEval_EvalCodeEx()
  python27!PyEval_GetFuncDesc()
  python27!PyEval_GetFuncDesc()
  python27!PyEval_EvalFrameEx()
  python27!PyEval_EvalCodeEx()
  python27!PyImport_ExecCodeModuleEx()
  python27!PyImport_ExecCodeModuleEx()
  python27!PyImport_IsScript()
  python27!PyImport_ImportModuleLevel()
  python27!PyImport_ImportModuleLevel()
  python27!PyImport_ImportModuleNoBlock()
  python27!PyImport_ImportModuleLevel()
  python27!PyAST_FromNode()
  python27!PyCFunction_Call()
  python27!PyObject_Call()
  python27!PyEval_CallObjectWithKeywords()
  python27!PyEval_EvalFrameEx()
  python27!PyEval_EvalCodeEx()
  python27!PyImport_ExecCodeModuleEx()
  python27!PyImport_ExecCodeModuleEx()
  python27!PyImport_IsScript()
  python27!PyImport_ImportModuleLevel()
  python27!PyImport_ImportModuleLevel()
  python27!PyImport_ImportModuleNoBlock()
  python27!PyImport_ImportModuleLevel()
  python27!PyAST_FromNode()
  python27!PyCFunction_Call()
  python27!PyObject_Call()
  python27!PyEval_CallObjectWithKeywords()
  python27!PyEval_EvalFrameEx()
  python27!PyEval_EvalCodeEx()
  python27!PyRun_FileExFlags()
  python27!PyRun_InteractiveOneFlags()
  python27!PyRun_InteractiveLoopFlags()
  python27!PyRun_AnyFileExFlags()
  python27!Py_Main()
  python2!??
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

================ Thread 1 ================
  ntdll!NtWaitForWorkViaWorkerFactory()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

================ Thread 2 ================
  ntdll!NtWaitForWorkViaWorkerFactory()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

================ Thread 3 ================
  ntdll!NtWaitForWorkViaWorkerFactory()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

================ Thread 4 ================
  ntdll!NtWaitForWorkViaWorkerFactory()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

================ Thread 5 ================
  ntdll!ZwDelayExecution()
  KERNELBASE!Sleep()
  libCore!TWinNTSystem::TimerThread()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

================ Thread 6 ================
  win32u!NtUserGetMessage()
  libCore!TWinNTSystem::FreeDirectory()
  KERNEL32!BaseThreadInitThunk()
  ntdll!RtlValidSecurityDescriptor()
  ntdll!RtlValidSecurityDescriptor()

==========================================
============= END STACKTRACE =============
==========================================

Hi,

First of all, if you downloaded the binaries, they were built with Python 2.7, and then, sorry, but PyROOT doesn’t work yet on Windows…

Cheers, Bertrand.