PyROOT cannot open file: "Error in <TNetXNGFile::Open>: [FATAL] Auth failed"

Sorry, I’m not really sure what SIP means or how to proceed if these problems are related.

SIP is the System Integrity Protection discussed in your other topic. I’m not positive that this issue is related, but if they are then you would need to rebuild ROOT against a version of python that does not have SIP.

No luck.

$ python2
Python 2.7.14 (default, Sep 25 2017, 09:54:19) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
$ which python2
/usr/local/bin/python2
$ cd /Applications/root_build/
$ cmake ../root -DPYTHON_EXECUTABLE=/usr/local/bin/python2
-- Found a Mac OS X System 10.13
-- Found a 64bit system
-- Found LLVM compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 -stdlib=libc++ -O2 -g -DNDEBUG
-- Looking for ZLib
-- Building freetype version 2.6.1 included in ROOT itself
-- Building pcre version 8.37 included in ROOT itself
-- Building LZMA version 5.2.1 included in ROOT itself
-- Building LZ4 version v1.7.5 included in ROOT itself
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for Python
-- Found PythonInterp: /usr/local/bin/python2 (found version "2.7.14") 
-- Found Python interpreter version 2.7
-- Looking for OpenGL
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Looking for Kerberos 5
-- Looking for LibXml2
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Downloading and building XROOTD version 
-- Looking for BLAS for optional parts of TMVA
-- A library with BLAS API found.
-- Enabled support for:  asimage astiff bonjour builtin_afterimage builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lzma builtin_lz4 builtin_pcre builtin_tbb builtin_unuran builtin_veccore builtin_xrootd cling cocoa cxx11 exceptions explicitlink fortran gdml genvector http imt krb5 ldap libcxx memstat minuit2 opengl pch python roofit shared sqlite table thread tmva unuran veccore xml xrootd
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin17.0.0
-- LLVM default target triple: x86_64-apple-darwin17.0.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5")
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.5~dev
-- Cling will look for C++ headers in '/Library/Developer/CommandLineTools/usr/include/c++/v1' at runtime.
-- And if not found, will invoke: '/Library/Developer/CommandLineTools/usr/bin/c++ ' for them.
-- TMVA: Deactivate PyMVA because numpy is not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Applications/root_build
$ python2
Python 2.7.14 (default, Sep 25 2017, 09:54:19) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

Moreover, this seems to have broken ROOT for my main python, even after doing $ cmake ../root -DPYTHON_EXECUTABLE=/usr/bin/python:

$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
error: unable to read PCH file /Applications/root_build/etc/allDict.cxx.pch: 'No such
      file or directory'
fatal error: PCH file '/Applications/root_build/etc/allDict.cxx.pch' not found: module file
      not found

 *** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[<unknown binary>] (no debug info)
