Comment 8 for bug 1657615

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) wrote : Re: [Bug 1657615] Re: Configuration writing to a read-only file system in 2.5.1

Hi,

So the problem is that the path where you indicate that the ninja library is available does not exists.
In that case the code ask if you want to install it or not (and ask if you want to install other library like collier/golem/…)

The first question is do you want to include such library?
But if you do not want to, then you can set in the configuration file the path to ninja to empty (or None)
And this will solve the problem.

In general, I would recommend to run one LO and one NLO process when you install your process such that you are ensure
That all optional dependencies/side effects are correctly handle by the code itself.

Cheers,

Olivier

> On 17 Feb 2017, at 00:56, Zachary Marshall <email address hidden> wrote:
>
> Sure, it's attached
>
> ** Attachment added: "MG5_debug"
> https://bugs.launchpad.net/mg5amcnlo/+bug/1657615/+attachment/4820500/+files/MG5_debug
>
> --
> You received this bug notification because you are subscribed to
> MadGraph5_aMC@NLO.
> https://bugs.launchpad.net/bugs/1657615
>
> Title:
> Configuration writing to a read-only file system in 2.5.1
>
> Status in MadGraph5_aMC@NLO:
> New
>
> Bug description:
> Hello,
>
> In 2.5.1, we can run:
>
> $MADGRAPH_INSTALLATION_DIR/bin/mg5_aMC
>
> generate p p > t t~ [QCD]
> output
>
> where the installation directory is on a read-only file system, but
> `pwd` is read/write (e.g. a scratch area or tmp directory). This now
> asks about which programs to install, and then attempts two write a
> configuration file back to the read-only area:
>
> set golem ''
> save options --auto
> save configuration file to
> /cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/19.2.5/sw/lcg/external/MCGenerators_lcgcmt67c/madgraph5amc/2.5.1.atlas/x86_64-slc6-gcc47-opt/input/mg5_configuration.txt
> Command "output tt" interrupted with error:
> IOError : [Errno 30] Read-only file system:
> '/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/19.2.5/sw/lcg/external/MCGenerators_lcgcmt67c/madgraph5amc/2.5.1.atlas/x86_64-slc6-gcc47-opt/input/mg5_configuration.txt'
>
> I believe this is because of a change in
>
> madgraph/interface/extended_cmd.py
>
> which now tries to save a configuration file via the
> write_configuration function when you try to do almost anything. I
> think, since we have the dependencies set to save locally, the correct
> behavior would be to make a locally directory and write there (or
> simply not update the config card at all).
>
> Thanks,
> Zach
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/mg5amcnlo/+bug/1657615/+subscriptions