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