[/Applications/root_build/lib/libCling.so] cling::IncrementalParser::ParseInternal(llvm::StringRef) (no debug info)
[/Applications/root_build/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info)
[/Applications/root_build/lib/libCling.so] cling::Interpreter::declare(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, cling::Transaction**) (no debug info)
[/Applications/root_build/lib/libCling.so] TCling::TCling(char const*, char const*) /Library/Developer/CommandLineTools/usr/include/c++/v1/string:1213
[/Applications/root_build/lib/libCling.so] CreateInterpreter /Applications/root/core/metacling/src/TCling.cxx:641
[/Applications/root_build/lib/libCore.so] TROOT::InitInterpreter() /Applications/root/core/base/src/TROOT.cxx:2005
[/Applications/root_build/lib/libCore.so] ROOT::Internal::GetROOT2() /Applications/root/core/base/src/TROOT.cxx:386
[/Applications/root_build/lib/libPyROOT.so] PyROOT::InitRoot() /Applications/root_build/include/TROOT.h:253
[/Applications/root_build/lib/libPyROOT.so] initlibPyROOT /Applications/root/bindings/pyroot/src/RootModule.cxx:942
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] _PyImport_LoadDynamicModule (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyImport_ImportModuleLevel (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyImport_ExecCodeModuleEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyImport_ImportModuleLevel (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyImport_ExecCodeModuleEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyImport_ImportModuleLevel (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_InteractiveOneFlags (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_InteractiveLoopFlags (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_AnyFileExFlags (no debug info)
[/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)
$ which python
/usr/bin/python

It looks as though you haven’t finished compiling ROOT. After cmake you need to call make. https://root.cern.ch/building-root

Yes, what @ksmith said, plus if you have multiple versions of ROOT installed, you may have things pointing to the wrong version, or picking up mixed files from different versions. The problem is that ROOT cannot find the PCH (a precompiled blob of headers to speedup execution). How are you using ROOT, installed or from the build directory?

@ksmith @amadio Yes, sorry, what I get for working exhausted.
@amadio I’m using ROOT from the build directory:

$ which root
/Applications/root_build/bin/root

But I’m afraid making doesn’t solve the problem. If I cmake against python2 (which I think is the homebrew version):

$ cd /Applications/root_build/
$ cmake ../root -DPYTHON_EXECUTABLE=/usr/local/bin/python2
-- Found a Mac OS X System 10.13
-- Found a 64bit system
-- Found LLVM compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 -stdlib=libc++ -O2 -g -DNDEBUG
-- Looking for ZLib
-- Building freetype version 2.6.1 included in ROOT itself
-- Building pcre version 8.37 included in ROOT itself
-- Building LZMA version 5.2.1 included in ROOT itself
-- Building LZ4 version v1.7.5 included in ROOT itself
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for Python
-- Found PythonInterp: /usr/local/bin/python2 (found version "2.7.14") 
-- Found Python interpreter version 2.7
-- Looking for OpenGL
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Looking for Kerberos 5
-- Looking for LibXml2
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Downloading and building XROOTD version 
-- Looking for BLAS for optional parts of TMVA
-- A library with BLAS API found.
-- Enabled support for:  asimage astiff bonjour builtin_afterimage builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lzma builtin_lz4 builtin_pcre builtin_tbb builtin_unuran builtin_veccore builtin_xrootd cling cocoa cxx11 exceptions explicitlink fortran gdml genvector http imt krb5 ldap libcxx memstat minuit2 opengl pch python roofit shared sqlite table thread tmva unuran veccore xml xrootd
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin17.0.0
-- LLVM default target triple: x86_64-apple-darwin17.0.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5")
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.5~dev
-- Cling will look for C++ headers in '/Library/Developer/CommandLineTools/usr/include/c++/v1' at runtime.
-- And if not found, will invoke: '/Library/Developer/CommandLineTools/usr/bin/c++ ' for them.
-- TMVA: Deactivate PyMVA because numpy is not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Applications/root_build
$ make -j8
[  0%] Built target move_header_io_xmlparser
[  0%] Built target move_header_roofit_histfactory
[  0%] Built target FREETYPE
[  0%] Built target move_header_net_krb5auth
[  0%] Built target move_header_net_bonjour
[  1%] Built target move_header_net_auth
[  1%] Built target move_header_net_net
[  1%] Built target TBB
[  1%] Built target move_header_core_meta
[  1%] Built target move_header_core_foundation
[  1%] Built target move_header_core_clib
[  2%] Built target move_header_core_cont
[  2%] Built target move_header_core_clingutils
[  2%] Built target move_header_net_netxng
[  2%] Built target move_header_net_netx
[  2%] Built target move_header_net_ldap
[  2%] Built target move_header_core_lzma
[  3%] Built target move_header_core_rint
[  3%] Built target move_header_core_zip
[  3%] Built target move_header_core_thread
[  3%] Built target move_header_core_imt
[  3%] Built target move_header_core_textinput
[  3%] Built target move_header_core_multiproc
[  3%] Built target move_header_core_lz4
[  3%] Built target move_header_core_newdelete
[  3%] Built target move_header_core_unix
[  3%] Built target move_header_core_macosx
[  4%] Built target move_header_core_base
[  4%] Built target move_header_math_minuit
[  5%] Built target move_header_math_matrix
[  7%] Built target move_header_math_minuit2
[  8%] Built target move_header_math_mathcore
[  8%] Built target move_header_math_fumili
[  8%] Built target move_header_math_quadp
[  8%] Built target move_header_math_mlp
[  8%] Built target move_header_math_physics
[  8%] Built target move_header_math_foam
[  8%] Built target move_header_math_smatrix
[  8%] Built target move_header_math_splot
[  9%] Built target move_header_math_genvector
[  9%] Built target move_header_math_unuran
[  9%] Built target move_header_math_genetic
[  9%] Built target move_header_hist_spectrumpainter
[  9%] Built target move_header_hist_spectrum
[  9%] Built target move_header_hist_histpainter
[  9%] Built target move_header_hist_unfold
[ 10%] Built target move_header_hist_hist
[ 11%] Built target move_header_tree_treeviewer
[ 11%] Built target move_header_io_io
[ 11%] Built target move_header_tree_tree
[ 12%] Built target move_header_tree_treeplayer
[ 12%] Built target move_header_io_sql
[ 12%] Built target move_header_net_http
[ 12%] Built target move_header_io_xml
[ 12%] Built target move_header_graf2d_gpad
[ 12%] Built target move_header_graf2d_cocoa
[ 12%] Built target move_header_graf2d_quartz
[ 12%] Built target move_header_graf2d_postscript
[ 12%] Built target move_header_graf2d_asimage
[ 13%] Built target move_header_graf2d_graf
[ 14%] Built target move_header_graf3d_g3d
[ 14%] Built target move_header_graf3d_gviz3d
[ 14%] Built target move_header_graf3d_ftgl
[ 15%] Built target move_header_graf3d_gl
[ 15%] Built target move_header_graf3d_glew
[ 15%] Built target move_header_gui_ged
[ 17%] Built target move_header_graf3d_eve
[ 19%] Built target move_header_gui_gui
[ 19%] Built target move_header_gui_guibuilder
[ 19%] Built target move_header_gui_sessionviewer
[ 19%] Built target move_header_gui_recorder
[ 20%] Built target move_header_proof_proof
[ 20%] Built target move_header_proof_proofplayer
[ 20%] Built target move_header_gui_guihtml
[ 20%] Built target move_header_proof_proofbench
[ 20%] Built target move_header_gui_fitpanel
[ 20%] Built target move_header_montecarlo_eg
[ 20%] Built target move_header_montecarlo_vmc
[ 20%] Built target move_header_geom_geom
[ 21%] Built target move_header_geom_geombuilder
[ 21%] Built target move_header_html
[ 21%] Built target move_header_geom_geompainter
[ 21%] Built target move_header_misc_memstat
[ 21%] Built target move_header_geom_gdml
[ 21%] Built target move_header_bindings_pyroot
[ 22%] Built target move_header_misc_table
[ 23%] Built target move_header_tmva_tmvagui
[ 23%] Built target move_header_sql_sqlite
[ 25%] Built target move_header_tmva_tmva
[ 26%] Built target move_header_roofit_roostats
[ 27%] Built target move_header_roofit_roofit
[ 29%] Built target move_header_roofit_roofitcore
[ 29%] Built target LLVMDemangle
[ 29%] Built target obj.clang-tblgen
[ 29%] Built target LLVMTableGen
[ 29%] Built target llvm_vcsrevision_h
[ 29%] Built target LLVMMCParser
[ 30%] Built target LLVMMCDisassembler
[ 30%] Built target obj.llvm-tblgen
[ 30%] Built target LLVMOption
[ 30%] Built target LLVMDebugInfoMSF
[ 30%] Built target LLVMMC
[ 31%] Built target LZMA
[ 31%] Built target PCRE
[ 31%] Built target LLVMDebugInfoCodeView
[ 31%] Generating include/module.modulemap
[ 31%] Built target LZ4
[ 31%] Built target VECCORE
[ 31%] Built target XROOTD
[ 31%] Built target move_headers
[ 31%] Built target AFTERIMAGE
[ 32%] Built target LLVMSupport
[ 32%] Built target copymodulemap
[ 32%] Built target Clib
[ 32%] Built target RootPcmObjs
[ 32%] Built target Foundation_Stage1
[ 32%] Built target Foundation
[ 34%] Built target Cont
[ 34%] Built target Zip
[ 34%] Built target Meta
[ 34%] Built target TextInput
[ 34%] Built target Lzma
[ 34%] Built target Lz4
[ 34%] Built target Macosx
[ 34%] Built target Unix
[ 35%] Built target mathtext
[ 35%] Built target GLEW
[ 36%] Built target FTGL
[ 36%] Built target root
[ 36%] Built target rmkdepend
[ 36%] Built target ssh2rpd
[ 36%] Built target rsa
[ 36%] Built target llvm-tblgen
[ 36%] Built target clang-tblgen
[ 37%] Built target clang-headers
[ 37%] Built target ClangCommentCommandInfo
[ 37%] Built target ClangCommentNodes
[ 37%] Built target ClangCommentHTMLTagsProperties
[ 37%] Built target ClangCommentHTMLNamedCharacterReferences
[ 38%] Built target ClangCommentCommandList
[ 38%] Built target intrinsics_gen
[ 38%] Built target ClangStmtNodes
[ 38%] Built target ClangAttrImpl
[ 38%] Built target ClangAttrClasses
[ 38%] Built target ClangAttrDump
[ 38%] Built target ClangCommentHTMLTags
[ 51%] Built target move_artifacts
[ 51%] Built target ClangDeclNodes
[ 51%] Built target ClangAttrVisitor
[ 51%] Built target ClangARMNeon
[ 51%] Built target ClangDiagnosticCommon
[ 51%] Built target ClangDiagnosticParse
[ 51%] Built target ClangDiagnosticComment
[ 51%] Built target ClangDiagnosticIndexName
[ 51%] Built target ClangDiagnosticGroups
[ 51%] Built target ClangDiagnosticLex
[ 51%] Built target ClangDiagnosticFrontend
[ 51%] Built target ClangAttrSubjectMatchRuleList
[ 51%] Built target ClangDiagnosticSerialization
[ 51%] Built target ClangAttrList
[ 51%] Built target ClangAttrHasAttributeImpl
[ 51%] Built target ClangDiagnosticSema
[ 51%] Built target ClangDiagnosticAST
[ 51%] Built target ClangAttrParserStringSwitches
[ 51%] Built target ClangDiagnosticAnalysis
[ 51%] Built target ClangAttrSubMatchRulesParserStringSwitches
[ 51%] Built target ClangAttrTemplateInstantiate
[ 51%] Built target ClangAttrParsedAttrList
[ 51%] Built target ClangDriverOptions
[ 51%] Built target ClangDiagnosticDriver
[ 51%] Built target ClangAttrSpellingListIndex
[ 51%] Built target ClangAttrPCHWrite
[ 51%] Built target AttributeCompatFuncTableGen
[ 51%] Built target ClangAttrPCHRead
[ 51%] Built target ClangSACheckers
[ 51%] Built target ClangAttrParsedAttrKinds
[ 51%] Built target ClangAttrParsedAttrImpl
[ 51%] Built target LLVMIRReader
[ 51%] Built target LLVMBitWriter
[ 51%] Built target LLVMBitReader
[ 51%] Built target LLVMGlobalISel
[ 51%] Built target LLVMCoroutines
[ 52%] Built target LLVMInstrumentation
[ 52%] Built target LLVMObjCARCOpts
[ 52%] Built target LLVMLinker
[ 52%] Built target LLVMAsmPrinter
[ 52%] Built target LLVMExecutionEngine
[ 52%] Built target LLVMLTO
[ 52%] Built target LLVMObject
[ 53%] Built target LLVMSelectionDAG
[ 53%] Built target LLVMOrcJIT
[ 53%] Built target LLVMAsmParser
[ 53%] Built target X86CommonTableGen
[ 53%] Built target LLVMTarget
[ 53%] Built target LLVMRuntimeDyld
[ 54%] Built target LLVMProfileData
[ 54%] Built target LLVMCoverage
[ 54%] Built target LLVMPasses
[ 54%] Built target LLVMInstCombine
[ 55%] Built target LLVMTransformUtils
[ 55%] Built target LLVMVectorize
[ 55%] Built target clangBasic
[ 55%] Built target clangLex
[ 55%] Built target LLVMipo
[ 56%] Built target clangParse
[ 56%] Built target clangEdit
[ 57%] Built target clangAnalysis
[ 58%] Built target LLVMAnalysis
[ 58%] Built target clangDriver
[ 59%] Built target clangSerialization
[ 59%] Built target ProofBenchPARFiles
[ 60%] Built target clangAST
[ 60%] Built target obj.clingMetaProcessor
[ 60%] Built target LLVMScalarOpts
[ 61%] Built target clangFrontend
[ 61%] Built target obj.clingUtils
[ 61%] Built target LLVMX86AsmParser
[ 61%] Updating cling-compiledata.h
[ 61%] Built target LLVMX86Disassembler
[ 61%] Built target clangSema
[ 61%] Built target LLVMX86AsmPrinter
[ 61%] Built target LLVMX86Utils
[ 61%] Built target LLVMX86Info
[ 61%] Built target LLVMX86Desc
[ 62%] Built target LLVMCore
[ 62%] Built target clingUtils
[ 62%] Built target clingMetaProcessor
[ 63%] Built target LLVMX86CodeGen
[ 63%] Updating cling-compiledata.h
[ 64%] Built target obj.clingInterpreter
[ 65%] Built target clangCodeGen
[ 65%] Built target clingInterpreter
[ 65%] Built target CLING
[ 65%] Built target LLVMRES
[ 65%] Built target ClingUtils
[ 68%] Built target LLVMCodeGen
[ 68%] Built target Dictgen
[ 68%] Built target MetaCling
[ 68%] Built target rootcling_stage1
[ 68%] Built target Cling
[ 68%] Built target G__Core
[ 69%] Built target Base
[ 69%] Built target gitcommit
[ 69%] Built target BaseTROOT
[ 69%] Built target Core
[ 69%] Built target G__valarrayDict
[ 69%] Built target G__unordered_setDict
[ 69%] Built target G__setDict
[ 69%] Built target G__complexDict
[ 69%] Built target G__multimapDict
[ 69%] Built target G__unordered_multisetDict
[ 69%] Built target G__multimap2Dict
[ 69%] Built target G__Thread
[ 69%] Built target G__dequeDict
[ 69%] Built target G__unordered_multimapDict
[ 69%] Built target G__mapDict
[ 70%] Built target G__unordered_mapDict
[ 70%] Built target G__map2Dict
[ 70%] Built target G__forward_listDict
[ 70%] Built target G__listDict
[ 70%] Built target G__multisetDict
[ 70%] Built target G__Rint
[ 70%] Built target valarrayDict
[ 70%] Built target G__vectorDict
[ 70%] Built target complexDict
[ 70%] Built target multimapDict
[ 70%] Built target listDict
[ 70%] Built target multimap2Dict
[ 70%] Built target setDict
[ 70%] Built target unordered_mapDict
[ 70%] Built target map2Dict
[ 70%] Built target mapDict
[ 70%] Built target unordered_setDict
[ 70%] Built target unordered_multisetDict
[ 70%] Built target dequeDict
[ 70%] Built target forward_listDict
[ 70%] Built target unordered_multimapDict
[ 70%] Built target rootnb.exe
[ 70%] Built target JupyROOT
[ 70%] Built target New
[ 70%] Built target Rint
[ 70%] Built target multisetDict
[ 70%] Built target ThreadObjs
[ 70%] Built target vectorDict
[ 70%] Built target root.exe
[ 70%] Built target Thread
[ 70%] Built target G__RIO
[ 70%] Built target G__Imt
[ 70%] Built target Imt
[ 71%] Built target RIOObjs
[ 71%] Built target RIO
[ 71%] Built target rootcling
[ 71%] Built target G__GenVector32
[ 71%] Built target G__Smatrix
[ 71%] Built target G__Smatrix32
[ 71%] Built target G__GenVector
[ 71%] Built target G__Bonjour
[ 71%] Built target G__XMLParser
[ 71%] Built target G__Net
[ 71%] Built target G__MathCore
[ 72%] Built target G__GQuartz
[ 72%] Built target G__XMLIO
[ 72%] Built target Smatrix
[ 72%] Built target Bonjour
[ 72%] Built target GenVector
[ 72%] Built target XMLParser
[ 73%] Built target XMLIO
[ 73%] Built target GQuartz
[ 73%] Built target Net
[ 73%] Built target MathCore
[ 73%] Built target G__RSQLite
[ 73%] Built target G__RLDAP
[ 73%] Built target G__SQLIO
[ 73%] Built target G__NetxNG
[ 73%] Built target G__Netx
[ 73%] Built target G__RootAuth
[ 73%] Built target G__Tree
[ 73%] Built target G__Matrix
[ 73%] Built target G__Geom
[ 74%] Built target SQLIO
[ 74%] Built target RLDAP
[ 74%] Linking CXX shared library ../../lib/libNetxNG.so
[ 74%] Built target roots.exe
[ 74%] Built target rootn.exe
[ 74%] Built target proofserv.exe
[ 74%] Built target RSQLite
[ 75%] Built target Matrix
[ 75%] Built target RootAuth
[ 75%] Linking CXX shared library ../../lib/libNetx.so
[ 75%] Built target G__Krb5Auth
[ 75%] Built target G__Hist
[ 75%] Built target G__Quadp
[ 76%] Built target Geom
[ 76%] Built target G__Physics
[ 76%] Built target Krb5Auth
[ 77%] Built target Tree
[ 77%] Built target Quadp
[ 77%] Built target Netx
[ 77%] Built target Physics
[ 77%] Built target G__PyROOT
[ 77%] Built target G__Proof
[ 77%] Built target NetxNG
[ 77%] Built target G__MultiProc
[ 78%] Built target Hist
[ 79%] Built target MultiProcObjs
[ 80%] Built target PyROOT
[ 80%] Built target Proof
[ 80%] Built target G__Foam
[ 80%] Built target G__Minuit2
[ 80%] Built target G__Graf
[ 80%] Built target G__Unuran
[ 80%] Built target G__Spectrum
[ 80%] Built target G__Unfold
[ 80%] Built target MultiProc
[ 80%] Built target xpdtest
[ 80%] Built target G__Gdml
[ 80%] Built target pq2
[ 80%] Built target G__ProofPlayer
[ 80%] Built target Foam
[ 80%] Built target Spectrum
[ 80%] Built target Gdml
[ 80%] Built target Unfold
[ 80%] Built target Graf
[ 80%] Built target ProofPlayer
[ 80%] Built target G__Minuit
[ 80%] Built target G__SpectrumPainter
[ 80%] Built target G__Fumili
[ 81%] Built target G__Gpad
[ 81%] Built target Minuit2
[ 81%] Built target G__Postscript
[ 81%] Built target G__Html
[ 81%] Built target G__ASImage
[ 81%] Built target Fumili
[ 81%] Built target Minuit
[ 81%] Built target SpectrumPainter
[ 82%] Built target Postscript
[ 82%] Built target ASImage
[ 84%] Built target Html
[ 85%] Built target Gpad
[ 87%] Built target Unuran
[ 87%] Built target G__RooFitCore
[ 87%] Built target G__Graf3d
[ 87%] Built target G__Gui
[ 87%] Built target G__HistPainter
[ 87%] Built target G__RHTTP
[ 87%] Built target G__ProofBench
[ 87%] Built target G__MemStat
[ 88%] Built target Graf3d
[ 88%] Built target RHTTP
[ 88%] Built target MemStat
[ 88%] Built target HistPainter
[ 88%] Built target ProofBench
[ 88%] Built target G__EG
[ 88%] Built target G__TreePlayer
[ 88%] Built target G__GeomPainter
[ 88%] Built target G__Table
[ 88%] Built target hadd
[ 88%] Built target EG
[ 88%] Built target GeomPainter
[ 88%] Built target Table
[ 88%] Built target G__VMC
[ 88%] Built target TreePlayer
[ 89%] Built target Gui
[ 89%] Built target VMC
[ 89%] Built target G__ASImageGui
[ 89%] Built target G__Ged
[ 89%] Built target G__SPlot
[ 89%] Built target G__FitPanel
[ 89%] Built target G__GCocoa
[ 89%] Built target G__MLP
[ 89%] Built target G__GuiBld
[ 89%] Built target G__SessionViewer
[ 89%] Built target G__GuiHtml
[ 89%] Built target G__Recorder
[ 89%] Built target SPlot
[ 89%] Built target G__ProofDraw
[ 89%] Built target ASImageGui
[ 89%] Built target GCocoa
[ 89%] Built target FitPanel
[ 89%] Built target GuiHtml
[ 89%] Built target Recorder
[ 89%] Built target GuiBld
[ 89%] Built target SessionViewer
[ 89%] Built target ProofDraw
[ 89%] Built target MLP
[ 89%] Built target Ged
[ 89%] Built target G__TMVA
[ 89%] Built target G__TreeViewer
[ 89%] Built target G__GeomBuilder
[ 89%] Built target G__RGL
[ 90%] Built target TreeViewer
[ 90%] Built target GeomBuilder
[ 93%] Built target RooFitCore
[ 94%] Built target RGL
[ 94%] Built target G__RooFit
[ 94%] Built target G__Gviz3d
[ 94%] Built target G__Eve
[ 96%] Built target TMVA
[ 96%] Built target Gviz3d
[ 96%] Built target G__Genetic
[ 96%] Built target G__TMVAGui
[ 97%] Built target RooFit
[ 97%] Built target G__RooStats
[ 97%] Built target Genetic
[ 98%] Built target Eve
[100%] Built target TMVAGui
[100%] Built target RooStats
[100%] Built target G__HistFactory
[100%] Generating etc/dictpch/allLinkDefs.h, etc/dictpch/allHeaders.h, etc/dictpch/allCppflags.txt
[100%] Built target HistFactory
[100%] Built target hist2workspace

Generating PCH for bindings/pyroot core/base core/clingutils core/imt core/multiproc core/rint core/thread graf2d/asimage graf2d/cocoa graf2d/gpad graf2d/graf graf2d/postscript graf2d/quartz graf3d/g3d graf3d/gl gui/fitpanel gui/gui hist/hist hist/histpainter hist/spectrum hist/spectrumpainter hist/unfold io/io math/genetic math/genvector math/mathcore math/matrix math/minuit math/minuit2 math/physics math/smatrix math/splot net/net net/netx net/netxng roofit/histfactory roofit/roofit roofit/roofitcore roofit/roostats tmva/pymva tmva/tmva tmva/tmvagui tree/tree tree/treeplayer tree/treeviewer

[100%] Generating etc/allDict.cxx.pch
[100%] Built target onepcm
[100%] Built target hsimple
$ root
   -----------------------------------------------------------------
  | Welcome to ROOT 6.11/03                     http://root.cern.ch |
  |                                    (c) 1995-2017, The ROOT Team |
  | Built for macosx64                                              |
  | From heads/master@v6-11-02-3-g9bb8349ee6, Oct 10 2017, 13:40:35 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'      |
   -----------------------------------------------------------------

root [0] .q

So far so good. I have to fix the relative rpaths again, as in my previous thread, and then:

$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open('root://eoslhcb.cern.ch/eos/lhcb/user/m/mwilkins/bfractions_fromGanga/MC/Up16/579.0/DVnTuples.root')
Error in <TNetXNGFile::Open>: [FATAL] Auth failed

System python gives me the same error as before. But python2:

$ python2
Python 2.7.14 (default, Sep 25 2017, 09:54:19) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open('root://eoslhcb.cern.ch/eos/lhcb/user/m/mwilkins/bfractions_fromGanga/MC/Up16/579.0/DVnTuples.root')
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

doesn’t work at all. FYI:

$ which python
/usr/bin/python
$ which python2
/usr/local/bin/python2

Where are you trying to run it? Are you sure this is not a firewall issue given the Auth failed error?
For the second error, your python2 seems to require threads to be enabled, while your ROOT has them disabled

...
-- Native target architecture is X86
*-- Threads disabled.*
-- Doxygen disabled.
-- Go bindings disabled.
...

The Auth failed error still occurs with the firewall turned off. Do you know how to enable threads in ROOT?

The firewall is on CERN’s side, so if you are outside of CERN, you probably cannot disable it or get around it.

As for enabling threads in ROOT, just do cmake . -Dthread=ON -Dimt=ON and recompile.
For more information about all the options, please have a look at https://root.cern.ch/building-root.

Surely it’s not the CERN firewall? I can access fine from a normal ROOT session, after all, and this is supposed to be a supported way of accessing files.

I get the same result after using those compiler changes:

Build ROOT:

$ cd /Applications/root_build/
$ cmake ../root -Dthread=ON -Dimt=ON -DPYTHON_EXECUTABLE=/usr/local/bin/python2
-- Found a Mac OS X System 10.13
-- Found a 64bit system
-- Found LLVM compiler collection
-- ROOT Platform: macosx
-- ROOT Architecture: macosx64
-- Build Type: RelWithDebInfo
-- Compiler Flags:  -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wshadow -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -std=c++11 -stdlib=libc++ -O2 -g -DNDEBUG
-- Looking for ZLib
-- Building freetype version 2.6.1 included in ROOT itself
-- Building pcre version 8.37 included in ROOT itself
-- Building LZMA version 5.2.1 included in ROOT itself
-- Building LZ4 version v1.7.5 included in ROOT itself
-- Could NOT find GIF (missing: GIF_LIBRARY GIF_INCLUDE_DIR) 
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR) 
-- Could NOT find PNG (missing: PNG_LIBRARY PNG_PNG_INCLUDE_DIR) 
-- Building AfterImage library included in ROOT itself
-- Looking for Python
-- Found Python interpreter version 2.7
-- Looking for OpenGL
-- Looking for Bonjour
-- Checking whether Bonjour/Avahi is supported
-- Looking for Kerberos 5
-- Looking for LibXml2
-- Looking for SQLite
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Downloading and building XROOTD version 
-- Looking for BLAS for optional parts of TMVA
-- A library with BLAS API found.
-- Enabled support for:  asimage astiff bonjour builtin_afterimage builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_lzma builtin_lz4 builtin_pcre builtin_tbb builtin_unuran builtin_veccore builtin_xrootd cling cocoa cxx11 exceptions explicitlink fortran gdml genvector http imt krb5 ldap libcxx memstat minuit2 opengl pch python roofit shared sqlite table thread tmva unuran veccore xml xrootd
-- Found libtool - /Library/Developer/CommandLineTools/usr/bin/libtool
-- Native target architecture is X86
-- Threads disabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Library/Developer/CommandLineTools/usr/bin/ld
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) 
-- OCaml bindings disabled.
-- LLVM host triple: x86_64-apple-darwin17.0.0
-- LLVM default target triple: x86_64-apple-darwin17.0.0
-- Building with -fPIC
-- Constructing LLVMBuild project information
-- Targeting X86
-- Could NOT find Z3 (missing: Z3_LIBRARIES Z3_INCLUDE_DIR) (Required is at least version "4.5")
-- Clang version: 5.0.0
-- Cling version (from VERSION file): ROOT_0.5~dev
-- Cling will look for C++ headers in '/Library/Developer/CommandLineTools/usr/include/c++/v1' at runtime.
-- And if not found, will invoke: '/Library/Developer/CommandLineTools/usr/bin/c++ ' for them.
-- TMVA: Deactivate PyMVA because numpy is not found
-- Configuring done
-- Generating done
-- Build files have been written to: /Applications/root_build
$ make -j8
[  0%] Built target move_header_sql_sqlite
[  0%] Built target move_header_bindings_pyroot
[  1%] Built target move_header_tmva_tmvagui
[  1%] Built target move_header_misc_memstat
[  2%] Built target move_header_misc_table
[  2%] Built target TBB
[  4%] Built target move_header_tmva_tmva
[  4%] Built target FREETYPE
[  4%] Built target move_header_core_clingutils
[  4%] Built target move_header_roofit_histfactory
[  5%] Built target move_header_core_cont
[  5%] Built target move_header_core_clib
[  5%] Built target move_header_core_foundation
[  6%] Built target move_header_roofit_roofit
[  7%] Built target move_header_roofit_roostats
[  9%] Built target move_header_roofit_roofitcore
[  9%] Built target move_header_core_meta
[  9%] Built target move_header_core_multiproc
[  9%] Built target move_header_core_textinput
[ 10%] Built target move_header_core_rint
[ 10%] Built target move_header_core_thread
[ 10%] Built target move_header_core_imt
[ 10%] Built target move_header_core_zip
[ 10%] Built target move_header_core_lz4
[ 10%] Built target move_header_core_lzma
[ 10%] Built target move_header_core_unix
[ 10%] Built target move_header_core_newdelete
[ 11%] Built target move_header_core_base
[ 11%] Built target move_header_core_macosx
[ 13%] Built target move_header_math_mathcore
[ 13%] Built target move_header_math_matrix
[ 13%] Built target move_header_math_fumili
[ 13%] Built target move_header_math_physics
[ 13%] Built target move_header_math_mlp
[ 15%] Built target move_header_math_minuit2
[ 15%] Built target move_header_math_minuit
[ 15%] Built target move_header_math_quadp
[ 15%] Built target move_header_math_smatrix
[ 15%] Built target move_header_math_foam
[ 15%] Built target move_header_math_unuran
[ 15%] Built target move_header_math_genetic
[ 17%] Built target move_header_math_genvector
[ 18%] Built target move_header_math_splot
[ 18%] Built target move_header_hist_hist
[ 18%] Built target move_header_hist_histpainter
[ 18%] Built target move_header_hist_spectrum
[ 18%] Built target move_header_hist_spectrumpainter
[ 19%] Built target move_header_tree_treeplayer
[ 19%] Built target move_header_tree_tree
[ 20%] Built target move_header_io_io
[ 20%] Built target move_header_tree_treeviewer
[ 20%] Built target move_header_hist_unfold
[ 20%] Built target move_header_io_sql
[ 20%] Built target move_header_io_xmlparser
[ 20%] Built target move_header_io_xml
[ 21%] Built target move_header_net_net
[ 21%] Built target move_header_net_bonjour
[ 21%] Built target move_header_net_krb5auth
[ 21%] Built target move_header_net_netx
[ 21%] Built target move_header_net_auth
[ 21%] Built target move_header_net_ldap
[ 21%] Built target move_header_net_netxng
[ 22%] Built target move_header_graf2d_gpad
[ 22%] Built target move_header_graf2d_graf
[ 22%] Built target move_header_graf2d_postscript
[ 22%] Built target move_header_graf2d_asimage
[ 22%] Built target move_header_net_http
[ 22%] Built target move_header_graf2d_quartz
[ 23%] Built target move_header_graf3d_g3d
[ 24%] Built target move_header_graf3d_gl
[ 25%] Built target move_header_graf3d_eve
[ 25%] Built target move_header_graf3d_glew
[ 25%] Built target move_header_graf3d_ftgl
[ 25%] Built target move_header_graf2d_cocoa
[ 25%] Built target move_header_gui_ged
[ 27%] Built target move_header_gui_gui
[ 27%] Built target move_header_graf3d_gviz3d
[ 27%] Built target move_header_gui_fitpanel
[ 27%] Built target move_header_gui_guibuilder
[ 27%] Built target move_header_gui_guihtml
[ 27%] Built target move_header_gui_recorder
[ 27%] Built target move_header_gui_sessionviewer
[ 27%] Built target move_header_html
[ 27%] Built target move_header_proof_proof
[ 28%] Built target move_header_montecarlo_vmc
[ 28%] Built target move_header_proof_proofbench
[ 28%] Built target move_header_proof_proofplayer
[ 28%] Built target move_header_montecarlo_eg
[ 29%] Built target move_header_geom_geombuilder
[ 29%] Built target move_header_geom_geom
[ 29%] Built target move_header_geom_geompainter
[ 29%] Built target move_header_geom_gdml
[ 29%] Built target LLVMDemangle
[ 29%] Built target LLVMTableGen
[ 29%] Built target obj.clang-tblgen
[ 29%] Built target llvm_vcsrevision_h
[ 30%] Built target LLVMSupport
[ 30%] Built target LLVMOption
[ 30%] Built target LLVMMCParser
[ 31%] Built target LLVMMCDisassembler
[ 31%] Built target obj.llvm-tblgen
[ 31%] Built target LLVMDebugInfoMSF
[ 32%] Built target LZMA
[ 32%] Generating include/module.modulemap
[ 32%] Built target PCRE
[ 32%] Built target XROOTD
[ 32%] Built target LZ4
[ 32%] Built target VECCORE
[ 32%] Built target LLVMDebugInfoCodeView
[ 32%] Built target AFTERIMAGE
[ 32%] Built target copymodulemap
[ 32%] Built target clang-tblgen
[ 32%] Built target move_headers
[ 32%] Built target llvm-tblgen
[ 34%] Built target clang-headers
[ 34%] Built target Foundation_Stage1
[ 34%] Built target intrinsics_gen
[ 35%] Built target ClangCommentCommandList
[ 36%] Built target mathtext
[ 36%] Built target RootPcmObjs
[ 36%] Built target LLVMMC
[ 36%] Built target ClangCommentHTMLNamedCharacterReferences
[ 48%] Built target move_artifacts
[ 48%] Built target ClangCommentCommandInfo
[ 48%] Built target ClangCommentNodes
[ 48%] Built target ClangStmtNodes
[ 48%] Built target ClangCommentHTMLTagsProperties
[ 48%] Built target ClangAttrClasses
[ 48%] Built target ClangAttrImpl
[ 48%] Built target ClangAttrDump
[ 48%] Built target ClangCommentHTMLTags
[ 48%] Built target ClangDeclNodes
[ 48%] Built target ClangARMNeon
[ 48%] Built target ClangDiagnosticIndexName
[ 48%] Built target ClangDiagnosticParse
[ 48%] Built target ClangDiagnosticCommon
[ 48%] Built target ClangAttrVisitor
[ 48%] Built target ClangDiagnosticGroups
[ 48%] Built target ClangDiagnosticComment
[ 48%] Built target ClangDiagnosticSema
[ 48%] Built target ClangAttrList
[ 48%] Built target ClangDiagnosticLex
[ 48%] Built target ClangAttrSubjectMatchRuleList
[ 48%] Built target ClangDiagnosticSerialization
[ 48%] Built target ClangDiagnosticFrontend
[ 48%] Built target ClangAttrHasAttributeImpl
[ 48%] Built target ClangDiagnosticAST
[ 48%] Built target ClangAttrParsedAttrList
[ 48%] Built target ClangAttrTemplateInstantiate
[ 48%] Built target ClangAttrParserStringSwitches
[ 48%] Built target ClangDiagnosticDriver
[ 48%] Built target ClangAttrSubMatchRulesParserStringSwitches
[ 48%] Built target ClangDiagnosticAnalysis
[ 48%] Built target ClangAttrParsedAttrImpl
[ 48%] Built target ClangAttrSpellingListIndex
[ 48%] Built target ClangAttrPCHWrite
[ 48%] Built target ClangSACheckers
[ 48%] Built target ClangAttrPCHRead
[ 48%] Built target ClangAttrParsedAttrKinds
[ 48%] Built target ClangDriverOptions
[ 48%] Built target AttributeCompatFuncTableGen
[ 48%] Built target LLVMIRReader
[ 48%] Built target LLVMBitReader
[ 48%] Built target LLVMBitWriter
[ 48%] Built target LLVMGlobalISel
[ 50%] Built target LLVMInstrumentation
[ 50%] Built target LLVMInstCombine
[ 50%] Built target LLVMAsmPrinter
[ 51%] Built target LLVMSelectionDAG
[ 51%] Built target LLVMVectorize
[ 51%] Built target LLVMCoroutines
[ 51%] Built target LLVMLinker
[ 51%] Built target LLVMObjCARCOpts
[ 51%] Built target LLVMipo
[ 51%] Built target LLVMExecutionEngine
[ 51%] Built target LLVMLTO
[ 51%] Built target LLVMObject
[ 51%] Built target LLVMOrcJIT
[ 51%] Built target LLVMRuntimeDyld
[ 51%] Built target X86CommonTableGen
[ 51%] Built target LLVMTarget
[ 52%] Built target LLVMTransformUtils
[ 52%] Built target LLVMCoverage
[ 52%] Built target LLVMAsmParser
[ 53%] Built target LLVMProfileData
[ 53%] Built target LLVMPasses
[ 53%] Built target LLVMScalarOpts
[ 53%] Built target clangBasic
[ 53%] Built target clangLex
[ 53%] Built target clangEdit
[ 54%] Built target clangParse
[ 55%] Built target clangAnalysis
[ 56%] Built target clangSerialization
[ 56%] Built target clangDriver
[ 56%] Built target Clib
[ 57%] Built target Cont
[ 58%] Built target LLVMAnalysis
[ 59%] Built target clangFrontend
[ 59%] Built target Foundation
[ 60%] Built target clangAST
[ 60%] Built target Zip
[ 60%] Built target TextInput
[ 60%] Built target Meta
[ 60%] Built target Lzma
[ 60%] Built target Lz4
[ 60%] Built target clangSema
[ 60%] Built target Macosx
[ 60%] Built target GLEW
[ 60%] Built target Unix
[ 61%] Built target root
[ 61%] Built target FTGL
[ 61%] Built target rmkdepend
[ 61%] Built target ProofBenchPARFiles
[ 61%] Built target rsa
[ 61%] Built target ssh2rpd
[ 61%] Built target obj.clingUtils
[ 61%] Built target obj.clingMetaProcessor
[ 61%] Built target LLVMX86AsmParser
[ 61%] Built target LLVMX86Disassembler
[ 61%] Built target LLVMX86AsmPrinter
[ 61%] Built target LLVMX86Desc
[ 61%] Built target LLVMX86Info
[ 61%] Updating cling-compiledata.h
[ 61%] Built target LLVMX86Utils
[ 62%] Built target LLVMCore
[ 62%] Built target clingMetaProcessor
[ 62%] Built target clingUtils
[ 63%] Built target LLVMX86CodeGen
[ 64%] Built target clangCodeGen
[ 64%] Updating cling-compiledata.h
[ 67%] Built target LLVMCodeGen
[ 68%] Built target obj.clingInterpreter
[ 68%] Built target clingInterpreter
[ 68%] Built target CLING
[ 68%] Built target LLVMRES
[ 68%] Built target ClingUtils
[ 68%] Built target Dictgen
[ 68%] Built target MetaCling
[ 68%] Built target rootcling_stage1
[ 68%] Built target Cling
[ 68%] Built target G__Core
[ 69%] Built target Base
[ 69%] Built target gitcommit
[ 69%] Built target BaseTROOT
[ 69%] Built target Core
[ 69%] Built target G__unordered_multisetDict
[ 69%] Built target G__valarrayDict
[ 69%] Built target G__unordered_setDict
[ 69%] Built target G__setDict
[ 69%] Built target G__complexDict
[ 69%] Built target G__Rint
[ 69%] Built target G__multimap2Dict
[ 69%] Built target G__Thread
[ 69%] Built target G__multimapDict
[ 69%] Built target G__listDict
[ 69%] Built target G__multisetDict
[ 69%] Built target G__map2Dict
[ 70%] Built target G__unordered_mapDict
[ 70%] Built target G__mapDict
[ 70%] Built target G__forward_listDict
[ 70%] Built target G__unordered_multimapDict
[ 70%] Built target G__vectorDict
[ 70%] Built target G__dequeDict
[ 70%] Built target valarrayDict
[ 70%] Built target multisetDict
[ 70%] Built target complexDict
[ 70%] Built target multimap2Dict
[ 70%] Built target multimapDict
[ 70%] Built target setDict
[ 70%] Built target unordered_mapDict
[ 70%] Built target mapDict
[ 70%] Built target dequeDict
[ 70%] Built target unordered_setDict
[ 70%] Built target map2Dict
[ 70%] Built target vectorDict
[ 70%] Built target listDict
[ 70%] Built target unordered_multisetDict
[ 70%] Built target forward_listDict
[ 70%] Built target New
[ 70%] Built target unordered_multimapDict
[ 70%] Built target JupyROOT
[ 70%] Built target rootnb.exe
[ 70%] Built target Rint
[ 70%] Built target ThreadObjs
[ 70%] Built target Thread
[ 70%] Built target root.exe
[ 70%] Built target G__Imt
[ 70%] Built target G__RIO
[ 70%] Built target Imt
[ 71%] Built target RIOObjs
[ 71%] Built target RIO
[ 71%] Built target rootcling
[ 71%] Built target G__Smatrix32
[ 71%] Built target G__GenVector32
[ 71%] Built target G__Smatrix
[ 71%] Built target G__XMLIO
[ 71%] Built target G__XMLParser
[ 71%] Built target G__Net
[ 71%] Built target G__GenVector
[ 71%] Built target G__MathCore
[ 71%] Built target G__Bonjour
[ 71%] Built target GenVector
[ 71%] Built target XMLParser
[ 72%] Built target XMLIO
[ 73%] Built target Net
[ 73%] Built target G__GQuartz
[ 73%] Built target Smatrix
[ 73%] Built target G__Netx
[ 73%] Built target G__SQLIO
[ 73%] Built target G__RLDAP
[ 73%] Built target G__RootAuth
[ 73%] Built target G__Tree
[ 73%] Built target G__RSQLite
[ 73%] Built target MathCore
[ 73%] Built target Bonjour
[ 73%] Built target rootn.exe
[ 73%] Built target RLDAP
[ 73%] Built target roots.exe
[ 73%] Built target Netx
[ 73%] Built target GQuartz
[ 73%] Built target G__Geom
[ 74%] Built target SQLIO
[ 74%] Built target G__NetxNG
[ 74%] Built target G__Matrix
[ 74%] Built target proofserv.exe
[ 74%] Built target RSQLite
[ 74%] Built target RootAuth
[ 74%] Built target NetxNG
[ 75%] Built target G__Krb5Auth
[ 75%] Built target Tree
[ 76%] Built target Geom
[ 77%] Built target Matrix
[ 77%] Built target G__Proof
[ 77%] Built target G__MultiProc
[ 77%] Built target G__PyROOT
[ 77%] Built target Krb5Auth
[ 77%] Built target G__Physics
[ 77%] Built target G__Quadp
[ 77%] Built target G__Hist
[ 78%] Built target MultiProcObjs
[ 78%] Built target Physics
[ 78%] Built target Proof
[ 78%] Built target Quadp
[ 79%] Built target MultiProc
[ 79%] Built target PyROOT
[ 80%] Built target Hist
[ 80%] Built target G__Spectrum
[ 80%] Built target G__Minuit2
[ 80%] Built target G__ProofPlayer
[ 80%] Built target G__Unuran
[ 80%] Built target G__Foam
[ 80%] Built target G__Unfold
[ 80%] Built target G__Gdml
[ 80%] Built target G__Graf
[ 80%] Built target pq2
[ 80%] Built target xpdtest
[ 80%] Built target Spectrum
[ 80%] Built target Foam
[ 80%] Built target Unfold
[ 80%] Built target Gdml
[ 80%] Built target Graf
[ 81%] Built target Minuit2
[ 81%] Built target ProofPlayer
[ 81%] Built target G__Fumili
[ 81%] Built target G__SpectrumPainter
[ 81%] Built target G__Gpad
[ 81%] Built target G__Minuit
[ 81%] Built target G__Postscript
[ 81%] Built target G__ASImage
[ 84%] Built target Unuran
[ 85%] Built target Postscript
[ 85%] Built target SpectrumPainter
[ 85%] Built target Minuit
[ 85%] Built target Fumili
[ 85%] Built target G__Html
[ 86%] Built target Gpad
[ 86%] Built target ASImage
[ 86%] Built target G__Graf3d
[ 86%] Built target G__MemStat
[ 86%] Built target G__Gui
[ 87%] Built target Html
[ 87%] Built target G__HistPainter
[ 87%] Built target G__RHTTP
[ 87%] Built target G__ProofBench
[ 87%] Built target G__RooFitCore
[ 88%] Built target MemStat
[ 88%] Built target Graf3d
[ 88%] Built target ProofBench
[ 88%] Built target RHTTP
[ 88%] Built target HistPainter
[ 88%] Built target G__GeomPainter
[ 88%] Built target G__EG
[ 88%] Built target hadd
[ 88%] Built target G__TreePlayer
[ 88%] Built target G__Table
[ 88%] Built target EG
[ 88%] Built target GeomPainter
[ 88%] Built target Table
[ 88%] Built target G__VMC
[ 89%] Built target Gui
[ 89%] Built target TreePlayer
[ 89%] Built target VMC
[ 89%] Built target G__SessionViewer
[ 89%] Built target G__Recorder
[ 89%] Built target G__GuiHtml
[ 89%] Built target G__GuiBld
[ 89%] Built target G__FitPanel
[ 89%] Built target G__ASImageGui
[ 89%] Built target G__GCocoa
[ 89%] Built target G__ProofDraw
[ 89%] Built target G__MLP
[ 89%] Built target G__Ged
[ 89%] Built target Recorder
[ 89%] Built target G__SPlot
[ 89%] Built target ASImageGui
[ 89%] Built target SessionViewer
[ 89%] Built target MLP
[ 89%] Built target GCocoa
[ 89%] Built target GuiHtml
[ 89%] Built target ProofDraw
[ 89%] Built target GuiBld
[ 89%] Built target FitPanel
[ 89%] Built target Ged
[ 89%] Built target SPlot
[ 89%] Built target G__TMVA
[ 89%] Built target G__RGL
[ 89%] Built target G__GeomBuilder
[ 89%] Built target G__TreeViewer
[ 90%] Built target TreeViewer
[ 90%] Built target GeomBuilder
[ 93%] Built target RooFitCore
[ 94%] Built target RGL
[ 94%] Built target G__RooFit
[ 94%] Built target G__Gviz3d
[ 94%] Built target G__Eve
[ 96%] Built target TMVA
[ 96%] Built target G__Genetic
[ 96%] Built target G__TMVAGui
[ 96%] Built target Gviz3d
[ 97%] Built target RooFit
[ 97%] Built target Genetic
[ 97%] Built target G__RooStats
[ 98%] Built target TMVAGui
[100%] Built target Eve
[100%] Built target RooStats
[100%] Built target G__HistFactory
[100%] Built target onepcm
[100%] Built target HistFactory
[100%] Built target hsimple
[100%] Built target hist2workspace

Try in python:

$ python
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open('root://eoslhcb.cern.ch/eos/lhcb/user/m/mwilkins/bfractions_fromGanga/MC/Up16/579.0/DVnTuples.root')
Error in <TNetXNGFile::Open>: [FATAL] Auth failed
>>> ^D

Curiously, I didn’t have to do the install_name_tool fix this time.
python2:

$ python2
Python 2.7.14 (default, Sep 25 2017, 09:54:19) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open('root://eoslhcb.cern.ch/eos/lhcb/user/m/mwilkins/bfractions_fromGanga/MC/Up16/579.0/DVnTuples.root')
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

Dear All,

Sorry for entering the thread only now.
The initial post shows that there is a problem, appearing only in Python, to load the XRootD authentication framework and related plug-ins. This is, in my opinion, what has to be unsterstood.
I would start by the python export XRD_LOGLEVEL="Debug" with the same in C++ . This may give indication where things start to break.

G Ganis

@ksmith Yeah, it looks like you’re right: there are extensive problems with the SIP. Latest issue:

cling::DynamicLibraryManager::loadLibrary(): dlopen(<path/to/>RooThreshold_cxx.so, 9): Library not loaded: @rpath/libRooFitCore.so
  Referenced from: </path/to/>RooThreshold_cxx.so
  Reason: image not found

So: Is this a real bug in ROOT? It seems like one to me.

@ganis you can see the debug level python output in my initial post, but I’ll reproduce it (so you can see the current state of things) and the C++ output here:

C++:

$ root
   -----------------------------------------------------------------
  | Welcome to ROOT 6.11/03                     http://root.cern.ch |
  |                                    (c) 1995-2017, The ROOT Team |
  | Built for macosx64                                              |
  | From heads/master@v6-11-02-3-g9bb8349ee6, Oct 10 2017, 13:40:35 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'      |
   -----------------------------------------------------------------

root [0] TFile * f = TFile::Open("root://eoslhcb.cern.ch//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root")
[2017-10-18 12:48:24.227081 +0200][Warning][Utility           ] Unable to process global config file: [ERROR] OS Error: No such file or directory
[2017-10-18 12:48:24.227152 +0200][Debug  ][Utility           ] Unable to process user config file: [ERROR] OS Error: No such file or directory
[2017-10-18 12:48:24.227242 +0200][Info   ][Utility           ] Env: Importing from shell XRD_NETWORKSTACK=IPv4 as NetworkStack
[2017-10-18 12:48:24.227282 +0200][Debug  ][PlugInMgr         ] Initializing plug-in manager...
[2017-10-18 12:48:24.227301 +0200][Debug  ][PlugInMgr         ] No default plug-in, loading plug-in configs...
[2017-10-18 12:48:24.227309 +0200][Debug  ][PlugInMgr         ] Processing plug-in definitions in /etc/xrootd/client.plugins.d...
[2017-10-18 12:48:24.227329 +0200][Debug  ][PlugInMgr         ] Unable to process directory /etc/xrootd/client.plugins.d: [ERROR] OS Error: No such file or directory
[2017-10-18 12:48:24.227340 +0200][Debug  ][PlugInMgr         ] Processing plug-in definitions in /Users/michael/.xrootd/client.plugins.d...
[2017-10-18 12:48:24.227350 +0200][Debug  ][PlugInMgr         ] Unable to process directory /Users/michael/.xrootd/client.plugins.d: [ERROR] OS Error: No such file or directory
[2017-10-18 12:48:24.227358 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSeckrb5.so
[2017-10-18 12:48:24.228599 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecgsi.so
[2017-10-18 12:48:24.229985 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecgsiAuthzVO.so
[2017-10-18 12:48:24.231116 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecgsiGMAPDN.so
[2017-10-18 12:48:24.232277 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecpwd.so
[2017-10-18 12:48:24.233269 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecsss.so
[2017-10-18 12:48:24.234296 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecunix.so
[2017-10-18 12:48:24.369715 +0200][Debug  ][Utility           ] Env: overriding entry: MultiProtocol=0 with 1
[2017-10-18 12:48:24.369801 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Sending an open command
[2017-10-18 12:48:24.369860 +0200][Debug  ][Poller            ] Available pollers: built-in
[2017-10-18 12:48:24.369867 +0200][Debug  ][Poller            ] Attempting to create a poller according to preference: built-in
[2017-10-18 12:48:24.369874 +0200][Debug  ][Poller            ] Creating poller: built-in
[2017-10-18 12:48:24.369879 +0200][Debug  ][Poller            ] Creating and starting the built-in poller...
[2017-10-18 12:48:24.370012 +0200][Debug  ][Poller            ] Using 1 poller threads
[2017-10-18 12:48:24.370040 +0200][Debug  ][TaskMgr           ] Starting the task manager...
[2017-10-18 12:48:24.370086 +0200][Debug  ][TaskMgr           ] Task manager started
[2017-10-18 12:48:24.370092 +0200][Debug  ][JobMgr            ] Starting the job manager...
[2017-10-18 12:48:24.370119 +0200][Debug  ][JobMgr            ] Job manager started, 3 workers
[2017-10-18 12:48:24.370128 +0200][Debug  ][TaskMgr           ] Registering task: "FileTimer task" to be run at: [2017-10-18 12:48:24 +0200]
[2017-10-18 12:48:24.370145 +0200][Debug  ][PostMaster        ] Creating new channel to: eoslhcb.cern.ch:1094 1 stream(s)
[2017-10-18 12:48:24.370157 +0200][Debug  ][PostMaster        ] [eoslhcb.cern.ch:1094 #0] Stream parameters: Network Stack: IPv4, Connection Window: 120, ConnectionRetry: 5, Stream Error Widnow: 1800
[2017-10-18 12:48:24.370877 +0200][Debug  ][TaskMgr           ] Registering task: "TickGeneratorTask for: eoslhcb.cern.ch:1094" to be run at: [2017-10-18 12:48:39 +0200]
[2017-10-18 12:48:24.371154 +0200][Debug  ][PostMaster        ] [eoslhcb.cern.ch:1094] Found 1 address(es): [::ffff:188.184.38.44]:1094
[2017-10-18 12:48:24.371197 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Attempting connection to [::ffff:188.184.38.44]:1094
[2017-10-18 12:48:24.371338 +0200][Debug  ][Poller            ] Adding socket 0x38938fa0 to the poller
[2017-10-18 12:48:24.392193 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Async connection call returned
[2017-10-18 12:48:24.392350 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Sending out the initial hand shake + kXR_protocol
[2017-10-18 12:48:24.408268 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Got the server hand shake response (type: manager [], protocol version 310)
[2017-10-18 12:48:24.408347 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] kXR_protocol successful (type: manager [], protocol version 310)
[2017-10-18 12:48:24.412157 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Sending out kXR_login request, username: michael, cgi: ?xrd.cc=ch&xrd.tz=1&xrd.appname=root.exe&xrd.info=&xrd.hostname=michaelsmacbookpro.dyndns.cern.ch&xrd.rn=v4.6.1, dual-stack: false, private IPv4: false, private IPv6: false
[2017-10-18 12:48:24.413201 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Logged in, session: d1e20100674b0000ce00000094e30100
[2017-10-18 12:48:24.413227 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Authentication is required: &P=krb5,xrootd/eoslhcb.cern.ch@CERN.CH&P=gsi,v:10300,c:ssl,ca:5168735f.0|4339b4bc.0&P=unix&P=sss,0.13:/etc/eos.keytab
[2017-10-18 12:48:24.413244 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Sending authentication data
[2017-10-18 12:48:24.415358 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Trying to authenticate using krb5
[2017-10-18 12:48:24.448443 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Authenticated with krb5.
[2017-10-18 12:48:24.448486 +0200][Debug  ][PostMaster        ] [eoslhcb.cern.ch:1094 #0] Stream 0 connected.
[2017-10-18 12:48:24.448497 +0200][Debug  ][Utility           ] Monitor library name not set. No monitoring
[2017-10-18 12:48:24.451749 +0200][Debug  ][PostMaster        ] Creating new channel to: p06253967r10312.cern.ch:1095 1 stream(s)
[2017-10-18 12:48:24.451783 +0200][Debug  ][PostMaster        ] [p06253967r10312.cern.ch:1095 #0] Stream parameters: Network Stack: IPv4, Connection Window: 120, ConnectionRetry: 5, Stream Error Widnow: 1800
[2017-10-18 12:48:24.453537 +0200][Debug  ][TaskMgr           ] Registering task: "TickGeneratorTask for: p06253967r10312.cern.ch:1095" to be run at: [2017-10-18 12:48:39 +0200]
[2017-10-18 12:48:24.453937 +0200][Debug  ][PostMaster        ] [p06253967r10312.cern.ch:1095] Found 1 address(es): [::ffff:188.185.235.22]:1095
[2017-10-18 12:48:24.453975 +0200][Debug  ][AsyncSock         ] [p06253967r10312.cern.ch:1095 #0.0] Attempting connection to [::ffff:188.185.235.22]:1095
[2017-10-18 12:48:24.454095 +0200][Debug  ][Poller            ] Adding socket 0x38a96650 to the poller
[2017-10-18 12:48:24.492579 +0200][Debug  ][AsyncSock         ] [p06253967r10312.cern.ch:1095 #0.0] Async connection call returned
[2017-10-18 12:48:24.492669 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Sending out the initial hand shake + kXR_protocol
[2017-10-18 12:48:24.532419 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Got the server hand shake response (type: server [], protocol version 310)
[2017-10-18 12:48:24.532581 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] kXR_protocol successful (type: server [], protocol version 310)
[2017-10-18 12:48:24.535453 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Sending out kXR_login request, username: michael, cgi: ?xrd.cc=ch&xrd.tz=1&xrd.appname=root.exe&xrd.info=&xrd.hostname=michaelsmacbookpro.dyndns.cern.ch&xrd.rn=v4.6.1, dual-stack: false, private IPv4: false, private IPv6: false
[2017-10-18 12:48:24.558649 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Logged in, session: 67b9020063240000040100006cb90200
[2017-10-18 12:48:24.558677 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Authentication is required: &P=unix&P=sss,0.13:/etc/eos.keytab
[2017-10-18 12:48:24.558687 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Sending authentication data
[2017-10-18 12:48:24.558751 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Trying to authenticate using unix
[2017-10-18 12:48:24.596112 +0200][Debug  ][XRootDTransport   ] [p06253967r10312.cern.ch:1095 #0.0] Authenticated with unix.
[2017-10-18 12:48:24.596163 +0200][Debug  ][PostMaster        ] [p06253967r10312.cern.ch:1095 #0] Stream 0 connected.
[2017-10-18 12:48:24.621074 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Open has returned with status [SUCCESS] 
[2017-10-18 12:48:24.621131 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] successfully opened at p06253967r10312.cern.ch:1095, handle: 0x0, session id: 1
[2017-10-18 12:48:24.621335 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Sending a read command for handle 0x0 to p06253967r10312.cern.ch:1095
[2017-10-18 12:48:24.650495 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Sending a read command for handle 0x0 to p06253967r10312.cern.ch:1095
[2017-10-18 12:48:24.681372 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Sending a read command for handle 0x0 to p06253967r10312.cern.ch:1095
(TFile *) 0x7faf38943ac0
root [1] .q
[2017-10-18 12:48:30.624617 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Sending a close command for handle 0x0 to p06253967r10312.cern.ch:1095
[2017-10-18 12:48:30.664252 +0200][Debug  ][File              ] [0x367fbe40@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Close returned from p06253967r10312.cern.ch:1095 with: [SUCCESS] 
[2017-10-18 12:48:30.665775 +0200][Debug  ][JobMgr            ] Stopping the job manager...
[2017-10-18 12:48:30.665973 +0200][Debug  ][JobMgr            ] Job manager stopped
[2017-10-18 12:48:30.665989 +0200][Debug  ][TaskMgr           ] Stopping the task manager...
[2017-10-18 12:48:30.666016 +0200][Debug  ][TaskMgr           ] Task manager stopped
[2017-10-18 12:48:30.666025 +0200][Debug  ][Poller            ] Stopping the poller...
[2017-10-18 12:48:30.666096 +0200][Debug  ][TaskMgr           ] Requesting unregistration of: "TickGeneratorTask for: eoslhcb.cern.ch:1094"
[2017-10-18 12:48:30.666107 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Closing the socket
[2017-10-18 12:48:30.666116 +0200][Debug  ][Poller            ] <[::ffff:128.141.238.209]:52309><--><[::ffff:188.184.38.44]:1094> Removing socket from the poller
[2017-10-18 12:48:30.666176 +0200][Debug  ][PostMaster        ] [eoslhcb.cern.ch:1094 #0] Destroying stream
[2017-10-18 12:48:30.666209 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Closing the socket
[2017-10-18 12:48:30.666222 +0200][Debug  ][TaskMgr           ] Requesting unregistration of: "TickGeneratorTask for: p06253967r10312.cern.ch:1095"
[2017-10-18 12:48:30.666231 +0200][Debug  ][AsyncSock         ] [p06253967r10312.cern.ch:1095 #0.0] Closing the socket
[2017-10-18 12:48:30.666238 +0200][Debug  ][Poller            ] <[::ffff:128.141.238.209]:52310><--><[::ffff:188.185.235.22]:1095> Removing socket from the poller
[2017-10-18 12:48:30.666269 +0200][Debug  ][PostMaster        ] [p06253967r10312.cern.ch:1095 #0] Destroying stream
[2017-10-18 12:48:30.666299 +0200][Debug  ][AsyncSock         ] [p06253967r10312.cern.ch:1095 #0.0] Closing the socket

python:

$ /usr/bin/python
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open("root://eoslhcb.cern.ch//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root")
[2017-10-18 12:53:29.627233 +0200][Warning][Utility           ] Unable to process global config file: [ERROR] OS Error: No such file or directory
[2017-10-18 12:53:29.627328 +0200][Debug  ][Utility           ] Unable to process user config file: [ERROR] OS Error: No such file or directory
[2017-10-18 12:53:29.627406 +0200][Info   ][Utility           ] Env: Importing from shell XRD_NETWORKSTACK=IPv4 as NetworkStack
[2017-10-18 12:53:29.627438 +0200][Debug  ][PlugInMgr         ] Initializing plug-in manager...
[2017-10-18 12:53:29.627457 +0200][Debug  ][PlugInMgr         ] No default plug-in, loading plug-in configs...
[2017-10-18 12:53:29.627466 +0200][Debug  ][PlugInMgr         ] Processing plug-in definitions in /etc/xrootd/client.plugins.d...
[2017-10-18 12:53:29.627486 +0200][Debug  ][PlugInMgr         ] Unable to process directory /etc/xrootd/client.plugins.d: [ERROR] OS Error: No such file or directory
[2017-10-18 12:53:29.627498 +0200][Debug  ][PlugInMgr         ] Processing plug-in definitions in /Users/michael/.xrootd/client.plugins.d...
[2017-10-18 12:53:29.627510 +0200][Debug  ][PlugInMgr         ] Unable to process directory /Users/michael/.xrootd/client.plugins.d: [ERROR] OS Error: No such file or directory
[2017-10-18 12:53:29.627518 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSeckrb5.so
[2017-10-18 12:53:29.627735 +0200][Error  ][Utility           ] Unable to pre-load libXrdSeckrb5.so: Plugin unable to load libXrdSeckrb5-4.so; dlopen(libXrdSeckrb5-4.so, 256): image not found
[2017-10-18 12:53:29.627749 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecgsi.so
[2017-10-18 12:53:29.627850 +0200][Error  ][Utility           ] Unable to pre-load libXrdSecgsi.so: Plugin unable to load libXrdSecgsi-4.so; dlopen(libXrdSecgsi-4.so, 256): image not found
[2017-10-18 12:53:29.627862 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecgsiAuthzVO.so
[2017-10-18 12:53:29.627950 +0200][Error  ][Utility           ] Unable to pre-load libXrdSecgsiAuthzVO.so: Plugin unable to load libXrdSecgsiAuthzVO-4.so; dlopen(libXrdSecgsiAuthzVO-4.so, 256): image not found
[2017-10-18 12:53:29.627969 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecgsiGMAPDN.so
[2017-10-18 12:53:29.628058 +0200][Error  ][Utility           ] Unable to pre-load libXrdSecgsiGMAPDN.so: Plugin unable to load libXrdSecgsiGMAPDN-4.so; dlopen(libXrdSecgsiGMAPDN-4.so, 256): image not found
[2017-10-18 12:53:29.628073 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecpwd.so
[2017-10-18 12:53:29.628156 +0200][Error  ][Utility           ] Unable to pre-load libXrdSecpwd.so: Plugin unable to load libXrdSecpwd-4.so; dlopen(libXrdSecpwd-4.so, 256): image not found
[2017-10-18 12:53:29.628167 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecsss.so
[2017-10-18 12:53:29.628252 +0200][Error  ][Utility           ] Unable to pre-load libXrdSecsss.so: Plugin unable to load libXrdSecsss-4.so; dlopen(libXrdSecsss-4.so, 256): image not found
[2017-10-18 12:53:29.628276 +0200][Debug  ][Utility           ] Attempting to pre-load: libXrdSecunix.so
[2017-10-18 12:53:29.628349 +0200][Error  ][Utility           ] Unable to pre-load libXrdSecunix.so: Plugin unable to load libXrdSecunix-4.so; dlopen(libXrdSecunix-4.so, 256): image not found
[2017-10-18 12:53:29.779886 +0200][Debug  ][Utility           ] Env: overriding entry: MultiProtocol=0 with 1
[2017-10-18 12:53:29.779985 +0200][Debug  ][File              ] [0x54312ad0@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Sending an open command
[2017-10-18 12:53:29.780047 +0200][Debug  ][Poller            ] Available pollers: built-in
[2017-10-18 12:53:29.780054 +0200][Debug  ][Poller            ] Attempting to create a poller according to preference: built-in
[2017-10-18 12:53:29.780061 +0200][Debug  ][Poller            ] Creating poller: built-in
[2017-10-18 12:53:29.780067 +0200][Debug  ][Poller            ] Creating and starting the built-in poller...
[2017-10-18 12:53:29.780245 +0200][Debug  ][Poller            ] Using 1 poller threads
[2017-10-18 12:53:29.780273 +0200][Debug  ][TaskMgr           ] Starting the task manager...
[2017-10-18 12:53:29.780302 +0200][Debug  ][TaskMgr           ] Task manager started
[2017-10-18 12:53:29.780310 +0200][Debug  ][JobMgr            ] Starting the job manager...
[2017-10-18 12:53:29.780393 +0200][Debug  ][JobMgr            ] Job manager started, 3 workers
[2017-10-18 12:53:29.780409 +0200][Debug  ][TaskMgr           ] Registering task: "FileTimer task" to be run at: [2017-10-18 12:53:29 +0200]
[2017-10-18 12:53:29.780434 +0200][Debug  ][PostMaster        ] Creating new channel to: eoslhcb.cern.ch:1094 1 stream(s)
[2017-10-18 12:53:29.780450 +0200][Debug  ][PostMaster        ] [eoslhcb.cern.ch:1094 #0] Stream parameters: Network Stack: IPv4, Connection Window: 120, ConnectionRetry: 5, Stream Error Widnow: 1800
[2017-10-18 12:53:29.781150 +0200][Debug  ][TaskMgr           ] Registering task: "TickGeneratorTask for: eoslhcb.cern.ch:1094" to be run at: [2017-10-18 12:53:44 +0200]
[2017-10-18 12:53:29.781521 +0200][Debug  ][PostMaster        ] [eoslhcb.cern.ch:1094] Found 1 address(es): [::ffff:188.184.38.44]:1094
[2017-10-18 12:53:29.781622 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Attempting connection to [::ffff:188.184.38.44]:1094
[2017-10-18 12:53:29.781729 +0200][Debug  ][Poller            ] Adding socket 0x541c5770 to the poller
[2017-10-18 12:53:29.799548 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Async connection call returned
[2017-10-18 12:53:29.799738 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Sending out the initial hand shake + kXR_protocol
[2017-10-18 12:53:29.815574 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Got the server hand shake response (type: manager [], protocol version 310)
[2017-10-18 12:53:29.815688 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] kXR_protocol successful (type: manager [], protocol version 310)
[2017-10-18 12:53:29.821975 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Sending out kXR_login request, username: michael, cgi: ?xrd.cc=ch&xrd.tz=1&xrd.appname=Python&xrd.info=&xrd.hostname=michaelsmacbookpro.dyndns.cern.ch&xrd.rn=v4.6.1, dual-stack: false, private IPv4: false, private IPv6: false
[2017-10-18 12:53:29.861054 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Logged in, session: 2ae60100674b0000dc040000ede60100
[2017-10-18 12:53:29.861164 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Authentication is required: &P=krb5,xrootd/eoslhcb.cern.ch@CERN.CH&P=gsi,v:10300,c:ssl,ca:5168735f.0|4339b4bc.0&P=unix&P=sss,0.13:/etc/eos.keytab
[2017-10-18 12:53:29.861193 +0200][Debug  ][XRootDTransport   ] [eoslhcb.cern.ch:1094 #0.0] Sending authentication data
[2017-10-18 12:53:29.861671 +0200][Error  ][XRootDTransport   ] Unable to get the security framework: Plugin dlopen(libXrdSec-4.so, 256): image not found seclib libXrdSec-4.so
[2017-10-18 12:53:29.861728 +0200][Error  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Socket error while handshaking: [FATAL] Auth failed
[2017-10-18 12:53:29.861743 +0200][Debug  ][AsyncSock         ] [eoslhcb.cern.ch:1094 #0.0] Closing the socket
[2017-10-18 12:53:29.861757 +0200][Debug  ][Poller            ] <[::ffff:128.141.238.209]:52385><--><[::ffff:188.184.38.44]:1094> Removing socket from the poller
[2017-10-18 12:53:29.861929 +0200][Error  ][PostMaster        ] [eoslhcb.cern.ch:1094 #0] Unable to recover: [FATAL] Auth failed.
[2017-10-18 12:53:29.861966 +0200][Error  ][XRootD            ] [eoslhcb.cern.ch:1094] Impossible to send message kXR_open (file: /eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root, mode: 00, flags: kXR_open_read kXR_async kXR_retstat ). Trying to recover.
[2017-10-18 12:53:29.861989 +0200][Debug  ][XRootD            ] [eoslhcb.cern.ch:1094] Handling error while processing kXR_open (file: /eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root, mode: 00, flags: kXR_open_read kXR_async kXR_retstat ): [FATAL] Auth failed.
[2017-10-18 12:53:29.862040 +0200][Debug  ][File              ] [0x54312ad0@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Open has returned with status [FATAL] Auth failed
[2017-10-18 12:53:29.862061 +0200][Debug  ][File              ] [0x54312ad0@root://eoslhcb.cern.ch:1094//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root] Error while opening at eoslhcb.cern.ch:1094: [FATAL] Auth failed
[2017-10-18 12:53:29.862081 +0200][Debug  ][Utility           ] Monitor library name not set. No monitoring
Error in <TNetXNGFile::Open>: [FATAL] Auth failed

FYI, I just installed Anaconda and tried building root against that python build ($ cmake ../root -DPYTHON_EXECUTABLE=/Users/michael/anaconda2/bin/python -Dall=On) but again it wouldn’t work. I am consistently unable to get PyROOT to work in any build other than the default system one.

Has the PYTHON_EXECUTABLE flag been tested with a recent build? I have only ever compiled against a different python by changing the path so the the preferred python comes first.

So the Anaconda installation seems to insert its own version first in the path:

$ which python
/Users/michael/anaconda2/bin/python

So I checked out ROOT again and did cmake and make again, no flags besides -Dall, and it seems ROOT still isn’t built against the anaconda python. It’s still built on the system version:

$ python
Python 2.7.13 |Anaconda, Inc.| (default, Sep 21 2017, 17:38:20) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
$ /usr/bin/python
Python 2.7.10 (default, Jul 15 2017, 17:16:57) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open("root://eoslhcb.cern.ch//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root")
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_build/lib/libNetxNG.so, 9): Library not loaded: libXrdUtils.2.dylib
  Referenced from: /Applications/root_build/lib/libNetxNG.so
  Reason: unsafe use of relative rpath libXrdUtils.2.dylib in /Applications/root_build/lib/libNetxNG.so with restricted binary
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libNetxNG.so for TNetXNGSystem
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_build/lib/libNetxNG.so, 9): Library not loaded: libXrdUtils.2.dylib
  Referenced from: /Applications/root_build/lib/libNetxNG.so
  Reason: unsafe use of relative rpath libXrdUtils.2.dylib in /Applications/root_build/lib/libNetxNG.so with restricted binary
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_build/lib/libNetxNG.so, 9): Library not loaded: libXrdUtils.2.dylib
  Referenced from: /Applications/root_build/lib/libNetxNG.so
  Reason: unsafe use of relative rpath libXrdUtils.2.dylib in /Applications/root_build/lib/libNetxNG.so with restricted binary
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libNetxNG.so for TNetXNGFile
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_build/lib/libNetxNG.so, 9): Library not loaded: libXrdUtils.2.dylib
  Referenced from: /Applications/root_build/lib/libNetxNG.so
  Reason: unsafe use of relative rpath libXrdUtils.2.dylib in /Applications/root_build/lib/libNetxNG.so with restricted binary

@ksmith So it looks like you’re right. It’s an issue with SIP that can be worked around using a different, non-system python. However, that one flag alone is not enough. I had to do:

cmake -Dall=On -DPYTHON_EXECUTABLE=/usr/local/bin/python2 -DPYTHON_INCLUDE_DIR=/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/Headers -DPYTHON_LIBRARY=/usr/local/Cellar/python/2.7.14/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib ../root/ 

pointing it at the Homebrew version of python. Now, everything works as expected, i.e.:

$ python
Python 2.7.13 |Anaconda, Inc.| (default, Sep 21 2017, 17:38:20) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6
$ python2
Python 2.7.14 (default, Sep 25 2017, 09:54:19) 
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT; f = ROOT.TFile.Open("root://eoslhcb.cern.ch//eos/lhcb/user/m/mwilkins/bfractions_fromGanga/data/Down16/548.100/DVnTuples.root")

(From start to finish, the only steps seem to be brew install python, checking out the git repo, doing the fix mentioned here, making a root_build directory and navigating to it, then doing cmake as above, then make.)

I think I’d prefer the Anaconda version (if only so I can type python instead of python2 at the prompt), so I have to track down its include dir and libraries for the flags, but I have a function version of ROOT now. Thanks again for all your help.

Thanks for doing the leg work on this. In addition to assisting those who want to use non-default python versions this is also needed for python3 installations when python2 is the default. I was going to update the other topic, but it is locked. So the best I can do is link it here and hope that it is seen by others with this issue:

You can always create an alias that points to the python2 version:

alias python=python2

Credit to my colleague for pointing out the solution to me.

Yeah, I’ll probably just alias it rather than spend more time working it out.

Thanks again.

Just for the record, if you are using anaconda and relying on LD_LIBRARY_PATH and the like, when you source $ROOTSYS/bin/thisroot.sh, that changes LD_LIBRARY_PATH, which may make anaconda software start to use libraries from a different place, e.g. system libraries instead of anaconda libraries. One solution might be to put directories in the right order by hand. I would try with anaconda directories first, then ROOT’s directories, then the system ones. That way anaconda’s python won’t break due to usage of system libraries.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.