Error when trying to run ROOT in conda virtual environment

I’m using a Macbook Pro with Sonoma 14.6.1.
I created a conda virtual environment and installed ROOT successfully.
But when I try to start a terminal session by typing in root, following error pops up.

/opt/anaconda3/envs/test_env/etc/cling/std_darwin.modulemap:153:10: error: header ‘mdspan’ not found
header “mdspan”
^
input_line_1:1:10: note: submodule of top-level module ‘std’ implicitly imported here
#include
^
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION ‘1’
Extraction of runtime standard library version was: ‘’
Replaced symbol at_quick_exit cannot be found in JIT!

Hi,

Sorry ROOT did not work out of the box for you.
This looks like a problem in your setup. What is your OS? What did you exactly do to setup ROOT?

Best,
D

Dear @Chanhyuk_Park ,

I am also on Mac 14 and I can run ROOT from conda normally. Can you show us the steps you went through to install ROOT with your setup?

Cheers
Vincenzo

Dear ROOT experts,

I’m having the exact same behavior as the OP.

I have macOS Sonoma 14.2.1 in a M3Pro Mac.
I’m using Mamba instead of Conda for managing environments and packages.

I created a virtual environment by doing:

mamba create --name pyroot2 root=6.32.0=py312hce2618c_0

and when I run root I get the error the OP mentioned. I get the error but I still get the root prompt. I tried using another python version as well but with no use:

mamba create --name pyroot3 root=6.32.0=py310hcfcc87f_0

However, when I rolled back to ROOT v 6.30.04

mamba create --name pyroot4 root=6.30.4=py311h66530a1_0

everything worked fine and I didn’t get any error.

In case you need any more information please let me know and I can provide :slight_smile:

Best,
Fran