Madanalysis shuts down immediately after starting

Asked by Jakob Lundström

Hello,

When starting ma5 it terminates the program before I can make any commands like below:

/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5$ ./bin/ma5
MA5:
MA5: *************************************************************
MA5: * *
MA5: * W E L C O M E to M A D A N A L Y S I S 5 *
MA5: * ______ ______ *
MA5: * /'\_/`\/\ __ \/\ ___\ *
MA5: * /\ \ \ \_\ \ \ \__/ *
MA5: * \ \ \__\ \ \ __ \ \___``\ *
MA5: * \ \ \_/\ \ \ \/\ \/\ \_\ \ *
MA5: * \ \_\\ \_\ \_\ \_\ \____/ *
MA5: * \/_/ \/_/\/_/\/_/\/___/ *
MA5: * *
MA5: * MA5 release : 1.8.45 2020/05/01 *
MA5: * *
MA5: * Comput. Phys. Commun. 184 (2013) 222-256 *
MA5: * Eur. Phys. J. C74 (2014) 3103 *
MA5: * *
MA5: * The MadAnalysis Development Team - Please visit us at *
MA5: * https://launchpad.net/madanalysis5 *
MA5: * *
MA5: * Type 'help' for in-line help. *
MA5: * *
MA5: *************************************************************
MA5: Platform: Linux 5.3.0-51-generic [Linux mode]
MA5: Reading user settings ...
MA5: Checking mandatory packages:
MA5: - Python [OK]
MA5: - GNU GCC g++ [OK]
MA5: - GNU Make [OK]
MA5: Checking optional packages devoted to data processing:
MA5: - Zlib [OK]
MA5: - FastJet [OK]
MA5: - Root [OK]
Traceback (most recent call last):
  File "./bin/ma5", line 70, in <module>
    madanalysis.core.launcher.LaunchMA5(version, date, ma5dir)
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 411, in LaunchMA5
    repeat = MainSession(mode,arglist,ma5dir,version,date)
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 260, in MainSession
    if not main.CheckConfig(debug=mode.debug):
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/main.py", line 438, in CheckConfig
    if not checkup.CheckOptionalProcessingPackages():
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/system/checkup.py", line 326, in CheckOptionalProcessingPackages
    self.archi_info.has_delphes = checker2.checkDelphes()
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/system/config_checker.py", line 455, in checkDelphes
    self.archi_info.delphes_lib=os.path.normpath(myfiles[0])
IndexError: list index out of range.

I had it working previously and the only difference is that I typed the command :

echo source ~/root/bin/thisroot.sh >> ~/.bashrc^C

in the terminal since I thought it would solve a problem with root not always being enabled.

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi,

Can you please restart in the debug mode (with the -b option) so that I could have a better insight of what is going on?

Thanks in advance.

Regards,

Benjamin

