|
[Rivet] rivet module could not be loadedEike von Seggern jvonsegg at cern.chWed Jan 12 16:24:07 GMT 2011
Hi Albert, are you using the same Python version for professor and rivet? Maybe your professor installation was tied to a local/older python version at install-time. If that's the case it should be visible in the shebang line at the top of the scripts: head `which prof-tune` To use the prof-* scripts with a different python version you can simply use python /PATH/TO/prof-tune ... Best eike On Wed, Jan 12, 2011 at 17:05 +0100, Albert Knutsson wrote: > > Hi Eike, All, > > > Here we go: > > [lxplus248] ~/professor/lep-exercise $ python -c "import rivet; print rivet" > <module 'rivet' from '/afs/cern.ch/sw/lcg/external/MCGenerators/rivet/1.3.0/x86_64-slc5-gcc43-opt/lib/python2.6/site-packages/rivet/__init__.py'> > > > [lxplus248] ~/professor/lep-exercise $ prof-tune --datadir . > --ipoldir ipols --runsfile runcombs.dat --weights weights --debug > /usr/lib64/python2.4/site-packages/scipy/misc/__init__.py:25: > DeprecationWarning: NumpyTest will be removed in the next release; > please update your code to use nose or unittest > test = NumpyTest().test > /usr/lib64/python2.4/site-packages/scipy/linalg/__init__.py:32: > DeprecationWarning: NumpyTest will be removed in the next release; > please update your code to use nose or unittest > test = NumpyTest().test > > [ASCII-figure of homer simpson] > > The Professor system for systematic tuning of Monte Carlo generators > is licensed under version 2 of the GPL, see COPYING for details. > > Copyright (C) 2007-2011 Andy Buckley, Hendrik Hoeth, Heiko Lacker, > Holger Schulz, and Jan Eike von Seggern. > > Please respect the MCnet academic usage guidelines, see GUIDELINES: > http://www.montecarlonet.org/GUIDELINES > > Please cite doi:10.1140/epjc/s10052-009-1196-7. > > proxy: SCANDIR not found in CL options: Values instance has no > attribute 'SCANDIR' > prof-tune: Using ./tunes for tune param & pickle file storage > proxy: Trying to create RivetDataProxy > Segmentation fault > > > Cheers, > Albert > > > On 1/12/11 4:48 PM, Eike von Seggern wrote: >>Hi Albert, >> >>after setting up your environment as described can you please try to >>import the rivet module in Python: >> >>python -c "import rivet; print rivet" >> >>to check if you can import the correct rivet module with your setup. If >>that works try one of the failing prof-* scripts, e.g. prof-tune, use >>the "--debug" option and send the output here. >> >>Best >> eike >> >> >>On Wed, Jan 12, 2011 at 16:22 +0100, Albert Knutsson wrote: >>>Dear All, >>> >>>thanks Andy. Yes, maybe the error was that I still uses 1.2.1. >>> >>>So I try to change to a later version. I thought it was simplest to >>>stay on lxplus and use the genser version on for now (I will change >>>to cms-env as soon as we sorted out some cms-internal things). >>> >>>After doing >>> >>>setenv PATH "/afs/cern.ch/sw/lcg/external/swig/1.3.40/x86_64-slc5-gcc43-opt/bin":$PATH >>>source /afs/cern.ch/sw/lcg/contrib/gcc/4.3/x86_64-slc5-gcc43-opt/setup.csh >>>source /afs/cern.ch/sw/lcg/external/MCGenerators/rivet/rivetenv.csh >>> >>>setenv PYTHONPATH "/afs/cern.ch/user/k/knutsson/professor":$PYTHONPATH >>>setenv PATH "/afs/cern.ch/user/k/knutsson/professor/contrib":$PATH >>>setenv PATH "/afs/cern.ch/user/k/knutsson/professor/bin":$PATH >>> >>> >>>prof-tune, prof-envelopes, prof-sensitivities gives segmenation >>>errors (just after "Please cite doi...."). No other error messages. >>> >>>prof-runcombs and prof-interpolate works. >>> >>>(rivet works.) >>> >>>Any idea what is wrong now? >>> >>>Thanks and cheers, >>>Albert >>> >>> >>> >>>On 1/7/11 12:10 PM, Andy Buckley wrote: >>>>Hi Albert, >>>> >>>>I'm copying this to the Rivet list as it's not really a Professor >>>>problem: it looks to me like your copy of Rivet is too old to have the >>>>function needed to find the Rivet reference data files. Which version of >>>>Rivet are you using? >>>> >>>>Andy >>>> >>>> >>>>On 07/01/11 10:56, Albert Knutsson wrote: >>>>>Dear Professor experts, >>>>> >>>>>I'm following the tutorial on the Professor wiki. >>>>> >>>>> >>>>>[lxplus438] ~/professor/lep-exercise $ prof-sensitivities --datadir . >>>>>--ipoldir ipols --runsfile runcombs.dat --obsfile weights --plotmode >>>>>extremal -o sensitivity_plots >>>>> >>>>>gives me >>>>> >>>>>=== >>>>> >>>>>Could not create RivetDataProxy: 'module' object has no attribute >>>>>'getAnalysisRefPaths' >>>>>Output directory for sensitivity plots: sensitivity_plots/sensitivities >>>>>Using center of hyper-cube spanned by anchor points as center of cross. >>>>>Using QuadraticBinInterpolationWeave for interpolation. >>>>>--------------------------------------------------------------------------- >>>>>ValueError Traceback (most recent call last) >>>>> >>>>>/afs/cern.ch/user/k/knutsson/professor/bin/prof-sensitivities >>>>> 321 >>>>> 322 ## Load AIDA-path => title dictionary. >>>>>--> 323 pp = prof.PlotParser() >>>>> 324 histoinfos = {} >>>>> 325 for obs in obsnames: >>>>> >>>>>/afs/cern.ch/user/k/knutsson/professor/professor/histo/lighthisto.pyc in >>>>>__init__(self, plotpaths) >>>>> 495 self.plotpaths = rivet.getAnalysisRefPaths() >>>>> 496 except Exception: >>>>>--> 497 raise ValueError("No plotpaths given and the >>>>>rivet module could not be loaded!") >>>>> 498 >>>>> 499 def getSection(self, section, hpath): >>>>> >>>>>ValueError: No plotpaths given and the rivet module could not be loaded! >>>>> >>>>>=== end of output >>>>> >>>>>"rivet --list-analyses" works. >>>>> >>>>>"import rivet" in python works. >>>>> >>>>> >>>>>Any suggestions? >>>>> >>>>>Thanks and cheers, >>>>>Albert >>>>> >>>>> >>>>>ps. from python I often get the warning >>>>>"/usr/lib64/python2.4/site-packages/scipy/weave/__init__.py:22: >>>>>DeprecationWarning: NumpyTest will be removed in the next release; >>>>>please update your code to use nose or unittest >>>>> test = NumpyTest().test" but I assume it is not related to the above. >>>>> >>>>> >>>>> >>>>> > > _______________________________________________ > Rivet mailing list > Rivet at projects.hepforge.org > http://www.hepforge.org/lists/listinfo/rivet >
More information about the Rivet mailing list |