Can't start mg5_aMc

Asked by Jakob Lundström

When running ./bin/mg5_aMC I get the error message:
/usr/bin/env: ‘python’: No such file or directory
I have Python 2.7.17 installed in another folder.
I have got it to work previously witn the same setup.

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

Are you on centos8 or redhat8?

On those machines, they have decided to remove the "python" executable such that the user (or code) is force to choose between python2 or python3.

If you use MG5aMC_2.7.2 you need to use python2
In the case of MG5aMC_2.7.2.py3 you can use either python2 or python3 (the default has change to python3 in that case)

Cheers,

Olivier

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

I'm on Ubuntu 18, using MG5aMC_2.7.2.
Does my choice of folder matter? currently both Python-2.7.17 and MG5AMC is in downloads.

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

Hi,

If you do not have python available in the $PATH environment variable then you need to run madgraph like this:

$PATH_TO_PYTHON_DIRCTORY/bin/python $PATH_TO_MG5_DIRECTORY/bin/mg5_aMC

where you have to replace $PATH_TO_PYTHON_DIRCTORY
and $PATH_TO_MG5_DIRECTORY
by the associate path (which should be a sub-directory of your downloads directory in your case)

Cheers,

Olivier

> On 30 Mar 2020, at 17:27, Jakob Lundström <email address hidden> wrote:
>
> Question #689583 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/689583
>
> Status: Answered => Open
>
> Jakob Lundström is still having a problem:
> I'm on Ubuntu 18, using MG5aMC_2.7.2.
> Does my choice of folder matter? currently both Python-2.7.17 and MG5AMC is in downloads.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Can you help with this problem?

Provide an answer of your own, or ask Jakob Lundström for more information if necessary.

To post a message you must log in.