I am having issue with the LHAPDF, In the pythia8, I have installed LHAPDF6, which was installed default. fail Failed to access python version of LHAPDF: If the python interface to LHAPDF is available on your system, try adding its location to f

Asked by Kanhaiya Gupta

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

MG5_aMC>launch pt
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* M A D E V E N T *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 2.6.4 2018-11-09 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /home/kanhaiya/Madgraph/MG5_aMC_v2_5_5/pt/Cards/me5_configuration.txt
INFO: load configuration from /home/kanhaiya/Madgraph/MG5_aMC_v2_5_5/input/mg5_configuration.txt
INFO: load configuration from /home/kanhaiya/Madgraph/MG5_aMC_v2_5_5/pt/Cards/me5_configuration.txt
Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
generate_events run_04
The following switches determine which programs are run:
/==============================================================================\
| 1. Choose the shower/hadronization program shower = Pythia8 |
| 2. Choose the detector simulation program detector = Delphes |
| 3. Choose an analysis package (plot/convert) analysis = MadAnalysis4 |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\==============================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'shower=OFF' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
>0
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 2. run : run_card.dat |
| 3. pythia8 : pythia8_card.dat |
| 4. delphes : delphes_card.dat |
| 5. plot : plot_card.dat |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 2, run, 3, pythia8, 4, enter path, ... ][90s to answer]
>0
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_04
survey run_04
INFO: compile directory
compile Source Directory
Using random number seed offset = 48
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: P1_gg_ttx
INFO: P1_qq_ttx
INFO: Idle: 0, Running: 1, Completed: 1 [ current time: 19h42 ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.47s ]
INFO: Idle: 0, Running: 0, Completed: 2 [ 0.47s ]
INFO: End survey
refine 10000
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweigthed events.
INFO: Effective Luminosity 23.8342565797 pb^-1
INFO: need to improve 3 channels
Current estimate of cross-section: 503.477 +- 2.655881668
    P1_gg_ttx
    P1_qq_ttx
INFO: Idle: 10, Running: 4, Completed: 0 [ current time: 19h42 ]
INFO: Idle: 5, Running: 4, Completed: 5 [ 3.4s ]
INFO: Idle: 0, Running: 0, Completed: 14 [ 5.8s ]
INFO: Combining runs
INFO: finish refine
refine 10000
Creating Jobs
INFO: Refine results to 10000
INFO: Generating 10000.0 unweigthed events.
INFO: Effective Luminosity 23.7595533204 pb^-1
INFO: need to improve 0 channels
Current estimate of cross-section: 505.06 +- 0.733849537031
    P1_gg_ttx
    P1_qq_ttx
INFO: Idle: 0, Running: 0, Completed: 0 [ current time: 19h42 ]
INFO: Combining runs
INFO: finish refine
INFO: Combining Events
  === Results Summary for run: run_04 tag: tag_1 ===

     Cross-section : 505.1 +- 0.7338 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).
INFO: can not run systematics since can not link python to lhapdf
INFO: Creating Plots for parton level
INFO: Plots for parton level generated, see /home/kanhaiya/Madgraph/MG5_aMC_v2_5_5/pt/HTML/run_04/plots_parton.html
INFO: End Plots for parton level
store_events
INFO: Storing parton level results
INFO: End Parton
reweight -from_cards
decay_events -from_cards
INFO: Running Pythia8 [arXiv:1410.3012]
Splitting .lhe event file for PY8 parallelization...
Submitting Pythia8 jobs...
Pythia8 shower jobs: 0 Idle, 4 Running, 0 Done [4 seconds]

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

Hi,

Looks like that either
1) your installation of lhapdf was not compiled to allow python support
2) the LD_LIBRARY_PATH and/or PYTHONPATH variable are wrongly set on your system to make it work.

To test if that is indeed the issue you should try to run
"import lhapdf" inside a python shell
If it works, then this is not of the above but a bug inside our code.

Cheers,

Olivier

