[Rivet] No rivet and agile command found

christopher at particle.uni-karlsruhe.de christopher at particle.uni-karlsruhe.de
Wed Apr 15 10:16:05 BST 2009


Dear Andy,

I still have some problems with Rivet on my Mac.
I am now working with the SVN version of your code
and, as I told to Andy in my last mail, now I have
the Rivet command but there is still something which
does not work with the python module. I have used the following
installation procedure:

./configure --enable-pyext 
--prefix=/Users/Christopher/Documents/HEP/Codes/Rivet_SVN/Rivet_SVN_InstllDir/ 
--with-hepmc=/Users/Christopher/Documents/HEP/Codes/HepMC/ 
--with-fastjet=/Users/Christopher/Documents/HEP/Codes/fastjet-2.3.4/InstallDir/

make

make check

Doing so I get the following message, about the problems with the 
python module:

Making check in pyext
/usr/bin/python setup.py build
running build
running build_py
running build_ext
Making check in data
Making check in refdata
make[2]: Nothing to be done for `check'.
make[2]: Nothing to be done for `check-am'.
Making check in include
Making check in Rivet
make[2]: Nothing to be done for `check'.
make[2]: Nothing to be done for `check-am'.
Making check in bin
make[1]: Nothing to be done for `check'.
Making check in doc
make[1]: Nothing to be done for `check'.
Making check in plugindemo
make  check-TESTS
List of analyses includes MYANALYSIS? rivet requires the 'rivet' Python module
NO
FAIL: testplugin
============================================
1 of 1 tests failed
Please report to rivet at projects.hepforge.org
============================================

Of course the PYTHONPATH variable is set. If then I do make install
I have the aida2flat, aida2root, compare-histos, make-plots, rivet and 
rivet-config commands in the bin/ directory of my installation 
directory.
In the lib/ directory there is the python2.5/site-packages directory, which
contains the following files: _rivet.so, rivet-1.1.3a0-py2.5.egg-info, 
rivet.py
and rivet.pyc.
The problem is that when I try to run rivet I get, again, the message
"rivet requires the 'rivet' Python module".

What should I do??? I hope that you could help me...

Thank you again Andy.

Best

Christopher

Quoting Andy Buckley <andy.buckley at durham.ac.uk>:

> christopher at particle.uni-karlsruhe.de wrote:
>> Hi Andy,
>>
>> I have tried to install Rivet using your suggestions but I found still
>> some problems. I have tried many different solutions:
>>
>> -> Rivet 1.1.1:
>> Using the rivet-boostrap script I have dowloaded with that release of
>> rivet it seems that there are no problems installing your code but the
>> "rivet" command does not exist, also if I use the option --enabling-pyext.
>> Anyway that is not a big problem since, of course, it would be nice to
>> use the latest release of your code.
>
> I think that Rivet 1.1.1 didn't have the rivet program: that's a more
> recent development. At that release, the only interface was with the
> now-defunct rivetgun.
>
>> -> Rivet 1.1.2:
>> 1)Using the latest version of the bootscript, the one with the fixed bug
>> about
>> the boost libraries, and with the --enable-pyext option I get the
>> following error message:
>>
>> checking build system type... Invalid configuration `lhapdf-5.6.0':
>> machine `lhapdf' not recognized
>> configure: error: /bin/sh config/config.sub lhapdf-5.6.0 failed
>>
>> (If you need it I can send you the full log file)
>
> That would be useful, thanks. Do you know what stage this occurs at? it
> looks like it happens when building LHAPDF, but the error message
> suggests that the compiler has been given the flag "-mlhapdf-5.6.0",
> which is just bizarre. This might happen if the bit of the script that
> is meant to work out if the machine is 32 or 64 bit fails, leaving just
> a "-m". I can't guess much more until I see the log file. Thanks.
>
>> 2)Using the same options but with the DEVELOPERMODE=yes flag I get the
>> same error
>>
>> -> Rivet SVN:
>>
>> I have tried to compile the code with the following commands
>>
>> ./configure
>> --prefix=/Users/Christopher/Documents/HEP/Codes/rivet/InstallDir/
>> --with-hepmc=/Users/Christopher/Documents/HEP/Codes/HepMC/
>> --with-fastjet=/Users/Christopher/Documents/HEP/Codes/fastjet-2.3.4/InstallDir/
>> --enable-pyext
>>
>> make
>>
>> make install
>>
>> Everything seems to work fine but, still, the rivet command is not
>> available,
>> and when I try to run it I get the following error message:
>>
>> rivet requires the 'rivet' Python module
>
> I'm confused: the command "isn't available", but that error message is
> coming from it! Please take a look in your <installdir>/local/bin/
> directory for the rivet command: this directory should be in your PATH.
> Since libraries are being loaded from C++ and Python, you will also need
> to set PYTHONPATH to include
> <installdir>/local/lib/python2.5/site-packages (the "lib" might be a
> "lib64", and the Python version might be different: the bootstrap script
> should have detected these) and LD_LIBRARY_PATH to include
> <installdir>/local/lib. If you're on a Mac, I think that the library
> path variable is actually called DYLD_LIBRARY_PATH.
>
> Hope that helps. I've copied this to the Rivet developer list as well,
> so you can benefit from some wider support ;)
>
> Andy
>
>
>> Do you have any other suggestions???
>>
>> Thank you for your help.
>>
>> Best
>>
>> Christopher
>>
>> Quoting Andy Buckley <andy.buckley at durham.ac.uk>:
>>
>>> christopher at particle.uni-karlsruhe.de wrote:
>>>> Dear Rivet developers,
>>>>
>>>> I am an MCnet PhD student and I am trying to run for the first time
>>>> Rivet (1.1.1) on my Mac Leopard. It seems that there are
>>>> no problems in building an installing your code. But
>>>> when I try to run rivet -h or agile-rungen -h, to check
>>>> if everything is ok, as suggested on your website, I get the "command
>>>> not found" error message. I have set the environment
>>>> variables needed to run your code but the only commands I can run
>>>> are rivetgun and agile-config. Can you help me??? I would like
>>>> to use your code to tune Herwig and Herwig++ with a new hadronization
>>>> model on LEP data.
>>>
>>> Hi Christopher,
>>>
>>> Looks to me like you didn't build Rivet and AGILe with the Python
>>> modules needed for the agile-runmc and rivet commands: these aren't
>>> enabled by default with the released versions. You should pass
>>> "--enable-pyext" to the configure commands to build these modules.
>>>
>>> Alternatively you might consider using the SVN head version, which
>>> includes a lot of other improvements, should build the Python modules by
>>> default, and is anyway a better choice at the moment if you want to
>>> write your own analyses.
>>>
>>> Andy
>>>
>>
>>
>>
>
>
> --
> Dr Andy Buckley
> Institute for Particle Physics Phenomenology
> Durham University
> 0191 3343798 | 0191 3732613 | www.insectnation.org
>





More information about the Rivet mailing list