> On 6 May 2020, at 16:14 , Jakob Lundström <email address hidden> wrote:
>
> New question #690508 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/690508
>
> Hello,
>
> When starting ma5 it terminates the program before I can make any commands like below:
>
> /MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5$ ./bin/ma5
> MA5:
> MA5: *************************************************************
> MA5: * *
> MA5: * W E L C O M E to M A D A N A L Y S I S 5 *
> MA5: * ______ ______ *
> MA5: * /'\_/`\/\ __ \/\ ___\ *
> MA5: * /\ \ \ \_\ \ \ \__/ *
> MA5: * \ \ \__\ \ \ __ \ \___``\ *
> MA5: * \ \ \_/\ \ \ \/\ \/\ \_\ \ *
> MA5: * \ \_\\ \_\ \_\ \_\ \____/ *
> MA5: * \/_/ \/_/\/_/\/_/\/___/ *
> MA5: * *
> MA5: * MA5 release : 1.8.45 2020/05/01 *
> MA5: * *
> MA5: * Comput. Phys. Commun. 184 (2013) 222-256 *
> MA5: * Eur. Phys. J. C74 (2014) 3103 *
> MA5: * *
> MA5: * The MadAnalysis Development Team - Please visit us at *
> MA5: * https://launchpad.net/madanalysis5 *
> MA5: * *
> MA5: * Type 'help' for in-line help. *
> MA5: * *
> MA5: *************************************************************
> MA5: Platform: Linux 5.3.0-51-generic [Linux mode]
> MA5: Reading user settings ...
> MA5: Checking mandatory packages:
> MA5: - Python [OK]
> MA5: - GNU GCC g++ [OK]
> MA5: - GNU Make [OK]
> MA5: Checking optional packages devoted to data processing:
> MA5: - Zlib [OK]
> MA5: - FastJet [OK]
> MA5: - Root [OK]
> Traceback (most recent call last):
> File "./bin/ma5", line 70, in <module>
> madanalysis.core.launcher.LaunchMA5(version, date, ma5dir)
> File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 411, in LaunchMA5
> repeat = MainSession(mode,arglist,ma5dir,version,date)
> File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 260, in MainSession
> if not main.CheckConfig(debug=mode.debug):
> File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/main.py", line 438, in CheckConfig
> if not checkup.CheckOptionalProcessingPackages():
> File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/system/checkup.py", line 326, in CheckOptionalProcessingPackages
> self.archi_info.has_delphes = checker2.checkDelphes()
> File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/system/config_checker.py", line 455, in checkDelphes
> self.archi_info.delphes_lib=os.path.normpath(myfiles[0])
> IndexError: list index out of range.
>
> I had it working previously and the only difference is that I typed the command :
>
> echo source ~/root/bin/thisroot.sh >> ~/.bashrc^C
>
> in the terminal since I thought it would solve a problem with root not always being enabled.
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Jakob Lundström (jakoblundst) said :
#2

Ok, When running in debug mode I get

