use MadAnalysis5 in version 2.6.4 at mac

Asked by Rui Zhang

Hello,

I'm trying to use the latest version(2.6.4). As usual, I tried some processes for testing. And when I run Delphes, there may be an error about MadAnalysis5.

----------------------------------------
INFO: delphes done
  === Results Summary for run: run_01 tag: tag_1 ===

     Cross-section : 505.7 +- 0.7905 pb
     Nb of events : 10000

INFO: storing files of previous run
INFO: Storing Pythia8 files of previous run
INFO: Done
INFO: Running MadAnalysis5 [arXiv:1206.1599]
INFO: Hadron input files considered:
INFO: --> /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/Events/run_01/tag_1_pythia8_events.hepmc.gz
INFO: MadAnalysis5 now running the reconstruction 'BasicReco'...
INFO: Follow Madanalysis5 run with the following command in a separate terminal:
INFO: tail -f /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/Events/run_01/tag_1_MA5__reco_BasicReco.log
Error detected in "generate_events run_01"
write debug file /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : MadAnalysis5 failed to produce the reconstructed event file for reconstruction 'BasicReco'.
quit
INFO:
MG5_aMC>exit
----------------------------------------

The process is just p p > t t~. What I type is just

generate p p > t t~
launch
2
1
0
0

This problem didn't happen in other versions, even 2.6.3.2. Also, it works well at Linux. This just occurs at mac.

I don't know what's wrong with mac. Should I use MadAnalysis4 instead?

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:
Whiteboard:
I will assign this to the MA5 project. They will likely need to have the details of the following file: /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/Events/run_01/tag_1_MA5__reco_BasicReco.log Can you copy-paste it in this thread? Cheers, Olivier
Revision history for this message
Rui Zhang (ruirui) said :
#1

/Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/Events/run_01/tag_1_MA5__reco_BasicReco.log
------------------------------------------------------------------------------------------------------------------------

*************************************************************
* W E L C O M E to M A D A N A L Y S I S 5 *
* *
* MA5 release : 1.6.33 2017/11/20 *
* *
* Comput. Phys. Commun. 184 (2013) 222-256 *
* Eur. Phys. J. C74 (2014) 3103 *
*************************************************************
Executing the commands from the script
...
ma5>define invisible = 12 14 16 -12 -14 -16
ma5>set main.fastsim.package = fastjet
fastjet library is not installed. Clustering algorithms are not available.
ma5>set main.fastsim.algorithm = antikt
'fastsim' has no parameter called 'algorithm'
ma5>set main.fastsim.radius = 0.4
'fastsim' has no parameter called 'radius'
ma5>set main.fastsim.ptmin = 5.0
'fastsim' has no parameter called 'ptmin'
ma5>set main.fastsim.bjet_id.matching_dr = 0.4
'fastsim' has no parameter called 'bjet_id.matching_dr'
ma5>set main.fastsim.bjet_id.efficiency = 1.0
'fastsim' has no parameter called 'bjet_id.efficiency'
ma5>set main.fastsim.bjet_id.misid_cjet = 0.0
'fastsim' has no parameter called 'bjet_id.misid_cjet'
ma5>set main.fastsim.bjet_id.misid_ljet = 0.0
'fastsim' has no parameter called 'bjet_id.misid_ljet'
ma5>set main.fastsim.tau_id.efficiency = 1.0
'fastsim' has no parameter called 'tau_id.efficiency'
ma5>set main.fastsim.tau_id.misid_ljet = 0.0
'fastsim' has no parameter called 'tau_id.misid_ljet'
ma5>import /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/Events/run_01/tag_1_pythia8_events.hepmc.gz as reco_events
The dataset '/Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/Events/run_01/tag_1_pythia8_events.hepmc.gz' has not been found or has a unsupported format.
ma5>set main.outputfile=tag_1_pythia8_BasicReco.lhe.gz
ma5>submit /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_3/MA5_HADRON_ANALYSIS_reco_BasicReco_1
no dataset found; please define a dataset (via the command import).
job submission aborted.
ma5>remove reco_events
No object called 'reco_events' found.

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

Hi,

The error is related to the fact that you want to force madanalysis5 to use fastjet, but madanalysis can't find fastjet and therefore refuses to do what you want it to do. Can you please update your MA5 installation by adding fastjet:
  install MadAnalysis5 --update --with_fastjet

Cheers,

Benjamin

