[Rivet] cannot use rivet-mkhtml and make-plots

David Grellscheid david.grellscheid at durham.ac.uk
Thu May 12 14:37:34 BST 2016


I agree with needing a way of not failing at configure time. But we need 
to avoid the situation where we install a broken rivet-mkhtml.

If autotools installs rivet-mkhtml, it needs to work. So let's check in 
configure, and then not install rivet-mkhtml at all, together with a big 
warning.

   David


On 12/05/2016 14:28, Andy Buckley wrote:
> Fully agree. But I think this is most easily done on a rolling basis,
> i.e. when you experience such a problem, please put in a bit of extra
> work to make the error message nice.
>
> On most of our (developers') systems it's hard to reproduce the problem,
> which makes it easy to devote time to an error-reporting approach that
> either fixes the wrong problem or introduces problems of its own...
>
> Andy
>
>
> On 12/05/16 12:16, Chris Pollard wrote:
>> I agree with Andy here: a warning at configure time is the right level
>> of information for a user; an error is too much. Maybe we could also
>> print out more useful error messages when make-plots (et al) fail to
>> find latex or imagemagick on the system? I think right now it's unclear
>> to users what the problem is when plot making crashes.
>>
>> Chris
>>
>> On Thu, May 12, 2016 at 12:10 PM, Andy Buckley <andy.buckley at cern.ch
>> <mailto:andy.buckley at cern.ch>> wrote:
>>
>>     These are a blocker for plotting, not all use of Rivet. I think
>>     making configure fail because they are missing would be overkill,
>>     and maybe unhelpful for e.g. deployment to Grid sites from which the
>>     YODA files will be retrieved before plotting.
>>
>>     Warnings would be fine, though.
>>
>>     Andy
>>
>>
>>
>>     On 12/05/16 11:52, David Grellscheid wrote:
>>
>>         Hi all,
>>
>>         We should add configure checks for these in Rivet. Then the
>> herwig
>>         bootstrap would not have gone ahead and created a broken
>>         installation.
>>
>>         What's the list to check for?
>>
>>         ImageMagick (just 'convert' I guess?)
>>         LaTeX
>>         check for explicit LaTeX packages?
>>
>>         anything else?
>>
>>             David
>>
>>
>>         On 05/05/2016 22:51, roberto franceschini wrote:
>>
>>             Hello,
>>                I needed imagemagick, which was not installed on this
>>             machine. Now it
>>             works!
>>             Thanks for helping.
>>             Roberto
>>
>>             PS
>>             Have I missed it (maybe because I got rivet from the big
>>             package of
>>             Herwig7
>>             bootstrap) or is written somewhere that Latex and
>>             imagemagick are needed?
>>
>>
>>
>>
>>             On Thu, May 5, 2016 at 2:39 PM, Chris Pollard
>>             <cpollard at cern.ch <mailto:cpollard at cern.ch>> wrote:
>>
>>                 Hi Roberto,
>>
>>                 You can try a few things here:
>>
>>                 - pass the -v flag to make-plots, which should print out
>>                 more detailed
>>                 information on what is failing
>>                 - passing the --tex flag to make-plots should give you a
>>                 tex document
>>                 that
>>                 you can try to compile using latex directly.
>>
>>                 Maybe that will help you figure out what is still
>> missing?
>>
>>                 Chris
>>
>>                 On Thu, May 5, 2016 at 1:07 PM, roberto franceschini <
>>                 franceschini.roberto at gmail.com
>>                 <mailto:franceschini.roberto at gmail.com>> wrote:
>>
>>                     Dear Chris, thanks  a lot for your reply.
>>
>>                     The make-plot exists
>>                     stat
>>                     /afs/cern.ch/user/r/rfrances/p/hw7/bin/make-plots
>>                     <http://cern.ch/user/r/rfrances/p/hw7/bin/make-plots>
>>                         File:
>>                     `/afs/cern.ch/user/r/rfrances/p/hw7/bin/make-plots
>>
>> <http://cern.ch/user/r/rfrances/p/hw7/bin/make-plots>'
>>                         Size: 123716     Blocks: 242        IO Block:
>>                     4096   regular file
>>                     Device: 12h/18d Inode: 61247862    Links: 1
>>                     Access: (0755/-rwxr-xr-x)  Uid: (56252/rfrances)
>>                       Gid: ( 1081/
>>                     t3)
>>                     Access: 2016-04-02 22:06:41.000000000 +0200
>>                     Modify: 2016-04-02 22:06:41.000000001 +0200
>>                     Change: 2016-04-02 22:06:41.000000000 +0200
>>
>>                     but I did not have latex. I have installed it now
>>                     and checked it
>>                     works on
>>                     a very simple document, but still there are errors
>> from
>>                     rivet-mkhtml. Is
>>                     there a particular subset of latex I should check is
>>                     working?
>>
>>                     Thanks a lot for your help,
>>                     Roberto
>>
>>
>>
>>
>>
>>                     On Thu, May 5, 2016 at 1:16 PM, Chris Pollard
>>                     <cpollard at cern.ch <mailto:cpollard at cern.ch>> wrote:
>>
>>                         Hi Roberto,
>>
>>                         Can you confirm that
>>
>> /afs/cern.ch/user/r/rfrances/p/hw7/bin/make-plots
>> <http://cern.ch/user/r/rfrances/p/hw7/bin/make-plots>
>>                         exists? Can you also verify that you have a
>>                         suitable latex suite
>>                         installed?
>>                         That is required for the Rivet plotting scripts.
>>
>>                         Cheers,
>>
>>                         Chris
>>
>>                         On Wed, May 4, 2016 at 5:07 PM, roberto
>>                         franceschini <
>>                         franceschini.roberto at gmail.com
>>                         <mailto:franceschini.roberto at gmail.com>> wrote:
>>
>>                             Dear authors, I hope this message finds you
>>                             well.
>>
>>                             I have run DELPHI_2002_069_CONF_603 through
>>                             Herwig7 and I got a Yoda
>>                             file. Using yoda2plain and manually plotting
>>                             the data all seems to
>>                             be fine.
>>                             However I have trouble with the rest of
>>                             options offered by RIvet,
>>                             e.g.
>>                             rivet-mkhtml and make-plots.
>>                             They give some errors, reported in the
>>                             attached log file, starting
>>                             with
>>                             "Problem while testing for external
>> packages".
>>                             Maybe this is a common issue, do you have
>>                             any idea how to fix these
>>                             errors?
>>
>>                             My rivet came with the boostrap script of
>>                             Herwig7, and I guess you
>>                             might wonder about my
>>                             echo $PYTHONPATH
>>                             /afs/
>>
>> cern.ch/user/r/rfrances/p/hw7/lib64/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/p/hw7/lib/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/root/lib:/afs/cern.ch/user/r/rfrances/LHAPDF-6.1.5/buildt/lib64/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/LHAPDF-6.1.5/buildt/lib64/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/LHAPDF-6.1.5/buildt/lib64/python2.6/site-packages
>>
>>
>> <http://cern.ch/user/r/rfrances/p/hw7/lib64/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/p/hw7/lib/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/root/lib:/afs/cern.ch/user/r/rfrances/LHAPDF-6.1.5/buildt/lib64/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/LHAPDF-6.1.5/buildt/lib64/python2.6/site-packages:/afs/cern.ch/user/r/rfrances/LHAPDF-6.1.5/buildt/lib64/python2.6/site-packages>
>>
>>
>>                             :
>>
>>                             and
>>
>>                             h7ee>tree /afs/
>>
>> cern.ch/user/r/rfrances/p/hw7/lib64/python2.6/site-packages/
>>
>> <http://cern.ch/user/r/rfrances/p/hw7/lib64/python2.6/site-packages/>
>>
>> /afs/cern.ch/user/r/rfrances/p/hw7/lib64/python2.6/site-packages/
>>
>> <http://cern.ch/user/r/rfrances/p/hw7/lib64/python2.6/site-packages/>
>>                             ├── LHAPDF-6.1.5-py2.6.egg-info
>>                             ├── lhapdf.so
>>                             ├── rivet
>>                             │   ├── core.so
>>                             │   ├── __init__.py
>>                             │   ├── __init__.pyc
>>                             │   ├── plotinfo.py
>>                             │   ├── plotinfo.pyc
>>                             │   ├── spiresbib.py
>>                             │   ├── spiresbib.pyc
>>                             │   ├── util.py
>>                             │   └── util.pyc
>>                             ├── rivet-2.4.0-py2.6.egg-info
>>                             ├── yoda
>>                             │   ├── core.so
>>                             │   ├── __init__.py
>>                             │   ├── __init__.pyc
>>                             │   ├── plotting.py
>>                             │   ├── plotting.pyc
>>                             │   ├── script_helpers.py
>>                             │   ├── script_helpers.pyc
>>                             │   ├── search.py
>>                             │   ├── search.pyc
>>                             │   └── util.so
>>                             └── yoda-1.5.5-py2.6.egg-info
>>
>>                             Thanks a lot for your help,
>>                             Roberto
>>
>>
>>
>> _______________________________________________
>>                             Rivet mailing list
>>                             Rivet at projects.hepforge.org
>>                             <mailto:Rivet at projects.hepforge.org>
>>                             https://www.hepforge.org/lists/listinfo/rivet
>>
>>
>>
>>
>>
>>
>>
>>
>>             _______________________________________________
>>             Rivet mailing list
>>             Rivet at projects.hepforge.org
>> <mailto:Rivet at projects.hepforge.org>
>>             https://www.hepforge.org/lists/listinfo/rivet
>>
>>         _______________________________________________
>>         Rivet mailing list
>>         Rivet at projects.hepforge.org <mailto:Rivet at projects.hepforge.org>
>>         https://www.hepforge.org/lists/listinfo/rivet
>>
>>
>>
>>     --
>>     Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
>>     Particle Physics Expt Group, University of Glasgow
>>
>>     _______________________________________________
>>     Rivet mailing list
>>     Rivet at projects.hepforge.org <mailto:Rivet at projects.hepforge.org>
>>     https://www.hepforge.org/lists/listinfo/rivet
>>
>>
>
>


More information about the Rivet mailing list