Failed to import "libPyROOT" with debian package

First, thanks Salboa for providing the debian packages.

and
lcg-heppkg.web.cern.ch/lcg-heppkg/debian/

The latest root-system in lcg-heppkg (5.28.00+p02-2) has a problem in libroot-bindings-python-dev:

exaos@memes ~apt/CNDL % python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) 
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/ROOT.py", line 85, in <module>
    import libPyROOT as _root
ImportError: No module named libPyROOT

This can be simply fixed by creating a link to libPyROOT.so in /usr/lib/pymodules/python2.6. But the link will be removed if you install some packages and do a “update-python-modules”. The better way is:
[list=]
[]create a link in /usr/share/python-support/root/libPyROOT.so
[
]do “update-python-modules -f”
[/list]

So, the root-system_5.28.00+p02-2.dsc need a patch.

Hi,

why doesn’t setting PYTHONPATH work?

Cheers,
Wim

Just because using “update-python-modules” is the “debian way”. :slight_smile:

Hi,

okay, missed that … :slight_smile:

Cheers,
Wim