Crash when running madevent
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
New
|
Undecided
|
Unassigned |
Bug Description
Hi all,
Hopefully it is fine that I turn this unanswered question into a bug report, as it appears to be a genuine bug in v3.4.2 that I also see.
Quoted question below:
Hi,
I am running Madgraph 3.4.2 on Ubuntu 22.04 and it is working well.
Here I take p p > e e as an example, it works if I generate p p > e e and launch inside Madgraph. However, if I want to run the madevent inside the process folder, it gives me some Python error, see below
$ ./ppee/bin/madevent
launch in debug mode
*******
* *
* 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 3.4.2 2023-01-20 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https:/
* *
* Type 'help' for in-line help. *
* *
*******
Traceback (most recent call last):
File "/home/
cmd_line = cmd_interface.
File "/home/
CmdExtended
File "/home/
super(
File "/home/
if os.path.
File "/usr/lib/
s = os.fspath(s)
TypeError: expected str, bytes or os.PathLike object, not NoneType
I encountered this when trying to reweight some already-generated events with `./bin/madevent reweight run_01` inside the output directory. I can paste a full reproducer here if the above case is not enough.
To try investigating myself, I added some printouts on line 687 of common_ run_interface, and found that MADEVENT is False so it never picks up the `root_path` which for me was set seemingly correctly `/usr/local/ venv/MG5_ aMC`