Revision history for this message
Rui Zhang (ruirui) said :
#3

Thank you, Olivier! Thanks fo apply, Benjamin!

But it still doesn't work.

--------------------------------------
*************************************************************
* W E L C O M E to M A D A N A L Y S I S 5 *
* *
* MA5 release : 1.6.33 2017/11/20 *
* *
* Comput. Phys. Commun. 184 (2013) 222-256 *
* Eur. Phys. J. C74 (2014) 3103 *
*************************************************************
Executing the commands from the script
...
ma5>define invisible = 12 14 16 -12 -14 -16
ma5>set main.fastsim.package = fastjet
fastjet library is not installed. Clustering algorithms are not available.
ma5>set main.fastsim.algorithm = antikt
'fastsim' has no parameter called 'algorithm'
ma5>set main.fastsim.radius = 0.4
'fastsim' has no parameter called 'radius'
ma5>set main.fastsim.ptmin = 5.0
'fastsim' has no parameter called 'ptmin'
ma5>set main.fastsim.bjet_id.matching_dr = 0.4
'fastsim' has no parameter called 'bjet_id.matching_dr'
ma5>set main.fastsim.bjet_id.efficiency = 1.0
'fastsim' has no parameter called 'bjet_id.efficiency'
ma5>set main.fastsim.bjet_id.misid_cjet = 0.0
'fastsim' has no parameter called 'bjet_id.misid_cjet'
ma5>set main.fastsim.bjet_id.misid_ljet = 0.0
'fastsim' has no parameter called 'bjet_id.misid_ljet'
ma5>set main.fastsim.tau_id.efficiency = 1.0
'fastsim' has no parameter called 'tau_id.efficiency'
ma5>set main.fastsim.tau_id.misid_ljet = 0.0
'fastsim' has no parameter called 'tau_id.misid_ljet'
ma5>import /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_5/Events/run_01/tag_1_pythia8_events.hepmc.gz as reco_events
The dataset '/Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_5/Events/run_01/tag_1_pythia8_events.hepmc.gz' has not been found or has a unsupported format.
ma5>set main.outputfile=tag_1_pythia8_BasicReco.lhe.gz
ma5>submit /Users/zhangrui/MG5_aMC_v2_6_4/bin/PROC_sm_5/MA5_HADRON_ANALYSIS_reco_BasicReco_1
no dataset found; please define a dataset (via the command import).
job submission aborted.
ma5>remove reco_events
No object called 'reco_events' found.
---------------------------------

Actually, before I ask this question, I have tried "install MadAnalysis5 --with_fastjet". And now I use "install MadAnalysis5", and then "install MadAnalysis5 --update --with_fastjet". But these two commands do not solve this problem.

Revision history for this message
Rui Zhang (ruirui) said :
#4

Just now, I tried to install fastjet in my mac. But now I cannot install madanalysis5 with fastjet, even if I remove the fastjet folder.

How can I fix this? If I can't, maybe I am not able to reproduce this error in the same way.

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

Hi,

Can you please try to install fastjet within madanalysis5 (standalone)?

Cheers,

Benjamin

> On 15 Nov 2018, at 05:03 , Rui Zhang <email address hidden> wrote:
>
> Question #676149 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/676149
>
> Rui Zhang posted a new comment:
> Just now, I tried to install fastjet in my mac. But now I cannot install
> madanalysis5 with fastjet, even if I remove the fastjet folder.
>
> How can I fix this? If I can't, maybe I am not able to reproduce this
> error in the same way.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Rui Zhang (ruirui) said :
#6

OK, neglect what I say at #4... I reproduce my error now.

Hi, Benjamin, Thank you for your attention.

Do you mean install madanalysis5, and then install fastjet, and then copy somthing into "MG5_aMC_v2_6_4/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Interfaces"? Maybe also change linking_fastjet.log?

Revision history for this message
Rui Zhang (ruirui) said :
#7

Oh, sorry, I see. You mean use "install fastjet" in a standalone ma5. But I can not use another madanalysis. Maybe I should reinstall my root again? I just install ma5 in madgraph by reinstall my root.

