<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><font style="" color="#000000">Dear Rivet developers,</font><font style="" color="#000000"><br></font><font style="" color="#000000"><br></font><font style="" color="#000000">Could you please explain me how one should have to configure the PYTHONPATH in order to force the Rivet application to work? I have tried to setup this environment variable in several ways, but it seems the Rivet still do not recognized it. The most weird thing that during the configuration procedure the python is always found in the right place.</font><font style="" color="#000000"><br><br></font><font style="" color="#000000">Method 1:</font><br>---------------------------------------------<br>export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages<br>export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.4/site-packages<br>export PYTHONPATH=$PYTHONPATH:/usr/lib64/python2.7/site-packages<br>export PYTHONPATH=$PYTHONPATH:/usr/lib64/python3.4/site-packages<br>export PYTHONPATH=$PYTHONPATH:/usr/local/include/python3.4m<br>export PYTHONPATH=$PYTHONPATH:/usr/include/python2.74<br>export PYTHONPATH=$PYTHONPATH:/bin/python<br><br><br>export PYTHON=$PYTHON:/usr/lib/python2.7/site-packages<br>export PYTHON=$PYTHON:/usr/lib/python3.4/site-packages<br>export PYTHON=$PYTHON:/usr/lib64/python2.7/site-packages<br>export PYTHON=$PYTHON:/usr/lib64/python3.4/site-packages<br>export PYTHON=$PYTHON:/usr/local/include/python3.4m<br>export PYTHON=$PYTHON:/usr/include/python2.74<br>export PYTHON=$PYTHON:/bin/python<br>---------------------------------------------<br><br><br><font style="" color="#000000">Method 2:</font><br>---------------------------------------------<br>./rivet-config --pythonpath=/usr/include/python3.4m  --libs=/usr/lib64/python3.4/site-packages  --libdir=/opt/Rivet/lib  --includedir=/opt/Rivet/include<br>---------------------------------------------<br><br><br><font style="" color="#000000">Method 3:</font><br>---------------------------------------------<br>import os, sys<br><br>## Load the rivet module<br>try:<br>    import rivet    <br>except:<br>    ## If rivet loading failed, try to bootstrap the Python path!<br>    try:<br>        # TODO: Is this a good idea? Maybe just notify the user that their PYTHONPATH is wrong?<br>        import commands<br>        ...<br>        ...<br>        ...<br>        sys.path.append('/usr/lib/python2.7/site-packages')<br>        sys.path.append('/usr/lib/python3.4/site-packages')<br>        sys.path.append('/usr/lib64/python2.7/site-packages')<br>        sys.path.append('/usr/lib64/python3.4/site-packages')<br>        sys.path.append('/usr/local/include/python3.4m')<br>        sys.path.append('/usr/include/python2.74')<br>        sys.path.append('/usr/include/python3.4m')<br>        sys.path.append('/opt/Rivet/lib64/python2.7/site-packages')       <br>        sys.path.append('/bin/python')       <br>        import rivet<br>    except:<br>        sys.stderr.write(<font style="" color="#000000">"The rivet Python module could not be loaded: is your PYTHONPATH set correctly?\n"</font>)<br>        sys.exit(1)<br>---------------------------------------------<br><br><br><br><br><br><font style="" color="#000000">Thanks in advance,</font><font style="" color="#000000"><br></font><font style="" color="#000000">Max</font><br></div>
                                          </div></body>
</html>