cannot run Madgraph2.8

Asked by pietro govoni on 2020-08-29

Dear Madgraph experts,

I am trying to run Madgraph version MG5_aMC_v2_8_0 on the CERN lxplus cluster and I get the following error:

wget https://launchpad.net/mg5amcnlo/2.0/2.8.x/+download/MG5_aMC_v2.8.0.tar.gz
source /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/setup.sh
export LHAPDF_DATA_PATH=/cvmfs/sft.cern.ch/lcg/external/lhapdfsets/current/
tar xzf MG5_aMC_v2.8.0.tar.gz
cd MG5_aMC_v2_8_0
./bin/mg5_aMC
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f734e4ce740 (most recent call first):
Aborted (core dumped)

How may I fix it?

Best regards,

pietro

Question information

Language:
English Edit question
Status:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Last query:
2020-09-09
Last reply:
2020-08-29

did you look at this thread?
https://stackoverflow.com/questions/38132755/importerror-no-module-named-encodings

Looks like python3 is not correctly setup.
(you can also test with python2 instead)

Cheers,

Olivier

> On 29 Aug 2020, at 17:05, pietro govoni <email address hidden> wrote:
>
> ModuleNotFoundError: No module named 'encodings'

pietro govoni (pietro-govoni) said : #2

thanks a lot,

pietro

> On 29 Aug 2020, at 19:50, Olivier Mattelaer <email address hidden> wrote:
>
> Your question #692657 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/692657
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> did you look at this thread?
> https://stackoverflow.com/questions/38132755/importerror-no-module-named-encodings
>
> Looks like python3 is not correctly setup.
> (you can also test with python2 instead)
>
> Cheers,
>
> Olivier
>
>> On 29 Aug 2020, at 17:05, pietro govoni <email address hidden> wrote:
>>
>> ModuleNotFoundError: No module named 'encodings'
>
> --
> 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/692657/+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/692657
>
> You received this question notification because you asked the question.

Can you help with this problem?

Provide an answer of your own, or ask pietro govoni for more information if necessary.

To post a message you must log in.