[Rivet] rivet Python module could not be loaded

Andy Buckley andy.buckley at cern.ch
Thu Nov 24 15:42:42 GMT 2016


On 22/11/16 08:12, Shehu S. AbdusSalam wrote:
> Hi Andy,
>
> How about this?
>
> $ export PYTHONPATH=
>
> $ source local/rivetenv.sh
>
> $ rivet --version
> The rivet Python module could not be loaded: is your PYTHONPATH set
> correctly?
>
>
> Shouldn't the PYTHONPATH be set by sourcing the rivetenv.sh? Please have
> a look at the attached.

That looks fine. My question was about how it was built/installed, 
though: did you do that on exactly the same system, with the same Python 
2.7 installation?

> I want to check a test run for an analysis but the broken rivet wouldn't
> allow....
>
> By the way, zeeFS.boson().momentum().pT() should give Z-boson pT right?
> For a
>
> const ZFinder& zeeFS = apply<ZFinder>(event, "ZeeFinder");

Yes, if a reconstructed boson was found. If there's no boson it'll throw 
an error, so you should check first using zeeFS.size() or by retrieving 
zeeFS.bosons() and making sure it's non-empty.

Cheers,
Andy

-- 
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow


More information about the Rivet mailing list