|
[Rivet] question on rivet-mkhtmlFrank Siegert frank.siegert at cern.chTue Dec 9 15:24:41 GMT 2014
Hi Roberto, it seems like you compiled Rivet in a python2.6 environment and are now using it in a python2.7 environment. Maybe that already explains the problem... can you try to make them match? Cheers, Frank On 8 December 2014 at 15:03, Chierici Roberto <Roberto.Chierici at cern.ch> wrote: > Dear Frank, > > thanks for your test. I use rivet 2.2.0. > > Output with the use of a .plot file (I would get nothing without the -v > flag, maybe > a printout would help?). I see I have a mismatch I did not expect (I should > probably > recreate the yoda file?) and a TypeError I also could not spot. > > 14:55 RO_cms> rivet-mkhtml -s --mc-errs -o ~/www/MyRivetSelection -c > MyRivetSelection.plot results/TT_UEP11_8TeV_pythia6_tauola/out_1.yoda:'P11' > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/__init__.py:12: > RuntimeWarning: compiletime version 2.6 of module 'rivet.core' does not > match runtime version 2.7 > from rivet.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.core' does not match > runtime version 2.7 > from yoda.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.util' does not match > runtime version 2.7 > from yoda.core import * > Errors from rivet-cmphistos > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/__init__.py:12: > RuntimeWarning: compiletime version 2.6 of module 'rivet.core' does not > match runtime version 2.7 > from rivet.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.core' does not match > runtime version 2.7 > from yoda.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.util' does not match > runtime version 2.7 > from yoda.core import * > Traceback (most recent call last): > File "/afs/cern.ch/work/r/rchieric/rivet/local/bin/rivet-cmphistos", line > 261, in <module> > for key, val in plotparser.getHeaders(h).iteritems(): > File > "/afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/plotinfo.py", > line 146, in getHeaders > return self.getSection('PLOT', hpath) > File > "/afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/plotinfo.py", > line 84, in getSection > self._readHeadersFromFile(extrafile, ret, section, hpath) > File > "/afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/plotinfo.py", > line 101, in _readHeadersFromFile > self.pat_paths[pathpat] = re.compile(pathpat) > File > "/cvmfs/cms.cern.ch/slc6_amd64_gcc481/external/python/2.7.6/lib/python2.7/re.py", > line 190, in compile > return _compile(pattern, flags) > File > "/cvmfs/cms.cern.ch/slc6_amd64_gcc481/external/python/2.7.6/lib/python2.7/re.py", > line 238, in _compile > raise TypeError, "first argument must be string or compiled pattern" > TypeError: first argument must be string or compiled pattern > > Crash in rivet-cmphistos code = 1 exiting > > Whereas for the run without the use of the .plot file, while everything is > ok, > with the verbose run I get a lot more warnings: > > 14:57 RO_cms> rivet-mkhtml -s --mc-errs -o ~/www/MyRivetSelection > results/TT_UEP11_8TeV_pythia6_tauola/out_1.yoda:'P11' > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/__init__.py:12: > RuntimeWarning: compiletime version 2.6 of module 'rivet.core' does not > match runtime version 2.7 > from rivet.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.core' does not match > runtime version 2.7 > from yoda.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.util' does not match > runtime version 2.7 > from yoda.core import * > Errors from rivet-cmphistos > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/rivet/__init__.py:12: > RuntimeWarning: compiletime version 2.6 of module 'rivet.core' does not > match runtime version 2.7 > from rivet.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.core' does not match > runtime version 2.7 > from yoda.core import * > /afs/cern.ch/work/r/rchieric/rivet/local/lib64/python2.6/site-packages/yoda/__init__.py:2: > RuntimeWarning: compiletime version 2.6 of module 'yoda.util' does not match > runtime version 2.7 > from yoda.core import * > > .... execution continues ok. > > So, shall I try to resolve the mismatch (if I manage, thought to have run > with exactly the same setup, but maybe for some reason I was using the > lxplus version of rivet when submitting my jobs??), or rather there is > something > wrong in the syntax of my .plot file? > > Thanks again > Roberto > > > > Le 08/12/2014 12.36, Frank Siegert a écrit : > >> Hi Roberto, >> (taking rivet dev list back into cc for information), >> >>> Look, I copied the file into my public directory: >>> /afs/cern.ch/user/r/rchieric/public/out_1.yoda >> >> It works fine for me with this file. I am testing with Rivet 2.2.0, is >> that what you are also using? Can you give a few more details, e.g. by >> running the rivet-mkhtml command with -v? >> >> Cheers, >> Frank >> >> >> On 8 December 2014 at 11:41, Chierici Roberto <Roberto.Chierici at cern.ch> >> wrote: >>> >>> ok, sorry, I confess I do not know why this is not working, and had to do >>> it >>> on >>> scratch0 to get rivet installed. Maybe I should unprotect the whole >>> directory >>> tree? >>> >>> Look, I copied the file into my public directory: >>> /afs/cern.ch/user/r/rchieric/public/out_1.yoda >>> >>> Thank you >>> Roberto >>> >>> Le 08/12/2014 11.36, Frank Siegert a écrit : >>> >>>>> I can't seem to access this... "Permission denied". >>>> >>>> are you "fsiegert"? >>> >>> Yes. >>> >>>> 11:12 RO_cms> fs la >>>> Access list for . is >>>> Normal rights: >>>> system:administrators rlidwka >>>> dierlamm rl >>>> fsiegert rl >>>> rchieric rlidwka >>>> 11:30 RO_cms> pwd >>>> >>>> >>>> /afs/cern.ch/user/r/rchieric/scratch0/CMSSW_7_2_0_pre3/src/UserCode/RivetAnalysis/results/TT_UEP11_8TeV_pythia6_tauola >>> >>> [11:34 lxplus0021: ~]$ whoami >>> fsiegert >>> [11:34 lxplus0021: ~]$ ls >>> >>> /afs/cern.ch/user/r/rchieric/scratch0/CMSSW_7_2_0_pre3/src/UserCode/RivetAnalysis/results/TT_UEP11_8TeV_pythia6_tauola >>> ls: cannot access >>> >>> /afs/cern.ch/user/r/rchieric/scratch0/CMSSW_7_2_0_pre3/src/UserCode/RivetAnalysis/results/TT_UEP11_8TeV_pythia6_tauola: >>> Permission denied >>> [11:34 lxplus0021: ~]$ fs la >>> >>> /afs/cern.ch/user/r/rchieric/scratch0/CMSSW_7_2_0_pre3/src/UserCode/RivetAnalysis/results/TT_UEP11_8TeV_pythia6_tauola >>> fs: File >>> >>> '/afs/cern.ch/user/r/rchieric/scratch0/CMSSW_7_2_0_pre3/src/UserCode/RivetAnalysis/results/TT_UEP11_8TeV_pythia6_tauola' >>> doesn't exist >>> >>> >>> What is scratch0, is it maybe special? >>> >>> Cheers, >>> Frank >>> >>> >>> >
More information about the Rivet mailing list |