[CEA 47843] Windows: ROOT 6.36 + Python 3.13: Console (ANSI) Issue?


ROOT Version: 6.36.04
Platform: win64
Compiler: MSVC 19.33.31630.0
Python: 3.13.9


Dear ROOT Developers & Maintainers,

I compiled ROOT 6.36 on Windows 11 with Visual Studio 2022 (17.3) and Python 3.13. When I try to import ROOT in Python, I get a console issue:

PS C:\...\47843\downloads> . .\root\bin\thisroot.ps1
PS C:\...\47843\downloads> py -3.13
Python 3.13.9 (tags/v3.13.9:8183fa5, Oct 14 2025, 14:09:13) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
[?25l[1A
[?25l[?25l[1;35m>>> [0m[4D[?25h[4C

Packages

Here are the links to download packages I tested:

Request

Can you reproduce this issue?

Best regards,

with ROOT master:

(base) PS C:\root-dev> py
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>>

And with your file:

(base) PS C:\Users\bellenot\Downloads\root> py
Python 3.11.9 (tags/v3.11.9:de54cf5, Apr  2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\bellenot\Downloads\root\bin\ROOT\__init__.py", line 25, in <module>
    import cppyy
  File "C:\Users\bellenot\Downloads\root\bin\cppyy\__init__.py", line 88, in <module>
    from ._cpython_cppyy import *
  File "C:\Users\bellenot\Downloads\root\bin\cppyy\_cpython_cppyy.py", line 25, in <module>
    import libcppyy as _backend
ImportError: DLL load failed while importing libcppyy: The specified module could not be found.

I guess I’ll have to try with Python 3.13…

1 Like