-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no attribute 'CppyyLegacy' #260
Comments
Since yours is a CERN project, my first question would be whether you have ROOT somewhere on that box. Point being that ROOT's cppyy is mostly the same, but does not contain |
Many thanks for your answer! It is true that ROOT seems to be installed by default on lxplus (i.e. there is a pre-installed /usr/bin/root executable), but I would have hoped that installing a conda environment I am shielded from what is installed by default.. When I install cppyy with conda, does it use any specific environment variable to check if ROOT is installed? I am wondering if I could modify these variables to not see this root executable, if it is the issue. |
Not sure, I'm not too familiar with the conda release nor the ROOT install on lxplus. However, the PCH (which would containt If you want to be sure, you can use |
Hi, If I do |
By the way, we tried also installing cppyy with pip (and also pipping directly on the source code) and we get the same error, so it is not specific to conda. |
Ah yes, of course: the libraries are in your case picked up through
So yes, this is a feature: you can override locations, which is what happens here. Adding the package path to That doesn't explain the non-existence of Note that |
Hi, Thanks a lot for all the suggestions and explanations. I checked and if I set Regarding your last comment, which sounds very interesting, in practice how would you suggest to pick the cppyy from ROOT? |
It's pre-installed on lxplus, with ROOT. Only caveats seem to be that you need to set This works, without any further setup (clean login), for me:
I appreciate that things will fall apart when using any different version of Python, so if py3.9 won't do, then setting Alternatively:
but that'll load some more stuff (e.g. the ROOT pythonizations). |
Hello,
In my research group we have a code using cppyy (https://gitlab.cern.ch/IRIS/IW2D).
Most of our users run their simulations on the CERN lxplus cluster, but recently we have had issues with cppyy there.
A minimal example of what we do is the following:
But we get the following error:
We install cppyy with conda as follows:
Interestingly if I try doing exactly the same on a Ubuntu machine everything works fine.
Probably this is not bug in cppyy, but I am wondering if the error is something well-known and if it points clearly to some set-up issues on lxplus.
The text was updated successfully, but these errors were encountered: