import ROOT -> ImportError: No module named libPyROOT

Bug #512600 reported by marco cammarata
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
root-system (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: root-system

On ubuntu 9.10, after having installed libroot-python-dev libroot-python5.18 and all the dependencies opening python and running "import ROOT" results in an error "ImportError: No module named libPyROOT".

I could solve the problem by "import sys; sys.path.append('/usr/lib/root/')" before running "import ROOT"
thanks,
marco

Revision history for this message
Andy Buckley (andy-insectnation) wrote :

+1 for fixing! A fix which would respect the convention of other Python packages would be to symlink the PyROOT .py and .so module files into /usr/lib/pythonXX/dist-packages -- I see that there are already symlinks into /usr/share/pyshared, but that location is not directly placed in the system PYTHONPATH: most /usr/lib/pythonXX/dist-packages files are actually symlinks into /usr/share/pyshared

Revision history for this message
Lifeng Sun (lifongsun) wrote :

fixed in 5.34.00-1

Changed in root-system (Ubuntu):
status: New → Fix Released
Revision history for this message
Pooja Saxena (nrjrasaxena) wrote :

Hello,
I am facing the same issue and honestly I do not understand the fix suggested in above post:
---
A fix which would respect the convention of other Python packages would be to symlink the PyROOT .py and .so module files into /usr/lib/pythonXX/dist-packages
----

I am working on Ubuntu 14.04. I will be happy to provide any information required.

Look forward to hear back,

thanks,
pooja

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.