Path error: python version of LHAPDF

Asked by Raghad Badawi

I ran this code: launch MY_FIRST_MG5_RUN
I set shower = Pythia8 and analysis = MadAnalysis5, then 0, then another 0.
I got this error:

INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_07
survey run_07
INFO: compile directory
compile Source Directory
Using random number seed offset = 57
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: Compiling for process 1/2.
INFO: P1_gg_ttx
INFO: Compiling for process 2/2.
INFO: P1_qq_ttx
INFO: P1_gg_ttx
INFO: P1_qq_ttx
INFO: Idle: 1, Running: 1, Completed: 0 [ current time: 18h47 ]
INFO: Idle: 0, Running: 1, Completed: 1 [ 0.18s ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.32s ]
INFO: End survey
refine 10000
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweighted events.
sum of cpu time of last step: 1 seconds
INFO: Effective Luminosity 23.811791599199925 pb^-1
INFO: need to improve 2 channels
- Current estimate of cross-section: 503.952 +- 2.6977567659260906
    P1_gg_ttx
    P1_qq_ttx
INFO: Idle: 5, Running: 8, Completed: 0 [ current time: 18h47 ]
INFO: Idle: 0, Running: 0, Completed: 13 [ 1.2s ]
INFO: Combining runs
sum of cpu time of last step: 13 seconds
INFO: finish refine
refine 10000 --treshold=0.9
No need for second refine due to stability of cross-section
INFO: Combining Events
combination of events done in 1.7518365383148193 s
  === Results Summary for run: run_07 tag: tag_1 ===

     Cross-section : 504.2 +- 0.6089 pb
     Nb of events : 10000

fail
Failed to access python version of LHAPDF: If the python interface to LHAPDF is available on your system, try adding its location to the PYTHONPATH environment variable and theLHAPDF library location to LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).The required LD_LIBRARY_PATH is /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/lhapdf6_py3//lib
INFO: can not run systematics since can not link python to lhapdf
store_events
INFO: Storing parton level results
INFO: End Parton
reweight -from_cards
decay_events -from_cards
INFO: Madanalysis5 parton-level analysis was skipped following user request.
INFO: To run the analysis, remove or comment the tag '@MG5aMC skip_analysis' in
  '/home/raghad/Downloads/MG5_aMC_v3_5_3/MY_FIRST_MG5_RUN/Cards/madanalysis5_parton_card.dat'.

And then it runs pythia8's computations, then opens a browser window without the option to view the plots and histograms.

Please note that I am using Ubuntu 22.04 LTS, and MG5_aMC_v3_5_3.

Can you help me with this?
Please note that I am new to this.
Many thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Yes on Ubutu, it seems that they are a protection over the modification of LD_LIBRARY_PATH and therefore we can not add lhapdf to the LD_LIBRARY_PATH for you. So you have to do it (in your favourite way) as said in the log you have to include in the list of path:
 /home/raghad/Downloads/MG5_aMC_v3_5_3/HEPTools/lhapdf6_py3//lib

Otherwise, looks like you are missing some requirement for madanalysis5, but we do not track such type of issue in our log
The best is likely to run ma5 manually and check the warning/error message and in case report it to their github repo.

Cheers,

Olivier

Revision history for this message
Raghad Badawi (r-b-99) said :
#2

Hello Oliver, thank you for answering.
I added LD_LIBRARY_PATH.

This :
fail
Failed to access python version of LHAPDF: If the python interface to LHAPDF is available on your system, try adding its location to the PYTHONPATH environment variable and theLHAPDF library location to LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).The required LD_LIBRARY_PATH is /home/raghad/Downloads/

went away.

But I got this instead:

INFO: Running MadAnalysis5 [arXiv:1206.1599]
INFO: Parton input file considered:
INFO: --> ['/home/raghad/Downloads/MG5_aMC_v3_5_3/MY_FIRST_MG5_RUN/Events/run_04/unweighted_events.lhe.gz']
INFO: Running Pythia8 [arXiv:1410.3012]
Splitting .lhe event file for PY8 parallelization...
Submitting Pythia8 jobs...
Pythia8 shower jobs: 1 Idle, 7 Running, 0 Done [10 seconds]
Pythia8 shower jobs: 0 Idle, 7 Running, 1 Done [1m58s]
Pythia8 shower jobs: 0 Idle, 6 Running, 2 Done [1m58s]
Pythia8 shower jobs: 0 Idle, 5 Running, 3 Done [1m58s]
Pythia8 shower jobs: 0 Idle, 4 Running, 4 Done [1m59s]
Pythia8 shower jobs: 0 Idle, 3 Running, 5 Done [1m59s]
Pythia8 shower jobs: 0 Idle, 2 Running, 6 Done [1m59s]
Pythia8 shower jobs: 0 Idle, 1 Running, 7 Done [2m00s]
Pythia8 shower jobs: 0 Idle, 0 Running, 8 Done [2m00s]
Merging results from the split PY8 runs...
INFO: Pythia8 shower finished after 3m00s.
  === Results Summary for run: run_04 tag: tag_1 ===

     Cross-section : 504.8 +- 0.6586 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: --> /home/raghad/Downloads/MG5_aMC_v3_5_3/MY_FIRST_MG5_RUN/Events/run_04/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 /home/raghad/Downloads/MG5_aMC_v3_5_3/MY_FIRST_MG5_RUN/Events/run_04/tag_1_MA5__reco_BasicReco.log
Error detected in "generate_events run_04"
write debug file /home/raghad/Downloads/MG5_aMC_v3_5_3/MY_FIRST_MG5_RUN/run_04_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : MadAnalysis5 failed to produce the reconstructed event file for reconstruction 'BasicReco'.
quit
INFO:
MG5_aMC>

Can you help?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

On that likely not,
The best is to look at the file
/home/raghad/Downloads/MG5_aMC_v3_5_3/MY_FIRST_MG5_RUN/Events/run_04/tag_1_MA5__reco_BasicReco.log
to see what's going on, if it is not easy to fix then please report to the madanalysis5 team.

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Raghad Badawi for more information if necessary.

To post a message you must log in.