wlav / cppyy

Other
400 stars 41 forks source link

ROOT dependencies #77

Closed dougschouten closed 1 year ago

dougschouten commented 2 years ago

Not sure if this is the right repo issues dB to populate or if I should be submitting for cppyy-backend, but my problem is that if I try to import cppyy when I have ROOT libraries in my LD_LIBRARY_PATH then I get a segfault, presumably because of a mistmatch and name clash in the libraries in the cppyy-backend package I have installed in `site-packages' and the ROOT libraries.

Two questions:

wlav commented 2 years ago

cppyy-backend does not pull in the ROOT libraries: there's some ROOT stuff left over (work is being done to remove this), but the libraries have all been renamed (and everything ROOT was hidden in a namespace). More likely, if you sourced thisroot.sh and ROOT shipped with Python bindings enabled, it comes with its own version of cppyy, so now you have two, and it's the ROOT one that is pulling in stuff it shouldn't. That's on the ROOT team for copying the cppyy repos and incorporating them into ROOT (and then not keeping them up-to-date and compatible).

Anyway, you can quickly check:

$ python
>>> import cppyy
>>> print(cppyy)

to see which is being imported.

As for Cling, yes, Cling proper is its own product: https://rawgit.com/root-project/cling/master/www/index.html

wlav commented 1 year ago

Closing as presumed clarified. Feel free to reopen or open another issue if there are further questions.