Comment 3 for bug 2025061

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote :

Hi,

I have tried with the latest LTS and the latest development version (3.5.1).
And in none of them, I faced the issue.

I guess that the issue is not in the version of MG5aMC but rather in the way you have installed it.
If you have MADEVENT set to False this means that the command "import madgraph" is working (while it is suppose to crash if you run from the process directory).

So I guess that the issue is that you have installed MG5aMC in a way to have it within the PYTHONPATH.
(or rather that you have edited your pythonpath to allow "import madgraph" to always work).

> so it never picks up the `root_path` which for me was set seemingly correctly `/usr/local/venv/MG5_aMC`

No this root_path is actually not correct since in your case the file read is in
/usr/local/venv/MG5_aMC/madgraph/interface/common_run_interface.py

while I would expect that when running ./bin/madevent the file read would be
./bin/internal/common_run_interface.py
and the correct root_path in that case being
./
which can be set to me_dir.

So my suggestion would be to remove /usr/local/venv/MG5_aMC from the PYTHONPATH.
(or never run something from the ./bin directory of the generated process)

Cheers,

Olivier