Revision history for this message
Kanhaiya Gupta (kanhaiya11) said :
#2

Here,

kanhaiya@Inspiron-15-3567:~$ python
Python 2.7.12 (default, Nov 12 2018, 14:36:49)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lhapdf
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named lhapdf
>>> import lhapdh6
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named lhapdh6

But the problem is persist..!

On Mon, Nov 19, 2018 at 1:53 PM Olivier Mattelaer <
<email address hidden>> wrote:

> Your question #676241 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/676241
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Hi,
>
> Looks like that either
> 1) your installation of lhapdf was not compiled to allow python support
> 2) the LD_LIBRARY_PATH and/or PYTHONPATH variable are wrongly set on your
> system to make it work.
>
> To test if that is indeed the issue you should try to run
> "import lhapdf" inside a python shell
> If it works, then this is not of the above but a bug inside our code.
>
> Cheers,
>
> Olivier
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/mg5amcnlo/+question/676241/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/mg5amcnlo/+question/676241
>
> You received this question notification because you asked the question.
>

Revision history for this message
Kanhaiya Gupta (kanhaiya11) said :
#3

yes..
I don't know what to do with this

the LD_LIBRARY_PATH and/or PYTHONPATH variable are wrongly set on your
system to make it work.

On Mon, Nov 19, 2018 at 5:57 PM Kanhaiya Gupta <
<email address hidden>> wrote:

> Your question #676241 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/676241
>
> Status: Answered => Open
>
> You are still having a problem:
> Here,
>
>
> kanhaiya@Inspiron-15-3567:~$ python
> Python 2.7.12 (default, Nov 12 2018, 14:36:49)
> [GCC 5.4.0 20160609] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import lhapdf
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named lhapdf
> >>> import lhapdh6
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named lhapdh6
>
>
> But the problem is persist..!
>
>
> On Mon, Nov 19, 2018 at 1:53 PM Olivier Mattelaer <
> <email address hidden>> wrote:
>
> > Your question #676241 on MadGraph5_aMC@NLO changed:
> > https://answers.launchpad.net/mg5amcnlo/+question/676241
> >
> > Status: Open => Answered
> >
> > Olivier Mattelaer proposed the following answer:
> > Hi,
> >
> > Looks like that either
> > 1) your installation of lhapdf was not compiled to allow python support
> > 2) the LD_LIBRARY_PATH and/or PYTHONPATH variable are wrongly set on your
> > system to make it work.
> >
> > To test if that is indeed the issue you should try to run
> > "import lhapdf" inside a python shell
> > If it works, then this is not of the above but a bug inside our code.
> >
> > Cheers,
> >
> > Olivier
> >
> > --
> > If this answers your question, please go to the following page to let us
> > know that it is solved:
> >
> >
> https://answers.launchpad.net/mg5amcnlo/+question/676241/+confirm?answer_id=0
> >
> > If you still need help, you can reply to this email or go to the
> > following page to enter your feedback:
> > https://answers.launchpad.net/mg5amcnlo/+question/676241
> >
> > You received this question notification because you asked the question.
> >
>
> --
> You received this question notification because you asked the question.
>

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

Hi,

1) Where lhapdf is installed on your system?
2) Did you have a lib directory in that directory?
3) Did you have a .so in that lib directory?
4) if the answer is not to any of those two last one, it means that you have to re-install lhapdf and be sure to compile with the python flag
5) if the answer is yes, then add that directory to your LD_LIBRARY_PATH environment variable.
and retry within madgraph to see if you have systematics computation available.

6) if this still not works find the inside the lhapdf directory where they did install the python linker (it is quite chaotic where lhapdf is writing those, so I can not be more specific and it should not be what I expect since MG5aMC is already trying to find that one automatically) and add it to your PYTHONPATH.

Cheers,

Olivier

Can you help with this problem?

Provide an answer of your own, or ask Kanhaiya Gupta for more information if necessary.

To post a message you must log in.