# Error when trying to run ROOT in conda virtual environment

**URL:** <https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707>\
**Category:** Newbie\
**Created:** [September 19, 2024, 4:05am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707 "2024-09-19T04:05:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chanhyuk\_Park](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/chanhyuk_park/32/37659_2.png) [@Chanhyuk\_Park](https://root-forum.cern.ch/u/Chanhyuk_Park)\
**Post date:** [September 19, 2024, 4:05am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707/1 "2024-09-19T04:05:36Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [September 19, 2024, 5:06am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707/2 "2024-09-19T05:06:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [September 21, 2024, 10:31am UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707/3 "2024-09-21T10:31:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fsili](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/6de8d8/32.png) [@fsili](https://root-forum.cern.ch/u/fsili)\
**Post date:** [October 6, 2024, 8:30pm UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-root-in-conda-virtual-environment/61707/4 "2024-10-06T20:30:38Z")

</div>

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:

```bash
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:

```bash
mamba create --name pyroot3 root=6.32.0=py310hcfcc87f_0

```

However, when I rolled back to ROOT v 6.30.04

```bash
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 🙂

Best,  
Fran
