error: Failed to access python version of LHAPDF

Asked by Adil Hussain

 Hi,

    I am using MG5_aMC_v2_5_0_beta2, Delphes-3.2.0 when i run this ./bin/mg5_aMC CLI, I get this
    {A Pythia8 path is specified via the option 'pythia8_path' but no path for option
    'mg5amc_py8_interface_path' is specified. This means that Pythia8 cannot be used
    leading order simulations with MadEvent?.
    Consider installing the MG5_aMC-PY8 interface with the following command:

        MG5_aMC>install mg5amc_py8_interface}

    When i run above command "install mg5amc_py8_interface", after few lines i get this error
    { Command "install mg5amc_py8_interface " interrupted in sub-command:
    "install mg5amc_py8_interface" with error:
    InvalidCmd? : Installation of mg5amc_py8_interface failed.}
    How to solve this problem?

    Further if i ignore above error and generate any process then during this generation
    process i get this error below
    {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 the LHAPDF library location to LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).}
    Please guide me in solving this problem.

Cheers,
Adil

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

Dear Adil,

Concerning, the second error. It means that we are not able to connect to lhapdf via the associated python interface.
This can be due to
1) no lhapdf is found
2) a lhapdf version is found but is not compiled to be python linkable
The second typically occur on linux if the python-devel package is not installed.
On Mac, this might also be due to the ISP preventing the code to access the DYLD_LIBRARY_PATH

Note that having lhapdf linkable is optional. And you can perfectly use the code without that.
This only prevents the inclusion of the weights for the systematic computation.
to remove such warning you can
1) update your lhapdf to have it linkable trough python
2) ask explicitly to not run the systematics options: with “none = systematics_program” in the run_card
3) install SysCalc such that you use a C++ version of the code to compute the systematics instead of the python version (“install SysCalc”)
More information about the computation of the systematics uncertainty can be found here:
https://cp3.irmp.ucl.ac.be/projects/madgraph/wiki/Systematics

For the installation error, can you copy-paste the line printed on screen?
You also should have some log file:
HEPTools/MG5aMC_PY8_interface/mg5amc_py8_interface_install.log
What is the content of that file?

Cheers,

Olivier

> On Dec 19, 2016, at 16:57, Adil Hussain <email address hidden> wrote:
>
> New question #407669 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/407669
>
> Hi,
>
> I am using MG5_aMC_v2_5_0_beta2, Delphes-3.2.0 when i run this ./bin/mg5_aMC CLI, I get this
> {A Pythia8 path is specified via the option 'pythia8_path' but no path for option
> 'mg5amc_py8_interface_path' is specified. This means that Pythia8 cannot be used
> leading order simulations with MadEvent?.
> Consider installing the MG5_aMC-PY8 interface with the following command:
>
> MG5_aMC>install mg5amc_py8_interface}
>
> When i run above command "install mg5amc_py8_interface", after few lines i get this error
> { Command "install mg5amc_py8_interface " interrupted in sub-command:
> "install mg5amc_py8_interface" with error:
> InvalidCmd? : Installation of mg5amc_py8_interface failed.}
> How to solve this problem?
>
>
> Further if i ignore above error and generate any process then during this generation
> process i get this error below
> {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 the LHAPDF library location to LD_LIBRARY_PATH (linux) or DYLD_LIBRARY_PATH (mac os x).}
> Please guide me in solving this problem.
>
> Cheers,
> Adil
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Helsenki (helsenki0099) said :
#2

Fortnite is one of the most popular online game https://fortnitefreeaccounts.com/ i hope you enjoy to play.

Can you help with this problem?

Provide an answer of your own, or ask Adil Hussain for more information if necessary.

To post a message you must log in.