MadGraph Cannot Complete Tutorial

Asked by Jon-Mycal Palmer on 2020-10-12

I am a new user, trying to learn the software for my final year physics project.
I'm using a windows 10 machine running mg5_aMC v2.8.1 through CYGWin.

When I try to complete the tutorial everything works fine until:

MG5_aMC>output MY_FIRST_MG5_RUN
which returns:

INFO: initialize a new directory: MY_FIRST_MG5_RUN
INFO: remove old information in MY_FIRST_MG5_RUN
bin/internal/clean_template: bin/internal/gen_cardhtml-pl: /usr/bin/perl: bad interpreter: No such file or directory
INFO: Organizing processes into subprocess groups
INFO: Generating Helas calls for process: g g > t t~ WEIGHTED<=2 @1
INFO: Processing color information for process: g g > t t~ @1
INFO: Generating Helas calls for process: u u~ > t t~ WEIGHTED<=2 @1
INFO: Processing color information for process: u u~ > t t~ @1
INFO: Combined process c c~ > t t~ WEIGHTED<=2 @1 with process u u~ > t t~ WEIGHTED<=2 @1
INFO: Combined process d d~ > t t~ WEIGHTED<=2 @1 with process u u~ > t t~ WEIGHTED<=2 @1
INFO: Combined process s s~ > t t~ WEIGHTED<=2 @1 with process u u~ > t t~ WEIGHTED<=2 @1
INFO: Creating files in directory P1_gg_ttx
WARNING: Some T-channel width have been set to zero [new since 2.8.0]
 if you want to keep this width please set "zerowidth_tchannel" to False
INFO: Generating Feynman diagrams for Process: g g > t t~ WEIGHTED<=2 @1
INFO: Finding symmetric diagrams for subprocess group gg_ttx
INFO: Creating files in directory P1_qq_ttx
INFO: Generating Feynman diagrams for Process: u u~ > t t~ WEIGHTED<=2 @1
INFO: Finding symmetric diagrams for subprocess group qq_ttx
Generated helas calls for 2 subprocesses (4 diagrams) in 0.016 s
Wrote files for 16 helas calls in 0.354 s
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates VVV1 set of routines with options: P0
save configuration file to /cygdrive/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt
INFO: Use Fortran compiler gfortran
INFO: Use c++ compiler g++
INFO: Generate web pages
Command "output MY_FIRST_MG5_RUN" interrupted with error:
Exception : ['.//cygdrive/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/bin/internal/gen_cardhtml-pl'] fails with no such file or directory
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

I also receive the error:

MG5_aMC>install pythia8
   You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
Downloading the HEPToolInstaller at:
   http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V135.tar.gz
Command "install pythia8" interrupted with error:
Exception : ['./wget', 'http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V135.tar.gz', '--output-document=/cygdrive/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/HEPTools/HEPToolsInstallers.tar.gz'] fails with no such file or directory
Please report this bug on https://bugs.launchpad.net/mg5amcnlo
More information is found in 'MG5_debug'.
Please attach this file to your report.

I think both issues are related to MadGraph's interaction with my browser but of course I don't know.
I have it currently set to operate with FireFox by pointing directly to my firefox path install in the config.txt file but have tried other browsers with no success.

Any advice on how to solve this problem is appreciated.

Thank you

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Jon-Mycal Palmer
Solved:
2020-10-13
Last query:
2020-10-13
Last reply:
2020-10-12

This question was reopened

Cygwin was never supported.
For windows user the best is to easiest is to use the linux kernel that is (optionally?) shipped with all windows 10. I know that they are some issue in that mode (mainly for grahpics and for MadSpin) but otherwise it seems to work ok from report that I received.

Obviously the cleanest method is to install a linux in dual-boot since mainly scientific package offer close to zero support for windows.

Cheers,

Olivier