./bin/ma5 -d
MA5:
MA5: *************************************************************
MA5: * *
MA5: * W E L C O M E to M A D A N A L Y S I S 5 *
MA5: * ______ ______ *
MA5: * /'\_/`\/\ __ \/\ ___\ *
MA5: * /\ \ \ \_\ \ \ \__/ *
MA5: * \ \ \__\ \ \ __ \ \___``\ *
MA5: * \ \ \_/\ \ \ \/\ \/\ \_\ \ *
MA5: * \ \_\\ \_\ \_\ \_\ \____/ *
MA5: * \/_/ \/_/\/_/\/_/\/___/ *
MA5: * *
MA5: * MA5 release : 1.8.45 2020/05/01 *
MA5: * *
MA5: * Comput. Phys. Commun. 184 (2013) 222-256 *
MA5: * Eur. Phys. J. C74 (2014) 3103 *
MA5: * *
MA5: * The MadAnalysis Development Team - Please visit us at *
MA5: * https://launchpad.net/madanalysis5 *
MA5: * *
MA5: * Type 'help' for in-line help. *
MA5: * *
MA5: *************************************************************
MA5-DEBUG:
MA5-DEBUG: DEBUG MODE ACTIVATED
MA5-DEBUG:
MA5: Platform: Linux 5.3.0-51-generic [Linux mode]
MA5-DEBUG:
MA5-DEBUG: Machine - Cross platform information
MA5-DEBUG: Machine type: x86_64
MA5-DEBUG: Processor name: x86_64
MA5-DEBUG: Platform: Linux-5.3.0-51-generic-x86_64-with-Ubuntu-18.04-bionic
MA5-DEBUG: Platform release: 5.3.0-51-generic
MA5-DEBUG: System: Linux
MA5-DEBUG: Node: jakob-HP-Laptop-14-ck2xxx
MA5-DEBUG: Number of cores: 2
MA5-DEBUG:
MA5-DEBUG: Machine - OS-specific information
MA5-DEBUG: Java version: ('', '', ('', '', ''), ('', '', ''))
MA5-DEBUG: Windows version: ('', '', '', '')
MA5-DEBUG: Mac Os version: ('', ('', '', ''), '')
MA5-DEBUG: Unix distribution: Linux-5.3.0-51-generic-x86_64-with-Ubuntu-18.04-bionic
MA5-DEBUG:
MA5: Reading user settings ...
MA5-DEBUG: Opening the file: /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/input/installation_options.dat
MA5-DEBUG: Lines to interpret:
MA5-DEBUG: - zlib_includes = /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/include
MA5-DEBUG: - zlib_libs = /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib
MA5-DEBUG: Closing the file: /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/input/installation_options.dat
MA5-DEBUG:
MA5-DEBUG: User
MA5-DEBUG: User name: jakob
MA5-DEBUG: User ID: 1000
MA5-DEBUG: Expanding folder ~/: /home/jakob/
MA5-DEBUG: Variable $USER: jakob
MA5-DEBUG: Variable $USERNAME: jakob
MA5-DEBUG: Variable $LNAME:
MA5-DEBUG: Variable $LOGNAME: jakob
MA5-DEBUG: Variable $HOME: /home/jakob
MA5-DEBUG: Variable $HOMEDRIVE:
MA5-DEBUG: Variable $posix:
MA5-DEBUG: Variable $HOMEPATH:
MA5-DEBUG:
MA5-DEBUG: Web access
MA5-DEBUG: enable
MA5-DEBUG:
MA5-DEBUG: Temporary folder
MA5-DEBUG: Variable $TMPDIR:
MA5-DEBUG: Variable $TMP:
MA5-DEBUG: Variable $TEMP:
MA5-DEBUG: Check if the folder /tmp/jakob exists ...
MA5-DEBUG: -> found
MA5-DEBUG: temporary folder will be used for MA5: /tmp/jakob
MA5-DEBUG:
MA5-DEBUG: Download dir
MA5-DEBUG: Check if the folder /tmp/jakob/MA5_downloads exists ...
MA5-DEBUG: -> found
MA5-DEBUG: download folder will be used for MA5: /tmp/jakob/MA5_downloads
MA5-DEBUG:
MA5-DEBUG: Text editor
MA5-DEBUG: Look for the global variable $EDITOR ...
MA5-DEBUG: -> variable not found. VI editor is set by default.
MA5-DEBUG:
MA5: Checking mandatory packages:
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package python
MA5-DEBUG: Try to detect automatically the package ...
MA5-DEBUG: Extract more informations related to the package ...
MA5-DEBUG:
MA5-DEBUG: Python release: 2.7.17
MA5-DEBUG: Python build: ('default', 'Apr 15 2020 17:20:14')
MA5-DEBUG: Python compiler: GCC 7.5.0
MA5-DEBUG: Python prefix: /usr
MA5-DEBUG: Python executable used: /usr/bin/python
MA5-DEBUG: sys.executable: /usr/bin/python
MA5-DEBUG: which: /usr/bin/python
MA5-DEBUG: which-all:
MA5-DEBUG: - /usr/bin/python
MA5-DEBUG: Python internal paths:
MA5-DEBUG: - /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/ReportGenerator/Services
MA5-DEBUG: - /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5
MA5-DEBUG: - /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/bin
MA5-DEBUG: - /home/jakob/root/lib
MA5-DEBUG: - /usr/lib/python2.7
MA5-DEBUG: - /usr/lib/python2.7/plat-x86_64-linux-gnu
MA5-DEBUG: - /usr/lib/python2.7/lib-tk
MA5-DEBUG: - /usr/lib/python2.7/lib-old
MA5-DEBUG: - /usr/lib/python2.7/lib-dynload
MA5-DEBUG: - /usr/local/lib/python2.7/dist-packages
MA5-DEBUG: - /usr/lib/python2.7/dist-packages
MA5-DEBUG: $PYTHONPATH:
MA5-DEBUG: - /home/jakob/root/lib
MA5-DEBUG:
MA5-DEBUG: Saving informations ...
MA5: - Python [OK]
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package gpp
MA5-DEBUG: Try to detect automatically the package ...
MA5-DEBUG: which: /usr/bin/g++
MA5-DEBUG: Extract more informations related to the package ...
MA5-DEBUG: which-all:
MA5-DEBUG: - /usr/bin/g++
MA5-DEBUG: version: 7
MA5-DEBUG: search path for headers:
MA5-DEBUG: - /usr/include/c++/7
MA5-DEBUG: - /usr/include/x86_64-linux-gnu/c++/7
MA5-DEBUG: - /usr/include/c++/7/backward
MA5-DEBUG: - /usr/lib/gcc/x86_64-linux-gnu/7/include
MA5-DEBUG: - /usr/local/include
MA5-DEBUG: - /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed
MA5-DEBUG: - /usr/include/x86_64-linux-gnu
MA5-DEBUG: - /usr/include
MA5-DEBUG: search path for libraries:
MA5-DEBUG: - /usr/lib/gcc/x86_64-linux-gnu/7
MA5-DEBUG: - /usr/lib/x86_64-linux-gnu
MA5-DEBUG: - /usr/lib
MA5-DEBUG: - /lib/x86_64-linux-gnu
MA5-DEBUG: - /lib
MA5-DEBUG: - /usr/lib/x86_64-linux-gnu
MA5-DEBUG: - /usr/lib
MA5-DEBUG: - /usr/lib
MA5-DEBUG: - /lib
MA5-DEBUG: - /usr/lib
MA5-DEBUG: Saving informations ...
MA5: - GNU GCC g++ [OK]
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package make
MA5-DEBUG: Try to detect automatically the package ...
MA5-DEBUG: which: /usr/bin/make
MA5-DEBUG: Extract more informations related to the package ...
MA5-DEBUG: which-all:
MA5-DEBUG: - /usr/bin/make
MA5-DEBUG: version: GNU Make 4.1
MA5-DEBUG: Saving informations ...
MA5: - GNU Make [OK]
MA5: Checking optional packages devoted to data processing:
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package zlib
MA5-DEBUG: Is there a veto? ...
MA5-DEBUG: no user veto
MA5-DEBUG: Detection of the package in the location specified by the user ...
MA5-DEBUG: User setting: zlib include path is specified.
MA5-DEBUG: look for pattern /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/include/zlib.h ...
MA5-DEBUG: -> found: /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/include/zlib.h
MA5-DEBUG: User setting: zlib lib path is specified.
MA5-DEBUG: look for pattern /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.so ...
MA5-DEBUG: -> found: /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.so
MA5-DEBUG: look for pattern /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.a ...
MA5-DEBUG: -> found: /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.a
MA5-DEBUG: look for pattern /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.so.* ...
MA5-DEBUG: -> found: /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.so.1
MA5-DEBUG: -> found: /home/jakob/MG5_aMC_v2_7_2/HEPTools/zlib/lib/libz.so.1.2.10
MA5-DEBUG: Saving informations ...
MA5: - Zlib [OK]
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package fastjet
MA5-DEBUG: Is there a veto? ...
MA5-DEBUG: no user veto
MA5-DEBUG: Detection of the package in the location specified by the user ...
MA5-DEBUG: Detection of the package in the "tools" folder ...
MA5-DEBUG: Look for FastJet in the folder here:/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/fastjet/bin/fastjet-config ...
MA5-DEBUG: -> found
MA5-DEBUG: Extract more informations related to the package ...
MA5-DEBUG: version: 3.3.3
MA5-DEBUG: Trying to get library and header paths ...
MA5-DEBUG: Lib flags: -Wl,-rpath,/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/fastjet/lib -L/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/fastjet/lib -lfastjettools -lfastjet -lm -lfastjetplugins -lsiscone_spherical -lsiscone
MA5-DEBUG: Lib path: ['/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/fastjet/lib']
MA5-DEBUG: Saving informations ...
MA5: - FastJet [OK]
MA5-DEBUG: ------------------------------------------------------
MA5-DEBUG: Detect package root
MA5-DEBUG: Is there a veto? ...
MA5-DEBUG: no user veto
MA5-DEBUG: Detection of the package in the location specified by the user ...
MA5-DEBUG: Detection of the package in the "tools" folder ...
MA5-DEBUG: Detecting root-config in the tools folder ...
MA5-DEBUG: Try to detect automatically the package ...
MA5-DEBUG: which: /home/jakob/root/bin/root-config [is it a link? False]
MA5-DEBUG: which-all:
MA5-DEBUG: - /home/jakob/root/bin/root-config
MA5-DEBUG: Extract more informations related to the package ...
MA5-DEBUG: Trying to get library and header paths ...
MA5-DEBUG: -> root-config found
MA5-DEBUG: -> root version: 6.20.04
MA5-DEBUG: -> root header folder: /home/jakob/root/include
MA5-DEBUG: -> root library folder: /home/jakob/root/lib
MA5-DEBUG: Try to find /home/jakob/root/lib/libCore.so ...
MA5-DEBUG: Try to find /home/jakob/root/include/TH1F.h ...
MA5-DEBUG: features: ['asimage', 'builtin_afterimage', 'builtin_clang', 'builtin_davix', 'builtin_ftgl', 'builtin_gl2ps', 'builtin_glew', 'builtin_llvm', 'builtin_lz4', 'builtin_lzma', 'builtin_pcre', 'builtin_tbb', 'builtin_unuran', 'builtin_vc', 'builtin_vdt', 'builtin_veccore', 'builtin_xrootd', 'builtin_xxhash', 'builtin_zlib', 'clad', 'cxx11', 'dataframe', 'davix', 'exceptions', 'fftw3', 'fitsio', 'fortran', 'gdml', 'http', 'imt', 'mathmore', 'minuit2', 'mlp', 'mysql', 'opengl', 'pgsql', 'pyroot', 'pythia8', 'roofit', 'runtime_cxxmodules', 'shadowpw', 'shared', 'soversion', 'spectrum', 'sqlite', 'ssl', 'tmva', 'tmva-cpu', 'tmva-pymva', 'unuran', 'vc', 'vdt', 'veccore', 'vmc', 'x11', 'xml', 'xrootd']
MA5-DEBUG: C++ compiler: c++
MA5-DEBUG: Saving informations ...
MA5: - Root [OK]
MA5-DEBUG: Delphes
MA5-DEBUG: Look for Delphes in the folder /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools ...
MA5-DEBUG: -> found
MA5-DEBUG: Look for the file /home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/delphes/modules/ParticlePropagator.h ...
MA5-DEBUG: -> found
MA5-DEBUG: Look for the libraries in folder ['/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/tools/delphes'] ...
Traceback (most recent call last):
  File "./bin/ma5", line 70, in <module>
    madanalysis.core.launcher.LaunchMA5(version, date, ma5dir)
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 411, in LaunchMA5
    repeat = MainSession(mode,arglist,ma5dir,version,date)
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 260, in MainSession
    if not main.CheckConfig(debug=mode.debug):
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/core/main.py", line 438, in CheckConfig
    if not checkup.CheckOptionalProcessingPackages():
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/system/checkup.py", line 326, in CheckOptionalProcessingPackages
    self.archi_info.has_delphes = checker2.checkDelphes()
  File "/home/jakob/MG5_aMC_v2_7_2/HEPTools/madanalysis5/madanalysis5/madanalysis/system/config_checker.py", line 455, in checkDelphes
    self.archi_info.delphes_lib=os.path.normpath(myfiles[0])
IndexError: list index out of range

Revision history for this message
Best Benjamin Fuks (fuks) said :
#3

Hi Jakob,

Thanks a lot! Now I see. Can you please open madanalysis/system/config_checker.py and go to line 455:

            self.archi_info.delphes_lib=os.path.normpath(myfiles[0])

This line should be replaced by:

            if len(myfiles)>0:
                self.archi_info.delphes_lib=os.path.normpath(myfiles[0])

Do you mind trying it out and letting me know? This should trigger an error message about Delphes (instead of a crash). Delphes should then be reinstalled ("install delphes" to be typed in the MA5 shell).

Cheers,

Benjamin

Revision history for this message
Jakob Lundström (jakoblundst) said :
#4

Thanks Benjamin Fuks, that solved my question.