Importing ROOT on macOS Sequoia 15.0

Hello, I’m trying to create a Conda environment on my Mac (macOS Sequoia 15.0). I’ve encountered some problems finding the right versions of Python and ROOT to import. Than I finally came across a question in this forum (“Root got error with anaconda”, unfortunately I can’t attach the link because I’m a new user) from someone who got my same error and I followed his advice to install Python 3.10 and root 6.30.4 for Sequoia 15.0. So I created my environment (conda create --name pyroot python=3.10) where I installed python 3.10 and root 6.30 (conda install -c conda-forge root=6.30.4). Now I get this error when I try to import ROOT:

import ROOT
In module ‘Darwin’:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/OSByteOrder.h:14:1: error: ‘_OSSwapInt16’ has different definitions in different modules; definition in
module ‘Darwin.libkern.OSByteOrder’ first difference is return type is
‘uint16_t’ (aka ‘unsigned short’)
uint16_t
^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/_OSByteOrder.h:49:1: note: but in ‘DarwinFoundation.OSByteOrder’ found different return type ‘__uint16_t’
(aka ‘unsigned short’)
__uint16_t
^~~~~~~~~~
In module ‘Darwin’:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/OSByteOrder.h:24:1: error: ‘_OSSwapInt32’ has different definitions in different modules; definition in
module ‘Darwin.libkern.OSByteOrder’ first difference is return type is
‘uint32_t’ (aka ‘unsigned int’)
uint32_t
^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/_OSByteOrder.h:59:1: note: but in ‘DarwinFoundation.OSByteOrder’ found different return type ‘__uint32_t’
(aka ‘unsigned int’)
__uint32_t
^~~~~~~~~~
In module ‘Darwin’:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/OSByteOrder.h:40:1: error: ‘_OSSwapInt64’ has different definitions in different modules; definition in
module ‘Darwin.libkern.OSByteOrder’ first difference is return type is
‘uint64_t’ (aka ‘unsigned long long’)
uint64_t
^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/libkern/arm/_OSByteOrder.h:75:1: note: but in ‘DarwinFoundation.OSByteOrder’ found different return type ‘__uint64_t’
(aka ‘unsigned long long’)
__uint64_t
^~~~~~~~~~

I thing it is related to Xcode tools, but I’m not sure. Can someone please help me? Thanks in advance for any suggestions.

Cheers

Chiara

Dear @Chiara_Di_Blasi ,

The new update to MacOS has brought changes that we have to adapt. The conda environment seems to be affected. I am trying to investigate the situation, I still don’t have an estimated timeline for that. I will keep you updated.

Cheers,
Vincenzo

1 Like

Which Command LIne Tools version do you have ? 16 ? You can find it with:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
1 Like

Yes, thank you for your answer. That’s what I see on my terminal using this command:

package-id: com.apple.pkg.CLTools_Executables
version: 16.0.0.0.1.1724870825
volume: /
location: /
install-time: 1727015490

Thank you for your answer. I tried to do some histograms yesterday, ignoring the error I get importing ROOT, and it seemed to work. However, I will wait for further explanations on this.

Yes, thank you for your answer. That’s what I see on my terminal using this command:

package-id: com.apple.pkg.CLTools_Executables
version: 16.0.0.0.1.1724870825
volume: /
location: /
install-time: 1727015490