> On 12 Oct 2020, at 06:20, Jon-Mycal Palmer <email address hidden> wrote:
>
> New question #693411 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/693411
>
> I am a new user, trying to learn the software for my final year physics project.
> I'm using a windows 10 machine running mg5_aMC v2.8.1 through CYGWin.
>
> When I try to complete the tutorial everything works fine until:
>
> MG5_aMC>output MY_FIRST_MG5_RUN
> which returns:
>
> INFO: initialize a new directory: MY_FIRST_MG5_RUN
> INFO: remove old information in MY_FIRST_MG5_RUN
> bin/internal/clean_template: bin/internal/gen_cardhtml-pl: /usr/bin/perl: bad interpreter: No such file or directory
> INFO: Organizing processes into subprocess groups
> INFO: Generating Helas calls for process: g g > t t~ WEIGHTED<=2 @1
> INFO: Processing color information for process: g g > t t~ @1
> INFO: Generating Helas calls for process: u u~ > t t~ WEIGHTED<=2 @1
> INFO: Processing color information for process: u u~ > t t~ @1
> INFO: Combined process c c~ > t t~ WEIGHTED<=2 @1 with process u u~ > t t~ WEIGHTED<=2 @1
> INFO: Combined process d d~ > t t~ WEIGHTED<=2 @1 with process u u~ > t t~ WEIGHTED<=2 @1
> INFO: Combined process s s~ > t t~ WEIGHTED<=2 @1 with process u u~ > t t~ WEIGHTED<=2 @1
> INFO: Creating files in directory P1_gg_ttx
> WARNING: Some T-channel width have been set to zero [new since 2.8.0]
> if you want to keep this width please set "zerowidth_tchannel" to False
> INFO: Generating Feynman diagrams for Process: g g > t t~ WEIGHTED<=2 @1
> INFO: Finding symmetric diagrams for subprocess group gg_ttx
> INFO: Creating files in directory P1_qq_ttx
> INFO: Generating Feynman diagrams for Process: u u~ > t t~ WEIGHTED<=2 @1
> INFO: Finding symmetric diagrams for subprocess group qq_ttx
> Generated helas calls for 2 subprocesses (4 diagrams) in 0.016 s
> Wrote files for 16 helas calls in 0.354 s
> ALOHA: aloha creates FFV1 routines
> ALOHA: aloha creates VVV1 set of routines with options: P0
> save configuration file to /cygdrive/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt
> INFO: Use Fortran compiler gfortran
> INFO: Use c++ compiler g++
> INFO: Generate web pages
> Command "output MY_FIRST_MG5_RUN" interrupted with error:
> Exception : ['.//cygdrive/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/bin/internal/gen_cardhtml-pl'] fails with no such file or directory
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> I also receive the error:
>
> MG5_aMC>install pythia8
> You are installing 'pythia8', please cite ref(s): arXiv:1410.3012.
> Downloading the HEPToolInstaller at:
> http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V135.tar.gz
> Command "install pythia8" interrupted with error:
> Exception : ['./wget', 'http://madgraph.physics.illinois.edu/Downloads/HEPToolsInstaller/HEPToolsInstaller_V135.tar.gz', '--output-document=/cygdrive/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/HEPTools/HEPToolsInstallers.tar.gz'] fails with no such file or directory
> Please report this bug on https://bugs.launchpad.net/mg5amcnlo
> More information is found in 'MG5_debug'.
> Please attach this file to your report.
>
> I think both issues are related to MadGraph's interaction with my browser but of course I don't know.
> I have it currently set to operate with FireFox by pointing directly to my firefox path install in the config.txt file but have tried other browsers with no success.
>
> Any advice on how to solve this problem is appreciated.
>
> Thank you
>
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Jon-Mycal Palmer (jonmycal) said : #2

Oliver,

Thank you for your quick response.
Switching to Windows Terminal with Windows Subsytem for Linux using Ubuntu 20.04 has allowed me to progress further into the built-in tutorial but I still cannot complete it.

After output MY_FIRST_RUN completes with the foot notes:

save configuration file to /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt
WARNING: No Fortran Compiler detected! Please install one
INFO: Use Fortran compiler E:\MinGW\bin
WARNING: No c++ Compiler detected! Please install one
INFO: Use c++ compiler E:\MinGW\bin
INFO: Generate web pages
Output to directory /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN done.
Type "launch" to generate events from this process, or see
/mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/README
Run "open index.html" to see more information about this process.

Which is strange to me as I have gfortran and g++ installed through MinGW and pointed at in the configuration txt file

 the tutorial prompts launch MY_FIRST_MG5_RUN which results in:

MG5_aMC>launch MY_FIRST_MG5_RUN
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* M A D E V E N T *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 2.8.1 2020-09-28 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt

INFO: load configuration from /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/input/mg5_configuration.txt
INFO: load configuration from /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt

Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
generate_events run_01
The following switches determine which programs are run:
/================ Description =================|=========== values ===========|====== other options ======\
| 1. Choose the shower/hadronization program | shower = Not Avail. | Please install module |
| 2. Choose the detector simulation program | detector = Not Avail. | Please install module |
| 3. Choose an analysis package (plot/convert) | analysis = Not Avail. | Please install module |
| 4. Decay onshell particles | madspin = OFF | ON|onshell|full |
| 5. Add weights to events for new hypp. | reweight = Not Avail. | Please install module |
\=========================================================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
========== Tutorial ==========
Need help here? type 'help'
========== Tutorial ==========
>
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 2. run : run_card.dat |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 2, run, enter path][90s to answer]
========== Tutorial ==========
Need help here? type 'help'
========== Tutorial ==========
>
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
Exception ignored in thread started by: <function call at 0x7f42ea08f700>
Traceback (most recent call last):
  File "/usr/lib/python3.8/subprocess.py", line 340, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program'
compile Source Directory
Error detected in "generate_events run_01"
write debug file /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A fortran compiler (g77 or gfortran) is required to create this output.
        Please install g77 or gfortran on your computer and retry.

Which again tells me maybe I've done somethign wrong with the configuration file?

Any assistance is appreciated.
Thank you

Hi,

I do not have experience with windows,
But the path that your provide is a "windows" like path.
However in the linux sub-system I would expect to have "linux" like path.
YOu can see the code printing one of them:

> save configuration file to /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.

