After a long time of not trying, I downloaded the MSVC 2022 binaries to my laptop, to see what’s what. And I’m very pleased with how easily I could make it work. For instance, I didn’t even need to bother with starting a “development terminal”, I am able to do the following in a command prompt right away:
I was also able to open windows, and in general, the interactive session seems to work well. Kudos to you guys!
Now I thought that I might as well be greedy, and see if I could also make PyROOT work. I installed Python 3.12 out of the Microsoft Store, I pip-installed numpy on top of it, but I can’t make PyROOT load.
Microsoft Windows [Version 10.0.22631.4317]
(c) Microsoft Corporation. All rights reserved.
C:\Users\krasz>software\hep\root-6.32.06\bin\thisroot.bat
C:\Users\krasz>python
Python 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import ROOT
Fatal in <TROOT::InitInterpreter>: cannot load library The specified module could not be found.
C:\Users\krasz>
(I only put “import numpy” there to show that it’s indeed available.)
How could I figure out in more detail what the issue is? I can easily believe that the version of Python that I would’ve installed like this may not be compatible with my downloaded ROOT binaries. But I’m not sure what other version to install instead.
So, is this meant to work at all? And if so, how could I make it work on my own machine?
I even started a terminal with all of the VS2022 stuff set up, in case that may be needed for PyROOT. Any way to get a more verbose error message that would hint in more detail at what’s going wrong?
I had to do a bit of cleanup. It turned out that I had an installation of Python 3.9 in my home directory, while also adding 3.12 and then 3.11 using Microsoft Store this morning.
So I:
Removed all Python installations that I could find;