OSError No such file or directory when generating events for run
Bug #1211777 reported by
Stephen Lloyd
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Undecided
|
Olivier Mattelaer |
Bug Description
Hello,
I have had MadGraph working on other machines but I am getting this error when launching my process on this new laptop. Please see the attached file for the exact error.
OS: Arch Linux 3.11-rc3
MG Version: 1.5.11
Python 2.7
Regards,
Steve
Related branches
lp:~maddevelopers/mg5amcnlo/1.5.12
- Olivier Mattelaer: Needs Fixing
-
Diff: 967 lines (+277/-107)23 files modifiedTemplate/Source/dsample.f (+4/-0)
Template/SubProcesses/genps.f (+3/-4)
Template/SubProcesses/myamp.f (+36/-1)
Template/SubProcesses/unwgt.f (+5/-1)
UpdateNotes.txt (+14/-0)
aloha/aloha_object.py (+8/-8)
aloha/aloha_writers.py (+5/-5)
aloha/create_aloha.py (+9/-9)
madgraph/__init__.py (+6/-0)
madgraph/interface/coloring_logging.py (+1/-1)
madgraph/interface/madevent_interface.py (+113/-11)
madgraph/interface/madgraph_interface.py (+17/-8)
madgraph/iolibs/export_v4.py (+2/-2)
madgraph/iolibs/template_files/madevent_makefile_source (+1/-1)
madgraph/iolibs/template_files/madevent_symmetry.f (+0/-2)
madgraph/various/banner.py (+12/-2)
madgraph/various/misc.py (+5/-1)
models/check_param_card.py (+5/-0)
models/import_ufo.py (+7/-4)
tests/acceptance_tests/test_cmd_madevent.py (+2/-1)
tests/input_files/sm_with_custom_propa/propagator.py (+0/-38)
tests/input_files/sm_with_custom_propa/propagators.py (+4/-4)
tests/unit_tests/various/test_aloha.py (+18/-4)
Changed in madgraph5: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It turns out this was a problem with how the program attempts to run the python environment. The scripts have the !#/usr/bin/python etc shebang hardcoded at the top. I have python 2.7 installed as "python2" rather than "python" so this will not work. This is fairly standard for arch linux users who will have gotten python from the official repositories via pacman. This means that some of the scripts that were used in the compilation would not work, even when attempting to force the use of python2 through "python2 bin/mg5".
I fixed this by making a simlink of python2 to python:
$ ln -s /usr/bin/python2 /usr/bin/python python2- config /usr/bin/ python2- config
$ ln -s /usr/bin/
This fix will only work if you do not have python 3 installed to run by default when typing "python". There are more elegant fixes out there for running python 3 and python 2 along side eachother. Fortunately, I do not have python 3 installed at this moment in time.