ara-software / AraProc

ARA data analysis framework
GNU General Public License v3.0
3 stars 1 forks source link

Code doesn't crash when it can't find shared libraries #5

Closed marcomuzio closed 3 weeks ago

marcomuzio commented 3 weeks ago

The exception in araproc/__init__.py doesn't seem to catch if some libraries aren't found. This has been observed for libAra.so, in which case it prints an error message and continues on. An example is shown below:

~/AraProc/examples $ python run_example.py
/cvmfs/ara.opensciencegrid.org/trunk/RHEL_7_x86_64/root_build/lib/cppyy/__init__.py:72: DeprecationWarning: invalid escape sequence \d
  if re.match('^libcppyy_backend\d_\d$', lib_name):
Error in <TUnixSystem::FindDynamicLibrary>: /home/mmuzio/AraSimMain/AraSim/lib/libAra.so does not exist in /home/mmuzio/AraSimMain/AraSim:/home/mmuzio/AraRoot/build/lib:/cvmfs/ara.opensciencegrid.org/trunk/RHEL_7_x86_64/misc_build/lib:/home/mmuzio/AraRoot/nuphaseroot/build/lib:/cvmfs/ara.opensciencegrid.org/trunk/RHEL_7_x86_64/misc_build/lib:/cvmfs/ara.opensciencegrid.org/trunk/RHEL_7_x86_64/root_build/lib:.:/cvmfs/ara.opensciencegrid.org/trunk/RHEL_7_x86_64/root_build/lib:/lib64/tls/x86_64:/lib64/tls:/lib64/x86_64:/lib64:/usr/lib64/tls/x86_64:/usr/lib64/tls:/usr/lib64/x86_64:/usr/lib64:/cvmfs/ara.opensciencegrid.org/trunk/RHEL_7_x86_64
loadAtriPedestals : Loading fAtriPedFile - /data/ana/ARA/ARA05PA/ARA05_pedestals/ped_full_values_A5_run005626.dat
Config is 2
[script continues to execute]