Python \include file not found producing fatal error in Root build install

I’m building root form the source and I came across this error:

<<< cling interactive line includer >>>:1:10: fatal error: ‘Files\Win
kfra8p0\include’ file not found
#include “Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11

This is confusing to me though, because this Python file \include does exist in my file manager, and It was not my intention to install pyroot anyway.

The error continues:

CUSTOMBUILD : error : Parsing #pragma failed etc\dictpch\allLinkDefs.h
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microso
ft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom bu
ild for ‘C:\Users\pomar\source\repos\BANG2024\root_build\CMakeFiles\758
\onepcm.rule’ exited with code 1. [C:\Users\pomar\source\repos\BANG2024

_ROOT Version: 6.30.04
Platform: Not Provided
_Compiler: MS Visual Studio C++ compiler

Hi Omar,

Welcome to the ROOT Community!
I am sorry you encountered this error. I propose to involve our Windows expert, @bellenot .
In the meantime, if you need to carry out some work with ROOT, you could rely on the available binary distribution that is available here.
I hope this helps.


Make sure Python is not installed in a PATH containing spaces, i.e. not in C:\Program Files\...
And is Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11 .2032.0_x64__qbz5n2kfra8p0\include the correct and full PATH?
I.e. is it really
C:\Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11 .2032.0_x64__qbz5n2kfra8p0\include?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.