Problems in PyROOT and calling in ROOT functions


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

ROOT Version: Built for linuxx8664gcc on Nov 27 2025, 09:05:19
From tags/v6-38-00@v6-38-00
Platform: Windows Subsystem for Linux (Ubuntu)
Compiler: gcc,g++,cling

Hi,

I have several issues with my program and ROOT atm. First, when calling root, I believe that it is launch Root from my Windows install instead of the version installed on linux. Is there a solution for this? I double checked the path variables, and even after updating it still causes issues.

Also, I think there is an issue with cling. when checking the root version, it throws out this error:


ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
LC_ALL=C x86_64-linux-gnu-g+±15 -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’
Results was:
With exit code 0
ROOT Version: 6.38.00
Built for linuxx8664gcc on Nov 27 2025, 09:05:19
From tags/v6-38-00@v6-38-00

How did you install ROOT in your WSL Ubuntu? You should first install (inside that Ubuntu) the ROOT dependencies (Dependencies - ROOT), then download the binary version for your specific version of Ubuntu and extract it to a directory inside that Ubuntu (e.g. /home/yourusername/root/ --use the appropriate path for your system) and source thisroot.sh from that directory in your ~/.bashrc file (add the line source /home/yourusername/root/bin/thisroot.sh at the end of that file). Then close and reopen the Ubuntu prompt (window), or do source ~/.bashrc, then just run root from the Ubuntu prompt.