But fails to find the following "windows" type of path:
> FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program'

I do not know if the issue is with madgraph, or simply that C:\\ is not available on the linux sub-system

In this case, I would just install gfortran/c++ for ubuntu via
apt-get install gcc
(or if needed the super-user version: sudo apt-get install gcc)
(Note double check the above command since I'm a red-hat user not a ubuntu one)

Cheers,

Olivier

> On 12 Oct 2020, at 22:50, Jon-Mycal Palmer <email address hidden> wrote:
>
> Question #693411 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/693411
>
> Status: Answered => Open
>
> Jon-Mycal Palmer is still having a problem:
> Oliver,
>
> Thank you for your quick response.
> Switching to Windows Terminal with Windows Subsytem for Linux using Ubuntu 20.04 has allowed me to progress further into the built-in tutorial but I still cannot complete it.
>
> After output MY_FIRST_RUN completes with the foot notes:
>
> save configuration file to /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt
> WARNING: No Fortran Compiler detected! Please install one
> INFO: Use Fortran compiler E:\MinGW\bin
> WARNING: No c++ Compiler detected! Please install one
> INFO: Use c++ compiler E:\MinGW\bin
> INFO: Generate web pages
> Output to directory /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN done.
> Type "launch" to generate events from this process, or see
> /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/README
> Run "open index.html" to see more information about this process.
>
> Which is strange to me as I have gfortran and g++ installed through
> MinGW and pointed at in the configuration txt file
>
> the tutorial prompts launch MY_FIRST_MG5_RUN which results in:
>
> MG5_aMC>launch MY_FIRST_MG5_RUN
> ************************************************************
> * *
> * W E L C O M E to *
> * M A D G R A P H 5 _ a M C @ N L O *
> * M A D E V E N T *
> * *
> * * * *
> * * * * * *
> * * * * * 5 * * * * *
> * * * * * *
> * * * *
> * *
> * VERSION 2.8.1 2020-09-28 *
> * *
> * The MadGraph5_aMC@NLO Development Team - Find us at *
> * https://server06.fynu.ucl.ac.be/projects/madgraph *
> * *
> * Type 'help' for in-line help. *
> * *
> ************************************************************
> INFO: load configuration from /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt
>
> INFO: load configuration from /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/input/mg5_configuration.txt
> INFO: load configuration from /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/Cards/me5_configuration.txt
>
> Using default text editor "vi". Set another one in ./input/mg5_configuration.txt
> generate_events run_01
> The following switches determine which programs are run:
> /================ Description =================|=========== values ===========|====== other options ======\
> | 1. Choose the shower/hadronization program | shower = Not Avail. | Please install module |
> | 2. Choose the detector simulation program | detector = Not Avail. | Please install module |
> | 3. Choose an analysis package (plot/convert) | analysis = Not Avail. | Please install module |
> | 4. Decay onshell particles | madspin = OFF | ON|onshell|full |
> | 5. Add weights to events for new hypp. | reweight = Not Avail. | Please install module |
> \=========================================================================================================/
> Either type the switch number (1 to 5) to change its setting,
> Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
> Type 'help' for the list of all valid option
> Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
> ========== Tutorial ==========
> Need help here? type 'help'
> ========== Tutorial ==========
>>
> Do you want to edit a card (press enter to bypass editing)?
> /------------------------------------------------------------\
> | 1. param : param_card.dat |
> | 2. run : run_card.dat |
> \------------------------------------------------------------/
> you can also
> - enter the path to a valid card or banner.
> - use the 'set' command to modify a parameter directly.
> The set option works only for param_card and run_card.
> Type 'help set' for more information on this command.
> - call an external program (ASperGE/MadWidth/...).
> Type 'help' for the list of available command
> [0, done, 1, param, 2, run, enter path][90s to answer]
> ========== Tutorial ==========
> Need help here? type 'help'
> ========== Tutorial ==========
>>
> INFO: Update the dependent parameter of the param_card.dat
> Generating 10000 events with run name run_01
> survey run_01
> INFO: compile directory
> Exception ignored in thread started by: <function call at 0x7f42ea08f700>
> Traceback (most recent call last):
> File "/usr/lib/python3.8/subprocess.py", line 340, in call
> with Popen(*popenargs, **kwargs) as p:
> File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
> self._execute_child(args, executable, preexec_fn, close_fds,
> File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
> raise child_exception_type(errno_num, err_msg, err_filename)
> FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Program'
> compile Source Directory
> Error detected in "generate_events run_01"
> write debug file /mnt/e/MPhys_Project/MadGraph/MG5_aMC_v2_8_1/MY_FIRST_MG5_RUN/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> str : A fortran compiler (g77 or gfortran) is required to create this output.
> Please install g77 or gfortran on your computer and retry.
>
> Which again tells me maybe I've done somethign wrong with the
> configuration file?
>
> Any assistance is appreciated.
> Thank you
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Jon-Mycal Palmer (jonmycal) said : #4

Thanks for you help and quick responses, this got me past that point and I ran into some other errors which I managed to troubleshoot myself somehow.