ndawe/rootpy — Issue #8: Duplicate class registrations
Author: jhegeman
Created: 2012-01-13 15:25:05+00:00
State: open

Hi Noel,

I just installed rev. 8908c17f2996d2a5d98f0b01e8cdcdb7967e55ce (i.e., I pulled the HEAD of master from github) on lxplus in my home area (using 'python setup.py --user') and I get a lot of complaints when I do 'import rootpy.plotting':

```python
>>> import rootpy.plotting
--------------------------------------------------
ROOT version 5.27/06b
--------------------------------------------------
Loading FW Lite setup.
generating dictionary for vector >...
generating dictionary for vector >...
generating dictionary for vector >...
generating dictionary for vector >...
generating dictionary for vector >...
generating dictionary for vector >...
generating dictionary for vector >...
generating dictionary for map...
generating dictionary for vector...
generating dictionary for vector >...
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR >
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR >
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR >
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class VECTOR >
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class MAP
warnings.warn("Duplicate registration of class %s" % name)
/afs/cern.ch/user/j/jhegeman/.local/lib/python2.6/site-packages/rootpy-0.6-py2.6.egg/rootpy/registry.py:38: UserWarning: Duplicate registration of class MAP
warnings.warn("Duplicate registration of class %s" % name)
```
(The first bit about the ROOT version etc. is from my .rootlogin.C.) It will keep complaining every time I load rootpy.plotting, although it does not recreate the dictionaries later on.

Any idea what could be causing this?

Best regards,
Jeroen