[CEA 48169] Windows + Numba: cppyy.sizeof('void*') Issue?


ROOT Version: 6.36.06
Platform: win64
Compiler: 19.39.33521.0


Hello,

I want to test your RDataFrame example on Windows: ROOT: ROOT::RDataFrame Class Reference
Python interface / User code in the RDataFrame workflow / Python code:

@ROOT.Numba.Declare(["float"], "bool")
def myFilter(x):
    return x > 10
 
df = ROOT.RDataFrame("myTree", "myFile.root")
sum = df.Filter("Numba::myFilter(x)").Sum("y")
print(sum.GetValue())

Prerequisites

ROOT

I installed your binary package for Windows: https://root.cern/download/root_v6.36.06.win64.python311.vc17.zip

PS C:\Users\...\48169\roottest> . C:\Users\...\48138\downloads\root_v6.36.06.win64.python311.vc17\root\bin\thisroot.ps1
PS C:\Users\...\48169\roottest> root -q
   ------------------------------------------------------------------
  | Welcome to ROOT 6.36.06                        https://root.cern |
  | (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for win64 on Nov 25 2025, 11:53:37                         |
  | From tags/v6-36-06@v6-36-06                                      |
  | With MSVC 19.39.33521.0                                          |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

Python

Then I created a virtual environment:

PS C:\Users\...\48169\roottest> root-config --python-version
3.11.7
PS C:\Users\...\48169\roottest> py -3.11 -m venv numba
PS C:\Users\...\48169\roottest> & .\numba\Scripts\Activate.ps1
(numba) PS C:\Users\...\48169\roottest> py -3.11 -m pip install numba cffi
Collecting numba
  Using cached numba-0.62.1-cp311-cp311-win_amd64.whl.metadata (2.9 kB)
Requirement already satisfied: cffi in c:\users\...\appdata\local\programs\python\python311\lib\site-packages (2.0.0)
Collecting llvmlite<0.46,>=0.45.0dev0 (from numba)
  Using cached llvmlite-0.45.1-cp311-cp311-win_amd64.whl.metadata (5.0 kB)
Collecting numpy<2.4,>=1.22 (from numba)
  Using cached numpy-2.3.5-cp311-cp311-win_amd64.whl.metadata (60 kB)
Requirement already satisfied: pycparser in c:\users\...\appdata\local\programs\python\python311\lib\site-packages (from cffi) (2.23)
Using cached numba-0.62.1-cp311-cp311-win_amd64.whl (2.7 MB)
Using cached llvmlite-0.45.1-cp311-cp311-win_amd64.whl (38.1 MB)
Using cached numpy-2.3.5-cp311-cp311-win_amd64.whl (13.1 MB)
Installing collected packages: numpy, llvmlite, numba
  WARNING: The scripts f2py.exe and numpy-config.exe are installed in 'C:\Users\...\AppData\Local\Programs\Python\Python311\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed llvmlite-0.45.1 numba-0.62.1 numpy-2.3.5

[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: C:\Users\...\AppData\Local\Programs\Python\Python311\python.exe -m pip install --upgrade pip
(numba) PS C:\Users\...\48169\roottest>

Test

Script

Here is a minimal script: uranie/cea/python/filter.py · 65b3ff9b7e2d9632c1b01d2b2e87f9da82fa84f5 · Uranie CEA / ROOT / roottest · GitLab

import ROOT
import cppyy
import ctypes

print('c_void_p:', ctypes.sizeof(ctypes.c_void_p))
print('void*:', cppyy.sizeof('void*'))

@ROOT.Numba.Declare(["float"], "bool")
def myFilter(x):
    return x > 10

Result

Finally I got:

(numba) PS C:\Users\...\48169\roottest> py -3.11 .\uranie\cea\python\filter.py
c_void_p: 8
void*: None
Traceback (most recent call last):
  File "C:\Users\...\48169\roottest\uranie\cea\python\filter.py", line 8, in <module>
    @ROOT.Numba.Declare(["float"], "bool")
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\...\48138\downloads\root_v6.36.06.win64.python311.vc17\root\bin\ROOT\_numbadeclare.py", line 38, in _NumbaDeclareDecorator
    import cppyy.numba_ext
  File "C:\Users\...\48138\downloads\root_v6.36.06.win64.python311.vc17\root\bin\cppyy\numba_ext.py", line 35, in <module>
    ir_intptr_t = ir.IntType(cppyy.sizeof('void*')*8)
                             ~~~~~~~~~~~~~~~~~~~~~^~
TypeError: unsupported operand type(s) for *: 'NoneType' and 'int'
(numba) PS C:\Users\...\48169\roottest>

Discussion

Best regards,

Got the same results, but I don’t know if it’s Windows specific… Maybe @vpadulan can take a look and tell us more

Dear @Salomon ,

From the stacktrace I don’t see anything related to ROOT, the error appears in cppyy.numba_ext. Could you try the following in a completely clean environment (i.e. no ROOT installation at all)

pip install cppyy
python -c "import cppyy.numba_ext"

Cheers,

Vincenzo

Hello @vpadulan

Thank you for your answer.

Installation

I tried to follow Installation — cppyy 3.5.0 documentation to install cppyy on Windows:

**********************************************************************
** Visual Studio 2022 Developer PowerShell v17.14.21
** Copyright (c) 2025 Microsoft Corporation
**********************************************************************
[...]
PS C:\Users\...\48169\test> Get-ComputerInfo OsName

OsName
------
Microsoft Windows 11 Entreprise


PS C:\Users\...\48169\test> Get-Date

jeudi 4 décembre 2025 15:34:29


PS C:\Users\...\48169\test> py -3.11 -m venv 64497
PS C:\Users\...\48169\test> & .\64497\Scripts\Activate.ps1
(64497) PS C:\Users\...\48169\test> python -m pip install cppyy
Collecting cppyy
  Using cached cppyy-3.5.0-py3-none-any.whl
Collecting CPyCppyy==1.13.0 (from cppyy)
  Using cached CPyCppyy-1.13.0.tar.gz (216 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cppyy-backend==1.15.3 (from cppyy)
  Using cached cppyy_backend-1.15.3-py2.py3-none-win_amd64.whl
Collecting cppyy-cling==6.32.8 (from cppyy)
  Using cached cppyy_cling-6.32.8-py2.py3-none-win_amd64.whl.metadata (2.3 kB)
Using cached cppyy_cling-6.32.8-py2.py3-none-win_amd64.whl (30.1 MB)
Building wheels for collected packages: CPyCppyy
  Building wheel for CPyCppyy (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for CPyCppyy (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [420 lines of output]
      C:\Users\...\AppData\Local\Temp\pip-build-env-34g67uve\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: OSI Approved :: BSD License

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_ext
      building 'libcppyy' extension
      creating build\temp.win32-cpython-311\Release\src
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinclude -IC:\Users\...\48169\test\64497\include -IC:\Users\...\AppData\Local\Programs\Python\Python311\include -IC:\Users\...\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /EHsc /Tpsrc\API.cxx /Fobuild\temp.win32-cpython-311\Release\src\API.obj -O2 -Zc:__cplusplus /std:c++latest /GR /EHsc- /MD
      clÿ: Ligne de commande warning D9025ÿ: substitution de '/EHc' par '/EHc-'
[...]
      Utility.cxx
      creating C:\Users\...\AppData\Local\Temp\pip-install-1onmtoat\cpycppyy_857a7acc8a824c59942f32c2fc3b2d81\build\lib.win32-cpython-311
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\HostX86\x86\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\...\AppData\Local\Temp\pip-build-env-34g67uve\overlay\Lib\site-packages\cppyy_backend\lib /LIBPATH:C:\Users\...\48169\test\64497\libs /LIBPATH:C:\Users\...\AppData\Local\Programs\Python\Python311\libs /LIBPATH:C:\Users\...\AppData\Local\Programs\Python\Python311 /LIBPATH:C:\Users\...\48169\test\64497\PCbuild\win32 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\ATLMFC\lib\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\x86" libcppyy_backend.lib libCoreLegacy.lib /EXPORT:PyInit_libcppyy build\temp.win32-cpython-311\Release\src\API.obj build\temp.win32-cpython-311\Release\src\CPPClassMethod.obj build\temp.win32-cpython-311\Release\src\CPPConstructor.obj build\temp.win32-cpython-311\Release\src\CPPDataMember.obj build\temp.win32-cpython-311\Release\src\CPPEnum.obj build\temp.win32-cpython-311\Release\src\CPPExcInstance.obj build\temp.win32-cpython-311\Release\src\CPPFunction.obj build\temp.win32-cpython-311\Release\src\CPPGetSetItem.obj build\temp.win32-cpython-311\Release\src\CPPInstance.obj build\temp.win32-cpython-311\Release\src\CPPMethod.obj build\temp.win32-cpython-311\Release\src\CPPOperator.obj build\temp.win32-cpython-311\Release\src\CPPOverload.obj build\temp.win32-cpython-311\Release\src\CPPScope.obj build\temp.win32-cpython-311\Release\src\CPyCppyyModule.obj build\temp.win32-cpython-311\Release\src\CallContext.obj build\temp.win32-cpython-311\Release\src\Converters.obj build\temp.win32-cpython-311\Release\src\CustomPyTypes.obj build\temp.win32-cpython-311\Release\src\DispatchPtr.obj build\temp.win32-cpython-311\Release\src\Dispatcher.obj build\temp.win32-cpython-311\Release\src\Executors.obj build\temp.win32-cpython-311\Release\src\LowLevelViews.obj build\temp.win32-cpython-311\Release\src\MemoryRegulator.obj build\temp.win32-cpython-311\Release\src\ProxyWrappers.obj build\temp.win32-cpython-311\Release\src\PyException.obj build\temp.win32-cpython-311\Release\src\PyResult.obj build\temp.win32-cpython-311\Release\src\PyStrings.obj build\temp.win32-cpython-311\Release\src\Pythonize.obj build\temp.win32-cpython-311\Release\src\TPyArg.obj build\temp.win32-cpython-311\Release\src\TPyClassGenerator.obj build\temp.win32-cpython-311\Release\src\TemplateProxy.obj build\temp.win32-cpython-311\Release\src\TupleOfInstances.obj build\temp.win32-cpython-311\Release\src\TypeManip.obj build\temp.win32-cpython-311\Release\src\Utility.obj /OUT:build\lib.win32-cpython-311\libcppyy.cp311-win_amd64.pyd /IMPLIB:build\temp.win32-cpython-311\Release\src\libcppyy.cp311-win_amd64.lib /EXPORT:_Init_thread_abort /EXPORT:_Init_thread_epoch /EXPORT:_Init_thread_footer /EXPORT:_Init_thread_header /EXPORT:_tls_index
         Cr‚ation de la bibliothŠque build\temp.win32-cpython-311\Release\src\libcppyy.cp311-win_amd64.lib et de l'objet build\temp.win32-cpython-311\Release\src\libcppyy.cp311-win_amd64.exp
      API.obj : error LNK2001: symbole externe non r‚solu "__declspec(dllimport) unsigned int __cdecl Cppyy::GetScope(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_?GetScope@Cppyy@@YAIABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
      API.obj : error LNK2001: symbole externe non r‚solu __imp__PyStatus_IsError
      API.obj : error LNK2001: symbole externe non r‚solu __imp__PyImport_ImportModule
      API.obj : error LNK2001: symbole externe non r‚solu __imp__PyErr_Occurred
[...]
      Utility.obj : error LNK2001: symbole externe non r‚solu __imp__PyByteArray_Type
      build\lib.win32-cpython-311\libcppyy.cp311-win_amd64.pyd : fatal error LNK1120: 292 externes non r‚solus
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX86\\x86\\link.exe' failed with exit code 1120
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for CPyCppyy
Failed to build CPyCppyy
ERROR: Could not build wheels for CPyCppyy, which is required to install pyproject.toml-based projects

[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: python.exe -m pip install --upgrade pip
(64497) PS C:\Users\...\48169\test>

But it failed.

From Source

Then I tried Installation — cppyy 3.5.0 documentation

(64497_3) PS C:\Users\...\48169\test> $Env:STDCXX=17
(64497_3) PS C:\Users\...\48169\test> $Env:MAKE_NPROCS=$(Get-ComputerInfo -Property CsProcessors).CsProcessors.NumberOfCores[0]
(64497_3) PS C:\Users\...\48169\test> python -m pip install --verbose cppyy --no-binary=cppyy-cling
Using pip 24.0 from C:\Users\...\48169\test\64497_3\Lib\site-packages\pip (python 3.11)
Collecting cppyy
  Using cached cppyy-3.5.0-py3-none-any.whl
Collecting CPyCppyy==1.13.0 (from cppyy)
  Using cached CPyCppyy-1.13.0.tar.gz (216 kB)
  Running command pip subprocess to install build dependencies
  Collecting cppyy-cling==6.30.0
    Downloading cppyy-cling-6.30.0.tar.gz (56.6 MB)
       ---------------------------------------- 56.6/56.6 MB 6.7 MB/s eta 0:00:00
    Installing build dependencies: started
    Installing build dependencies: finished with status 'done'
    Getting requirements to build wheel: started
    Getting requirements to build wheel: finished with status 'done'
    Preparing metadata (pyproject.toml): started
    Preparing metadata (pyproject.toml): finished with status 'done'
  Collecting cppyy-backend==1.15.2
    Using cached cppyy_backend-1.15.2-py2.py3-none-win_amd64.whl
  Collecting setuptools
    Using cached setuptools-80.9.0-py3-none-any.whl.metadata (6.6 kB)
  Collecting wheel
    Using cached wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
  Using cached setuptools-80.9.0-py3-none-any.whl (1.2 MB)
  Using cached wheel-0.45.1-py3-none-any.whl (72 kB)
  Building wheels for collected packages: cppyy-cling
    Building wheel for cppyy-cling (pyproject.toml): started
    Building wheel for cppyy-cling (pyproject.toml): still running...
    [...]
    Building wheel for cppyy-cling (pyproject.toml): finished with status 'error'
    error: subprocess-exited-with-error

    Building wheel for cppyy-cling (pyproject.toml) did not run successfully.
    exit code: 1

    [3234 lines of output]
    C:\Users\...\AppData\Local\Temp\pip-build-env-jz0fun46\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
    !!

            ********************************************************************************
            Please consider removing the following classifiers in favor of a SPDX license expression:

            License :: OSI Approved :: University of Illinois/NCSA Open Source License
            License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)

            See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
            ********************************************************************************

    !!
      self._finalize_license_expression()
    running bdist_wheel
    <string>:321: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
    !!

            ********************************************************************************
            With Python 2.7 end-of-life, support for building universal wheels
            (i.e., wheels that support both Python 2 and Python 3)
            is being obviated.
            Please discontinue using this option, or if you still need it,
            file an issue with pypa/setuptools describing your use case.

            This deprecation is overdue, please update your project and remove deprecated
            calls to avoid build errors in the future.
            ********************************************************************************

    !!
[...]
    Now building cppyy-cling
    Creating build directory C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir ...
    Running cmake for cppyy-cling: cmake C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\src -Wno-dev -DCMAKE_CXX_STANDARD=17 -DLLVM_ENABLE_TERMINFO=0 -DLLVM_ENABLE_ASSERTIONS=0 -Dminimal=ON -Dbuiltin_cling=ON -Druntime_cxxmodules=OFF -Dbuiltin_zlib=ON -DCMAKE_BUILD_TYPE=Release -A x64 -Thost=x64 -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_INSTALL_PREFIX=C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir\install\cppyy_backend
    -- Building for: Visual Studio 17 2022
    -- Selecting Windows SDK version 10.0.26100.0 to target Windows 10.0.22631.
    -- The C compiler identification is MSVC 19.44.35221.0
    -- The CXX compiler identification is MSVC 19.44.35221.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found Git: C:/Users/.../AppData/Local/Programs/Git/cmd/git.exe (found version "2.51.1.windows.1")
    -- Looking for python ...
    -- Found Python: C:/Users/.../Documents/Tuleap/48169/test/64497_3/Scripts/python.exe (found version "3.11.9") found components: Interpreter
    -- ROOT default compression algorithm: zlib
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
    -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - not found
    -- Found Threads: TRUE
    -- Performing Test GLIBCXX_USE_CXX11_ABI
    -- Performing Test GLIBCXX_USE_CXX11_ABI - Failed
    -- Build Platform: win32
    -- Build Compiler: MSVC 19.44.35221.0
    -- Build Processor: AMD64
    -- Build Architecture: win32
    -- Build Type: 'Release' (flags = '-O2')
    -- Compiler Flags: -nologo -IC:/Users/.../AppData/Local/Temp/pip-install-r_0ofeta/cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e/src/build/win -FIw32pragma.h -FIsehmap.h -Zc:__cplusplus -std:c++17 -MD -GR -DNDEBUG -D_WINDOWS -DWIN32 -D_AMD64_ -EHsc- -W3 -wd4141 -wd4291 -wd4244 -wd4049 -wd4146 -D_WIN32  -D_XKEYCHECK_H -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS  -O2
    -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB
    -- Performing Test ROOT_HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
    -- Building LLVM in 'Release' mode.
    -- The ASM compiler identification is MSVC
    -- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe
    -- clang project is enabled
    -- clang-tools-extra project is disabled
    -- compiler-rt project is disabled
    -- cross-project-tests project is disabled
    -- libc project is disabled
    -- libclc project is disabled
    -- libcxx project is disabled
    -- libcxxabi project is disabled
    -- libunwind project is disabled
    -- lld project is disabled
    -- lldb project is disabled
    -- mlir project is disabled
    -- openmp project is disabled
    -- parallel-libs project is disabled
    -- polly project is disabled
    -- pstl project is disabled
    -- flang project is disabled
    -- Could NOT find LibXml2 (missing: LIBXML2_LIBRARY LIBXML2_INCLUDE_DIR)
    -- Looking for backtrace
    -- Looking for backtrace - not found
    -- Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
    -- Native target architecture is X86
    -- Threads disabled.
    -- Doxygen disabled.
    -- Go bindings disabled.
    -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
    -- OCaml bindings disabled.
    -- Could NOT find Python module pygments
    -- Could NOT find Python module pygments.lexers.c_cpp
    -- Could NOT find Python module yaml
    -- LLVM host triple: x86_64-pc-windows-msvc
    -- LLVM default target triple: x86_64-pc-windows-msvc
    -- Found Python3: C:/Users/.../AppData/Local/Programs/Python/Python313/python.exe (found suitable version "3.13.9", minimum required is "3.0") found components: Interpreter
    -- LLVMHello ignored -- Loadable modules not supported on this platform.
    -- Targeting X86
    -- Targeting NVPTX
    -- Clang version: 13.0.0
    -- Not building amdgpu-arch: hsa-runtime64 not found
    -- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
    -- AnnotateFunctions ignored -- Loadable modules not supported on this platform.
    -- Attribute ignored -- Loadable modules not supported on this platform.
    -- CallSuperAttr ignored -- Loadable modules not supported on this platform.
    -- BugpointPasses ignored -- Loadable modules not supported on this platform.
    -- Building Cling as part of ROOT
    -- Cling version (from VERSION file): ROOT_1.0~dev
    -- Performing Test __result
    -- Performing Test __result - Failed
    -- Performing Test CXX_HAS_fno_rtti
    -- Performing Test CXX_HAS_fno_rtti - Failed
    -- Performing Test found_setresuid
    -- Performing Test found_setresuid - Failed
    -- Performing Test found_stdstringview
    -- Performing Test found_stdstringview - Success
    -- Performing Test found_stod_stringview
    -- Performing Test found_stod_stringview - Failed
    -- Performing Test found_opplusequal_stringview
    -- Performing Test found_opplusequal_stringview - Success
    -- Performing Test found_stdapply
    -- Performing Test found_stdapply - Success
    -- Performing Test found_stdinvoke
    -- Performing Test found_stdinvoke - Success
    -- Performing Test found_stdindexsequence
    -- Performing Test found_stdindexsequence - Success
    -- Performing Test found_attribute_always_inline
    -- Performing Test found_attribute_always_inline - Failed
    -- Performing Test has_found_attribute_noinline
    -- Performing Test has_found_attribute_noinline - Failed
    -- Configuring done (63.4s)
    -- Generating done (10.2s)
    -- Build files have been written to: C:/Users/.../AppData/Local/Temp/pip-install-r_0ofeta/cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e/builddir
    Now building cppyy-cling and dependencies ...
    Version MSBuild 17.14.23+b0019275e pour .NET Framework
[...]
      SourceNormalization.cpp
    C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\src\interpreter\cling\lib\Utils\PlatformWin.cpp(391,1): error C1189: #error:  "Unsupported/Untested _MSC_VER" [C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir\interpreter\cling\lib\Utils\obj.clingUtils.vcxproj]
      Génération de code en cours.
[...]
      PtrState.cpp
      LLVMLinker.vcxproj -> C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir\interpreter\llvm-project\llvm\Release\lib\LLVMLinker.lib
    FileTracker : error FTK1011: impossible de créer le nouveau fichier journal de suivi de fichier : C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir\interpreter\llvm-project\llvm\lib\Transforms\AggressiveInstCombine\LLVMAggressiveInstCombine.dir\Release\LLVMAggr.17178629.tlog\Lib-link.read.1.tlog. Le chemin d'accès spécifié est introuvable. [C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir\interpreter\llvm-project\llvm\lib\Transforms\AggressiveInstCombine\LLVMAggressiveInstCombine.vcxproj]
[...]
      obj.clingInterpreter.vcxproj -> C:\Users\...\AppData\Local\Temp\pip-install-r_0ofeta\cppyy-cling_49babe553a6e4aa48f3a2daf6c49bf5e\builddir\interpreter\cling\lib\Interpreter\obj.clingInterpreter.dir\Release\obj.clingInterpreter.lib
    error: Failed to build cppyy-cling
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for cppyy-cling
  Failed to build cppyy-cling
  ERROR: Could not build wheels for cppyy-cling, which is required to install pyproject.toml-based projects

  [notice] A new release of pip is available: 24.0 -> 25.3
  [notice] To update, run: python.exe -m pip install --upgrade pip
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: 'C:\Users\...\48169\test\64497_3\Scripts\python.exe' 'C:\Users\...\48169\test\64497_3\Lib\site-packages\pip\__pip-runner__.py' install --ignore-installed --no-user --prefix 'C:\Users\...\AppData\Local\Temp\pip-build-env-a3k0n2bb\overlay' --no-warn-script-location --no-binary cppyy-cling --only-binary :none: -i https://pypi.org/simple -- cppyy-cling==6.30.0 cppyy-backend==1.15.2 setuptools wheel
  cwd: [inherit]
  Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

[notice] A new release of pip is available: 24.0 -> 25.3
[notice] To update, run: python.exe -m pip install --upgrade pip
(64497_3) PS C:\Users\...\48169\test>

And it also failed.

Can you help me install cppyy on Windows ?

Best regards,

Dear @Salomon ,

I am not a Windows user and I have never installed cppyy on windows. If the documentation of the project is not enough, I suggest contacting the author, perhaps via github GitHub - wlav/cppyy

Cheers,

Vincenzo

Thank you for your answer.

I’ll try to install cppyy again on Windows and contact the author if the documentation is not enough.

Best regards,