generation of JPG of diagramns

Asked by Roberto Franceschini on 2020-09-10

It is probably the smallest issue, but I was wondering if I can do something about the failure to generate JPG diagrams

```
INFO: Generate jpeg diagrams
GPL Ghostscript 9.07: Unrecoverable error, exit code 1
GPL Ghostscript 9.07: Unrecoverable error, exit code 1
cp: cannot stat ‘card.jpg’: No such file or directory
```
I have launched mg5_aMC --debug but it does not say more than the above error. Anywhere I can look to debug this issue?

Thanks
Roberto

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2020-09-10
Last query:
2020-09-10
Last reply:
2020-09-10

Hi,

It means that "gs" program is not correctly setup on your machine.
You should try to update it.

Cheers,

Olivier

Thanks for the prompt message.

MG5_aMC_v2_6_0>gs
GPL Ghostscript 9.07 (2013-02-14)
Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GPL Ghostscript 9.07: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.

is this too old?

in any case
   gs -sDEVICE=jpeg -o out-%d.jpg ./ReweightTest/rw_me/SubProcesses/P1_ddx_epem/matrix.ps
works as expected. Any log I can read and understand better?

> On 10 Sep 2020, at 15:30, Olivier Mattelaer <email address hidden> wrote:
>
> Your question #692851 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/692851
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> Hi,
>
> It means that "gs" program is not correctly setup on your machine.
> You should try to update it.
>
> 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/692851/+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/692851
>
> You received this question notification because you asked the question.

You can edit line 29 of
Template/LO/bin/internal/gen_jpeg-pl

in order to have more log and some hint of the issue.

Cheers,

Olivier

> On 10 Sep 2020, at 15:55, Roberto Franceschini <email address hidden> wrote:
>
> Question #692851 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/692851
>
> Status: Answered => Open
>
> Roberto Franceschini is still having a problem:
> Thanks for the prompt message.
>
> MG5_aMC_v2_6_0>gs
> GPL Ghostscript 9.07 (2013-02-14)
> Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> GPL Ghostscript 9.07: Cannot open X display `(null)'.
> **** Unable to open the initial device, quitting.
>
> is this too old?
>
> in any case
> gs -sDEVICE=jpeg -o out-%d.jpg ./ReweightTest/rw_me/SubProcesses/P1_ddx_epem/matrix.ps
> works as expected. Any log I can read and understand better?
>
>
>> On 10 Sep 2020, at 15:30, Olivier Mattelaer <email address hidden> wrote:
>>
>> Your question #692851 on MadGraph5_aMC@NLO changed:
>> https://answers.launchpad.net/mg5amcnlo/+question/692851
>>
>> Status: Open => Answered
>>
>> Olivier Mattelaer proposed the following answer:
>> Hi,
>>
>> It means that "gs" program is not correctly setup on your machine.
>> You should try to update it.
>>
>> 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/692851/+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/692851
>>
>> You received this question notification because you asked the question.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Thanks. I have updated to
>gs -h
GPL Ghostscript 9.25 (2018-09-13)
and is now working.

On Thu, Sep 10, 2020 at 4:01 PM Olivier Mattelaer <
<email address hidden>> wrote:

> Your question #692851 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/692851
>
> Status: Open => Answered
>
> Olivier Mattelaer proposed the following answer:
> You can edit line 29 of
> Template/LO/bin/internal/gen_jpeg-pl
>
> in order to have more log and some hint of the issue.
>
> Cheers,
>
> Olivier
>
> > On 10 Sep 2020, at 15:55, Roberto Franceschini <
> <email address hidden>> wrote:
> >
> > Question #692851 on MadGraph5_aMC@NLO changed:
> > https://answers.launchpad.net/mg5amcnlo/+question/692851
> >
> > Status: Answered => Open
> >
> > Roberto Franceschini is still having a problem:
> > Thanks for the prompt message.
> >
> > MG5_aMC_v2_6_0>gs
> > GPL Ghostscript 9.07 (2013-02-14)
> > Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
> > This software comes with NO WARRANTY: see the file PUBLIC for details.
> > GPL Ghostscript 9.07: Cannot open X display `(null)'.
> > **** Unable to open the initial device, quitting.
> >
> > is this too old?
> >
> > in any case
> > gs -sDEVICE=jpeg -o out-%d.jpg
> ./ReweightTest/rw_me/SubProcesses/P1_ddx_epem/matrix.ps
> > works as expected. Any log I can read and understand better?
> >
> >
> >> On 10 Sep 2020, at 15:30, Olivier Mattelaer <
> <email address hidden>> wrote:
> >>
> >> Your question #692851 on MadGraph5_aMC@NLO changed:
> >> https://answers.launchpad.net/mg5amcnlo/+question/692851
> >>
> >> Status: Open => Answered
> >>
> >> Olivier Mattelaer proposed the following answer:
> >> Hi,
> >>
> >> It means that "gs" program is not correctly setup on your machine.
> >> You should try to update it.
> >>
> >> 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/692851/+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/692851
> >>
> >> You received this question notification because you asked the question.
> >
> > --
> > You received this question notification because you are an answer
> > contact for MadGraph5_aMC@NLO.
>
> --
> 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/692851/+confirm?answer_id=2
>
> 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/692851
>
> You received this question notification because you asked the question.
>

Thanks Olivier Mattelaer, that solved my question.