----------------------------------------
zhangruideMacBook-Pro:bin zhangrui$ ./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.6 2018/05/04 *
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: Darwin 18.2.0 [MAC/OSX 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: - SciPy [DISABLED]
MA5: - FastJet [OK]
MA5: - Root [OK]
MA5: - Delphes [DISABLED]
MA5: - Delphes-MA5tune [DISABLED]
MA5: Checking optional packages devoted to histogramming:
MA5: - Root [OK]
MA5: - Matplotlib [DISABLED]
MA5: - pdflatex [OK]
MA5: - latex [OK]
MA5: Package used for graphical rendering: Root
MA5: Checking the MadAnalysis 5 core library:
MA5: => First use of MadAnalysis (or the library is missing).
MA5:
MA5: **********************************************************
MA5: Building SampleAnalyzer libraries
MA5: **********************************************************
MA5: How many cores for the compiling? default = max = 8
   Answer:
MA5: => Number of cores used for the compilation = 8
MA5: Writing the setup files ...
MA5: Writing all the Makefiles ...
MA5: **********************************************************
MA5: Component 1/11 - test program: SampleAnalyzer configuration
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 2/11 - library: SampleAnalyzer commons
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 3/11 - test program: SampleAnalyzer commons
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 4/11 - library: interface to zlib
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 5/11 - test program: interface to zlib
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 6/11 - library: interface to FastJet
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 7/11 - test program: interface to Fastjet
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 8/11 - library: interface to Root
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 9/11 - test program: interface to Root
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5-ERROR: impossible to run the project. For more details, see the log file:
MA5-ERROR: /Users/zhangrui/madanalysis5/tools/SampleAnalyzer/Bin/TestRoot.log
MA5-ERROR: the test failed.
zhangruideMacBook-Pro:bin zhangrui$ cd ..
zhangruideMacBook-Pro:madanalysis5 zhangrui$ l
COPYING README bin/ madanalysis/ tools/ version.txt
zhangruideMacBook-Pro:madanalysis5 zhangrui$ ./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.6 2018/05/04 *
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: Darwin 18.2.0 [MAC/OSX 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: - SciPy [DISABLED]
MA5: - FastJet [OK]
MA5: - Root [OK]
MA5: - Delphes [DISABLED]
MA5: - Delphes-MA5tune [DISABLED]
MA5: Checking optional packages devoted to histogramming:
MA5: - Root [OK]
MA5: - Matplotlib [DISABLED]
MA5: - pdflatex [OK]
MA5: - latex [OK]
MA5: Package used for graphical rendering: Root
MA5: Checking the MadAnalysis 5 core library:
MA5: => First use of MadAnalysis (or the library is missing).
MA5:
MA5: **********************************************************
MA5: Building SampleAnalyzer libraries
MA5: **********************************************************
MA5: How many cores for the compiling? default = max = 8
   Answer: 4
MA5: => Number of cores used for the compilation = 4
MA5: Writing the setup files ...
MA5: Writing all the Makefiles ...
MA5: **********************************************************
MA5: Component 1/11 - test program: SampleAnalyzer configuration
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 2/11 - library: SampleAnalyzer commons
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 3/11 - test program: SampleAnalyzer commons
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 4/11 - library: interface to zlib
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 5/11 - test program: interface to zlib
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 6/11 - library: interface to FastJet
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 7/11 - test program: interface to Fastjet
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5: - Checking the program output...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 8/11 - library: interface to Root
MA5: - Cleaning the project before building the library ...
MA5: - Compiling the source files ...
MA5: - Linking the library ...
MA5: - Checking that the library is properly built ...
MA5: - Cleaning the project after building the library ...
MA5: => Status: [OK]
MA5: **********************************************************
MA5: Component 9/11 - test program: interface to Root
MA5: - Cleaning the project before building the test program ...
MA5: - Compiling the source files ...
MA5: - Linking the test program ...
MA5: - Checking that the test program is properly built ...
MA5: - Cleaning the project after building the test program ...
MA5: - Running the test program ...
MA5-ERROR: impossible to run the project. For more details, see the log file:
MA5-ERROR: /Users/zhangrui/madanalysis5/tools/SampleAnalyzer/Bin/TestRoot.log
MA5-ERROR: the test failed.
--------------------------------------------------------

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

Hi Rui,

The problem is with root and not fastjet here. The fastjet interface seems ok from the screen output you showed me. In principle, it would be sufficient to setup the envirnment variables correctly (there is a thisroot.sh script somewhere in your root installation). Could you please share the log file if this does not work.

Cheers,

Benjamin

> On 15 Nov 2018, at 13:13 , Rui Zhang <email address hidden> wrote:
>
> Question #676149 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/676149
>
> Rui Zhang posted a new comment:
> Oh, sorry, I see. You mean use "install fastjet" in a standalone ma5.
> But I can not use another madanalysis. Maybe I should reinstall my root
> again? I just install ma5 in madgraph by reinstall my root.
>
> ----------------------------------------
> zhangruideMacBook-Pro:bin zhangrui$ ./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.6 2018/05/04 *
> 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: Darwin 18.2.0 [MAC/OSX 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: - SciPy [DISABLED]
> MA5: - FastJet [OK]
> MA5: - Root [OK]
> MA5: - Delphes [DISABLED]
> MA5: - Delphes-MA5tune [DISABLED]
> MA5: Checking optional packages devoted to histogramming:
> MA5: - Root [OK]
> MA5: - Matplotlib [DISABLED]
> MA5: - pdflatex [OK]
> MA5: - latex [OK]
> MA5: Package used for graphical rendering: Root
> MA5: Checking the MadAnalysis 5 core library:
> MA5: => First use of MadAnalysis (or the library is missing).
> MA5:
> MA5: **********************************************************
> MA5: Building SampleAnalyzer libraries
> MA5: **********************************************************
> MA5: How many cores for the compiling? default = max = 8
> Answer:
> MA5: => Number of cores used for the compilation = 8
> MA5: Writing the setup files ...
> MA5: Writing all the Makefiles ...
> MA5: **********************************************************
> MA5: Component 1/11 - test program: SampleAnalyzer configuration
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 2/11 - library: SampleAnalyzer commons
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 3/11 - test program: SampleAnalyzer commons
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 4/11 - library: interface to zlib
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 5/11 - test program: interface to zlib
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 6/11 - library: interface to FastJet
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 7/11 - test program: interface to Fastjet
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 8/11 - library: interface to Root
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 9/11 - test program: interface to Root
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5-ERROR: impossible to run the project. For more details, see the log file:
> MA5-ERROR: /Users/zhangrui/madanalysis5/tools/SampleAnalyzer/Bin/TestRoot.log
> MA5-ERROR: the test failed.
> zhangruideMacBook-Pro:bin zhangrui$ cd ..
> zhangruideMacBook-Pro:madanalysis5 zhangrui$ l
> COPYING README bin/ madanalysis/ tools/ version.txt
> zhangruideMacBook-Pro:madanalysis5 zhangrui$ ./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.6 2018/05/04 *
> 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: Darwin 18.2.0 [MAC/OSX 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: - SciPy [DISABLED]
> MA5: - FastJet [OK]
> MA5: - Root [OK]
> MA5: - Delphes [DISABLED]
> MA5: - Delphes-MA5tune [DISABLED]
> MA5: Checking optional packages devoted to histogramming:
> MA5: - Root [OK]
> MA5: - Matplotlib [DISABLED]
> MA5: - pdflatex [OK]
> MA5: - latex [OK]
> MA5: Package used for graphical rendering: Root
> MA5: Checking the MadAnalysis 5 core library:
> MA5: => First use of MadAnalysis (or the library is missing).
> MA5:
> MA5: **********************************************************
> MA5: Building SampleAnalyzer libraries
> MA5: **********************************************************
> MA5: How many cores for the compiling? default = max = 8
> Answer: 4
> MA5: => Number of cores used for the compilation = 4
> MA5: Writing the setup files ...
> MA5: Writing all the Makefiles ...
> MA5: **********************************************************
> MA5: Component 1/11 - test program: SampleAnalyzer configuration
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 2/11 - library: SampleAnalyzer commons
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 3/11 - test program: SampleAnalyzer commons
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 4/11 - library: interface to zlib
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 5/11 - test program: interface to zlib
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 6/11 - library: interface to FastJet
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 7/11 - test program: interface to Fastjet
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5: - Checking the program output...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 8/11 - library: interface to Root
> MA5: - Cleaning the project before building the library ...
> MA5: - Compiling the source files ...
> MA5: - Linking the library ...
> MA5: - Checking that the library is properly built ...
> MA5: - Cleaning the project after building the library ...
> MA5: => Status: [OK]
> MA5: **********************************************************
> MA5: Component 9/11 - test program: interface to Root
> MA5: - Cleaning the project before building the test program ...
> MA5: - Compiling the source files ...
> MA5: - Linking the test program ...
> MA5: - Checking that the test program is properly built ...
> MA5: - Cleaning the project after building the test program ...
> MA5: - Running the test program ...
> MA5-ERROR: impossible to run the project. For more details, see the log file:
> MA5-ERROR: /Users/zhangrui/madanalysis5/tools/SampleAnalyzer/Bin/TestRoot.log
> MA5-ERROR: the test failed.
> --------------------------------------------------------
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Rui Zhang (ruirui) said :
#9

I have checked again that I used ". /usr/local/bin/thisroot.sh" and write envirnment variables in ~/.bash_profile. And it still doesn't work. Following is /Users/zhangrui/madanalysis5/tools/SampleAnalyzer/Bin/TestRoot.log.

--------------------------------------------------------------------------------------------------------
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /usr/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
--------------------------------------------------------------------------------------------------------

Thank you.

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

Hi,

Is this library, /usr/local/lib/libJPEG.dylib, existing? Maybe reinstalling root could help here. There is something weird with your environment variables.

Cheers,

Benjamin

> On 15 Nov 2018, at 14:42 , Rui Zhang <email address hidden> wrote:
>
> Question #676149 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/676149
>
> Rui Zhang posted a new comment:
> I have checked again that I used ". /usr/local/bin/thisroot.sh" and
> write envirnment variables in ~/.bash_profile. And it still doesn't
> work. Following is
> /Users/zhangrui/madanalysis5/tools/SampleAnalyzer/Bin/TestRoot.log.
>
> --------------------------------------------------------------------------------------------------------
> dyld: Symbol not found: __cg_jpeg_resync_to_restart
> Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
> Expected in: /usr/local/lib/libJPEG.dylib
> in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
> --------------------------------------------------------------------------------------------------------
>
> Thank you.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Rui Zhang (ruirui) said :
#11

Evidently...not exist... and there is libjpeg.dylib...

And shell tell me that libJPEG.dylib and libjpeg.dylib are identical.

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

This is however not recommended as it could break things...

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

This is weird. Could you try to add a symbolic link featuring the other filename?

Cheers,

Benjamin

> On 15 Nov 2018, at 15:27 , Rui Zhang <email address hidden> wrote:
>
> Question #676149 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/676149
>
> Rui Zhang posted a new comment:
> Evidently...not exist... and there is libjpeg.dylib...
>
> And shell tell me that libJPEG.dylib and libjpeg.dylib are identical.
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Rui Zhang (ruirui) said :
#14

I don't know how to add symbolic link. They are identical. They are the same file, no difference.

Mac is not case sensitive? I hope it's not the critical problem...

-------------------------------------------
zhangruideMacBook-Pro:lib zhangrui$ ln -s libjpeg.dylib libJPEG.dylib
ln: libJPEG.dylib: File exists
zhangruideMacBook-Pro:lib zhangrui$ ln -s libJPEG.dylib libjpeg.dylib
ln: libjpeg.dylib: File exists
-------------------------------------------

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

Yeah, mac is case insensitive. You may want to move the first file to something else and recreate it with the proper name. But this may break things. Be careful and make some backups just in case. You can for instance check the second comment here:
  https://github.com/sgrif/pq-sys/issues/1 <https://github.com/sgrif/pq-sys/issues/1>
for a way out.

Cheers,

B>

> On 15 Nov 2018, at 16:02 , Rui Zhang <email address hidden> wrote:
>
> Question #676149 on MadAnalysis 5 changed:
> https://answers.launchpad.net/madanalysis5/+question/676149
>
> Rui Zhang posted a new comment:
> I don't know how to add symbolic link. They are identical. They are the
> same file, no difference.
>
> Mac is not case sensitive? I hope it's not the critical problem...
>
> -------------------------------------------
> zhangruideMacBook-Pro:lib zhangrui$ ln -s libjpeg.dylib libJPEG.dylib
> ln: libJPEG.dylib: File exists
> zhangruideMacBook-Pro:lib zhangrui$ ln -s libJPEG.dylib libjpeg.dylib
> ln: libjpeg.dylib: File exists
> -------------------------------------------
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Rui Zhang (ruirui) said :
#16

Thanks Benjamin Fuks, that solved my question.

Revision history for this message
Rui Zhang (ruirui) said :
#17

Thank you, Benjamin. This method is quite physical! I have suffered from these files for long time and have not even know it's the case problem.

That solves all the problem. Thanks a lot!