Error on "using ROOT"
cshimmin opened this issue · 4 comments
I tried installing ROOT.jl following the instructions in the README. Everything went fine up until the Pkg.test("ROOT")
step, which gives the following error:
INFO: Testing ROOT
ERROR: unsupported or misplaced expression =>
in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in include_from_node1 at loading.jl:128
in process_options at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in _start at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
while loading /Users/cshimmin/.julia/v0.3/ROOT/src/ROOT.jl, in expression starting on line 136
while loading /Users/cshimmin/.julia/v0.3/ROOT/test/thist.jl, in expression starting on line 1
while loading /Users/cshimmin/.julia/v0.3/ROOT/test/runtests.jl, in expression starting on line 1
=======================================================================[ ERROR: ROOT ]========================================================================
failed process: Process(`/usr/local/Cellar/julia/0.3.6_1/bin/julia /Users/cshimmin/.julia/v0.3/ROOT/test/runtests.jl`, ProcessExited(1)) [1]
==============================================================================================================================================================
INFO: No packages to install, update or remove
ERROR: ROOT had test errors
in error at error.jl:21
in test at pkg/entry.jl:718
in anonymous at pkg/dir.jl:28
in cd at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in cd at pkg/dir.jl:28
in test at pkg.jl:67
I also tried running the command using ROOT
from the julia interpreter, and get essentially the same error:
ERROR: unsupported or misplaced expression =>
in include at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.6_1/lib/julia/sys.dylib
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
while loading /Users/cshimmin/.julia/v0.3/ROOT/src/ROOT.jl, in expression starting on line 136
I'm using julia 0.3.6 and ROOT v5.34/22.
Thanks for reporting. Currently we rely on new syntax introduced in Julia 0.4 for dict comprehension. I suggest switching to v0.4 as there are many other useful updates. If it is not possible, I will prepare a v0.3 branch.
Ah, thanks for responding. It was not clear from the README that julia v0.4 was required, perhaps you could add a note about it?
I am a complete julia novice and I have no ties to v0.3. I'll upgrade and give it another try, thanks!
I tried again with a v0.4 build, and it worked! Thanks again.
I updated the readme. Let me know if there are additional issues. Thanks again for reporting.