Cannot run the tutorial demo.py

Hi,

I installed ROOT 5.26 with python 2.6 on a Ubuntu 64 machine.

I had the following error

Thank for your helps.

regards,

gma

Hi,

which version of ROOT are you running and how did you install it? The symbol _ZN12TApplication11ProcessFileEPKcPib resides in libCore.so, so is $ROOTSYS/lib/libPyROOT.so linked with libCore.so?

Cheers,
Wim

wlav,

Thank for your answers. How do I link $ROOTSYS/lib/libPyROOT.so with libCore.so?
:confused:

I cannot find any guidance for this from the Internet.

regards,

gma

Hi,

out-of-the-box install or the standard makefile should’ve ensured linking with libCore, so how did you install it?

To verify, run ldd $ROOTSYS/lib/libPyROOT.so

Cheers,
Wim

Wlav,
Thanks. I installed ROOT by just enable several packages, such as python, qt etc. Then do the make and make install. ROOT runs fine.

These are the outputs from your command. Looks like it is linked to libCore.so. Any suggestions what to do next?

ldd $ROOTSYS/lib/libPyROOT.so
linux-vdso.so.1 => (0x00007fff2ca7e000)
libCore.so => /lib/libCore.so (0x00007f6576768000)
libCint.so => /lib/libCint.so (0x00007f6575b4d000)
libRIO.so => /lib/libRIO.so (0x00007f65757c3000)
libNet.so => /lib/libNet.so (0x00007f6575491000)
libHist.so => /lib/libHist.so (0x00007f6574e4f000)
libGraf.so => /lib/libGraf.so (0x00007f6574a21000)
libGraf3d.so => /lib/libGraf3d.so (0x00007f65746ef000)
libGpad.so => /lib/libGpad.so (0x00007f6574401000)
libTree.so => /lib/libTree.so (0x00007f6573ff5000)
libMatrix.so => /lib/libMatrix.so (0x00007f6573b94000)
libMathCore.so => /lib/libMathCore.so (0x00007f65737bf000)
libThread.so => /lib/libThread.so (0x00007f6573568000)
libReflex.so => /lib/libReflex.so (0x00007f65732bd000)
libdl.so.2 => /lib/libdl.so.2 (0x00007f65730b8000)
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f6572bea000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f65728da000)
libm.so.6 => /lib/libm.so.6 (0x00007f6572655000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f657243e000)
libc.so.6 => /lib/libc.so.6 (0x00007f65720cf000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f6571e95000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007f6571c79000)
/lib64/ld-linux-x86-64.so.2 (0x00007f65773f1000)
libz.so.1 => /lib/libz.so.1 (0x00007f6571a61000)
libutil.so.1 => /lib/libutil.so.1 (0x00007f657185e000)

Hi,

so it looks like you have 2 installations of ROOT on your system. One in /usr/local/root which picks up ROOT.py and libPyROOT.so through PYTHONPATH, and another installation under /lib which picks up libCore.so etc. through LD_LIBRARY_PATH. To work properly, /usr/local/root/lib should preceed /lib in LD_LIBRARY_PATH so that you only pick up libraries from one installation, not from both.

Cheers,
Wim

Wim,
:blush: Accidentally

installed some ROOT library in 2008 and never deleted them. In any case, I deleted them now. However, I still got some error message

I think this should be ok to read from /lib. :confused: Thanks.

regards,

gma

Hi,

am not seeing the cause … The symbol that appears to be missing is also in libCore.so. Now, libThread.so is not linked to libCore.so as there’s no need for that: libCore is loaded first and has its symbols exported globally.

Does the symbol show up in your installation? Can be checked with:

$ nm $ROOTSYS/lib/libCore.so | grep _ZNK6TClass15CallShowMembersEPvR16TMemberInspectorPci

If it does, can you set the envar ‘LD_DEBUG=files’ (either export on zsh/bash, or setenv on (t)csh), then re-run and check whether libCore.so is loaded before libThread.so?

Finally, there is this old thread: http://root.cern.ch/phpBB2/viewtopic.php?t=6116 that describes something similar, and was never quite resolved (a modification of ~/.rootrc made the problem go away).

Cheers,
Wim

Wim,

Here are the outputs based on your suggestion. I cannot see the libCore.so and LibThread.so. Thanks.

Hi,

the interest with LD_DEBUG=files would not be the run of nm, but the run of:

$ python

import ROOT

As it will show the load order of the various ROOT libraries triggered by the import of libPyROOT.

Cheers,
Wim

Wim,

Following your link to root.cern.ch/phpBB2/viewtopic.php?t=6116, I changed my $ROOTSYS/etc/system.rootrc configure. It is not working for my case because I don’t have a personal ./rootrc.

I am curious why no other users have this simple problem. Thanks.

regards,

gma

Wim,

Thank for your helps. I fixed my problems: I did not delete all the library files under /lib, including libCore.so and libCint.so. Once they are deleted, the demo works. :laughing:

regards,

gma