1.4 beta5: Must "launch" be called from proper dirs?
Dear MadTeam,
In 1.4 beta5, we cannot call "launch" command from arbitrary directories, wheres 1.3.30 we could.
Is this a specification, or a bug?
That is:
cd fullpath/
bin/mg5
mg5> generate p p > t t~; output ttbar; launch -f ttbar
would works quite well, but on the other hand,
cd ~
fullpath/
mg5> generate p p > t t~; output ttbar #> works; directory "ttbar" generated.
mg5> launch -f ttbar
would halt on "launch" line with putting out some messages (attached as a comment).
Perhaps launch will work if we move as "cd ttbar", which is the very generated directory.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- Olivier Mattelaer Edit question
- Solved by:
- Olivier Mattelaer
- Solved:
- 2011-11-30
- Last query:
- 2011-11-30
- Last reply:
- 2011-11-30
Sho Iwamoto (misho) said : | #1 |
=======
Error gen_indexhtml-pl must be run from main or bin directory
load configuration from ttbar/bin/
Option nb_core from config file not understood
Option run_mode from config file not understood
Specified text editor "None" not valid.
generate_events run_01 -f
Will run in mode parton
Generating 10000 events with run name run_01
survey run_01
compile directory
Command "generate_events run_01 -f" interrupted with error:
OSError : [Errno 2] No such file or directory
Please report this bug on https:/
More information is found in 'ttbar/
Please attach this file to your report.
quit
Generation failed (no results.dat file found)
mg5>Error gen_indexhtml-pl must be run from main or bin directory
Error gen_indexhtml-pl must be run from main or bin directory
Thanks Sho,
This is clearly a bug.
I'll fix this.
Cheers,
Olivier
I'll close it when I have solve it.
Thanks a lot for your bug report
Ok this is fixed.
If you want me to make a new release on this. Just tell me.
Sho Iwamoto (misho) said : | #5 |
Thanks for your quick reply and debug, but sorry the same problem still remains.
$ fullpath/
mg5> generate p p > t t~; output ttbar; launch -f ttbar
would bump into other exceptions.
First:
# File "/home/
# subprocess.
# (snip)
# OSError: [Errno 2] No such file or directory
here, me_dir is, say, "ttbar", and self.dirbin is "ttbar/
+++ madgraph/
@@ -1194,7 +1194,7 @@
- subprocess.
+ subprocess.
@@ -2583,8 +2583,10 @@
- out = subprocess.
+ out = subprocess.
@@ -2731,8 +2733,8 @@
- os.system(
+ subprocess.
However, here raised is another exception as appended the last, and I could not solve this exception.
For details, executing
$ fullpath/
mg5> generate p p > t t~; output ttbar; launch -f ttbar
would give the exceptions.
================= log (ttbar/
generate_events run_01
Traceback (most recent call last):
File "/home/
return cmd.Cmd.
File "/usr/lib/
return func(arg)
File "/home/
postcmd=False)
File "/home/
stop = cmd.Cmd.
File "/usr/lib/
return func(arg)
File "/home/
self.
File "/home/
stdout=
File "/usr/lib/
errread, errwrite)
File "/usr/lib/
raise child_exception
OSError: [Errno 2] No such file or directory
Sorry for that, this seems to be due to the argument of launch. If you remove it it works
i.e. If you do
generate p p > t t~
output ttbar
launch -f
it works. (that's why I was saying that it was working)
in me_dir should be an absolute path.
I fixed this in my computer and it work.
Hope that it will be the same on your computer too.
Thanks,
Olivier
Sho Iwamoto (misho) said : | #7 |
Thank you, it works on my PC.
I am a little leery of the log message
>
> The total cross-section is 0.55434E+03 +- 0.77891E+00 pb
> more information in /home/misho/
> mg5>Error gen_indexhtml-pl must be run from main or bin directory
>
, but anyway it works well with proper result.
Thanks a lot.
Sho Iwamoto (misho) said : | #8 |
Thanks Olivier Mattelaer, that solved my question.