Skip to content


classfactory crashes if old lib file disappears #9

ekfriis opened this Issue · 2 comments

3 participants

the rootpy project member


I deleted an old release area (and it's associated libs). I had previously used roosh etc to browse the CMSSW files, and classfactory cached the libraries. Now if I open any old file in roosh I get:

Message: (file "/afs/", line -1) dlopen error: /afs/ cannot open shared object file: No such file or directory

which indeed doesn't exist. The whole traceback is below.

I fixed the crash by nuking my ~/.rootpy directory. I'm not sure what the best behavior is.


Message: (file "/afs/", line -1) dlopen error: /afs/
amd64_gcc434/ cannot open shared object file: No such file or directory
Traceback (most recent call last): File "/afs/", line 5, in
pkg_resources.run_script('rootpy==0.6', 'roosh')
File "/afs/", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/afs/", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/afs/", line 1
8, in
from import open as ropen, utils
File "/afs/
.py", line 1,
from .file import *
File "/afs/", line 7, in

from ..utils import asrootpy
File "/afs/", line 3, in odule>
from .plotting.core import Plottable
File "/afs/", l
ine 1, in
from .hist import Hist, Hist2D, Hist3D, HistStack
File "/afs/", line
4, in
from ..objectproxy import ObjectProxy
File "/afs/", line 1,
import types
File "/afs/", line 430, in

generate('vector >', '')
File "/afs/", line 4
5, in generate
if ROOT.gSystem.Load(""% __lookup_table[unique_name]) in (0, 1):
RuntimeError: (file "/afs/", line -1) Failed to load Dynamic link library /afs/

@ndawe ndawe was assigned
the rootpy project member

The problem is here:

ROOT links against all libraries which are loaded when you create something with aclic. And if they happen to not be in the DL path when you later try and load the thing you created, then boom.

This is partially ameliorated by #121 through this, but a full fix can only be made if we can ever get #122 working as we'd like.

the rootpy project member

I'm closing this obsolete since the mechanism has changed quite a bit.

There are some circumstances where this could be an issue. Please reopen if you can still reproduce this.

@pwaller pwaller closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.