Error: no display specified

Asked by Han

Dear MadGraph Team,

Hi, It's been two weeks since I started to learn MG5 and FR, so it may sound stupid question, but I would appreciated if you can answer my questions :D

Question 1:
I had my own FR file ".fr" which has huge parameter expressions inside, and then generated "_UFO" file accordingly. But it seemed that FR couldn't correctly read off "Csc" function, so that it was just printed as "1/Sin(x)" not 1/cmath.sin(x) form <- Is this right way of writing in Python?
In any case, I had to "find" and "replace" these mitranslated functions into the correct ones.

Questions 2:
Then I loaded this "_UFO" file into the MG5, and generated processes, for instance,
mg5> generate p p > X X~
...
mg5> output Test
...
mg5> launch Test
...
Generating 10000 events with run name run_01
survey run_01
compile directory
Error: no display specified
/home/JeongHan/Downloads/MadGraph5_v1_5_11/RealHan/bin/internal/ufomodel/particles.py
write ./param_card.dat
(Then it just stopped forever)

I couldn't understand what this "no display specified" error message indicates. My suspicion is that I used too lengthy parameter expressions which cause MG5/FR disable to read the codes correctly, or... there are some mistakes in my codes.

Thanks for reading this.

Cheers !

Jeong-han Kim

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Han
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi Jeong-han Kim,

> Question 1:
> I had my own FR file ".fr" which has huge parameter expressions inside, and then generated "_UFO" file accordingly. But it seemed that FR couldn't correctly read off "Csc" function, so that it was just printed as "1/Sin(x)" not 1/cmath.sin(x) form <- Is this right way of writing in Python?
> In any case, I had to "find" and "replace" these mitranslated functions into the correct ones.

I forward this point to the FR team, since this looks a problem on their side.

> Questions 2:
> Then I loaded this "_UFO" file into the MG5, and generated processes, for instance,
> mg5> generate p p > X X~
> ...
> mg5> output Test
> ...
> mg5> launch Test
> ...
> Generating 10000 events with run name run_01
> survey run_01
> compile directory
> Error: no display specified
> /home/JeongHan/Downloads/MadGraph5_v1_5_11/RealHan/bin/internal/ufomodel/particles.py
> write ./param_card.dat
> (Then it just stopped forever)

The "Error: no display specified" is in fact an error which can appear when we try to open firefox(or other web browser) in order to have the status on a html content rather than the shell. If you forbid MG to (try to) open the browser this should remove this print.
just do:
./bin/mg5
set automatic_html_opening False
save options

Now this is completely unrelated to why the code is slow after that.
By looking at the print statement, gfortran is compiling your code. Since you have very long expression
this might take a while (and on some linux machine gfortran is extremely slow, don't ask me why).
Nothing that we can do for that, you just have to wait that gfortran finish the jobs.

Cheers,

Olivier

On Jul 5, 2013, at 1:21 AM, Jeong Han Kim <email address hidden> wrote:

> New question #231915 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/231915
>
> Dear MadGraph Team,
>
> Hi, It's been two weeks since I started to learn MG5 and FR, so it may sound stupid question, but I would appreciated if you can answer my questions :D
>
> Question 1:
> I had my own FR file ".fr" which has huge parameter expressions inside, and then generated "_UFO" file accordingly. But it seemed that FR couldn't correctly read off "Csc" function, so that it was just printed as "1/Sin(x)" not 1/cmath.sin(x) form <- Is this right way of writing in Python?
> In any case, I had to "find" and "replace" these mitranslated functions into the correct ones.
>
> Questions 2:
> Then I loaded this "_UFO" file into the MG5, and generated processes, for instance,
> mg5> generate p p > X X~
> ...
> mg5> output Test
> ...
> mg5> launch Test
> ...
> Generating 10000 events with run name run_01
> survey run_01
> compile directory
> Error: no display specified
> /home/JeongHan/Downloads/MadGraph5_v1_5_11/RealHan/bin/internal/ufomodel/particles.py
> write ./param_card.dat
> (Then it just stopped forever)
>
> I couldn't understand what this "no display specified" error message indicates. My suspicion is that I used too lengthy parameter expressions which cause MG5/FR disable to read the codes correctly, or... there are some mistakes in my codes.
>
> Thanks for reading this.
>
> Cheers !
>
> Jeong-han Kim
>
>
>
>
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Han (jeonghan-kim) said :
#2

Many Many thanks, Olivier,

That solved my problem.

Cheers !

Jeong-han Kim