# ROOT on condor lxplus

**URL:** <https://root-forum.cern.ch/t/root-on-condor-lxplus/40970>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [August 12, 2020, 7:09pm UTC](https://root-forum.cern.ch/t/root-on-condor-lxplus/40970 "2020-08-12T19:09:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newbie](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@Newbie](https://root-forum.cern.ch/u/Newbie)\
**Post date:** [August 12, 2020, 7:09pm UTC](https://root-forum.cern.ch/t/root-on-condor-lxplus/40970/1 "2020-08-12T19:09:45Z")

</div>

Dear, not a long time ago I used to submit jobs using condor with a script using ROOT that just worked fine, but for some reasons, ROOT is failing to be imported now:

Traceback (most recent call last):  
File “/afs/cern.ch/user/u/user/dir/Script.py”, line 1, in   
import ROOT  
File “/usr/lib64/python2.7/site-packages/ROOT/ **init**.py”, line 34, in   
import cppyy  
File “/usr/lib64/python2.7/site-packages/cppyy/ **init**.py”, line 64, in   
libcppyy\_mod\_name, major, minor))  
ImportError: Failed to import libcppyy2\_7. Please check that ROOT has been built for Python 2.7

Does anyone have the same issue and know how to solve it? I passed the environment variables and so on, but it doesn’t work …

* * *

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [August 13, 2020, 7:16am UTC](https://root-forum.cern.ch/t/root-on-condor-lxplus/40970/2 "2020-08-13T07:16:11Z")

</div>

Hi,

Your ROOT installation (you’re using ROOT installed in `/usr/bin/` here?) seems broken. @etejedor can you diagnose the issue?

Cheers, Axel.

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [August 13, 2020, 7:48am UTC](https://root-forum.cern.ch/t/root-on-condor-lxplus/40970/3 "2020-08-13T07:48:22Z")

</div>

Hi,

I believe there is either a problem with the ROOT installation or with the environment. The PyROOT Python modules are installed on `/usr/lib64/python2.7/site-packages/` (Python2 directory), but the PyROOT libraries can’t be found or they have not been built for Python2.7, according to the error message.

How did you set the environment? Do you have information about the ROOT installation in the node where your job runs?

---

<div class="post-metadata">

**Author:** ![Newbie](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/n/dc4da7/32.png) [@Newbie](https://root-forum.cern.ch/u/Newbie)\
**Post date:** [August 16, 2020, 12:49am UTC](https://root-forum.cern.ch/t/root-on-condor-lxplus/40970/4 "2020-08-16T00:49:03Z")

</div>

Hi, I found a small issue in my submission file with passing the environment, thanks a lot for the suggestions
