<div dir="ltr">Glad to hear it!<div><br></div><div>Cheers,</div><div><br></div><div>Chris</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 10, 2017 at 8:37 PM, mohammadreza noormandipour <span dir="ltr"><<a href="mailto:m.noormandipour@mail.sbu.ac.ir" target="_blank">m.noormandipour@mail.sbu.ac.ir</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">Hello dear Chris,<br>
<br>
Thanks for your kind help. You were right. I changed my default system python to python2.7 in my .bashrc file and now Rivet works properly.<br>
<br>
By the way, after I changed the default python, there were no difference for the pythonpath to include python2.7 and/or python3 directories or not. Rivet worked in any situation.<br>
<br>
Thanks for your time<br>
Regards<br>
M.R.Noormandipour <br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div id="m_3869186380424309009divRpF554224" style="direction:ltr"><font color="#000000" size="2" face="Tahoma"><b>From:</b> Chris Pollard [<a href="mailto:cspollard@gmail.com" target="_blank">cspollard@gmail.com</a>]<br>
<b>Sent:</b> Friday, February 10, 2017 5:36 PM<div><div class="h5"><br>
<b>To:</b> mohammadreza noormandipour; Rivet<br>
<b>Subject:</b> Re: [Rivet] Pythonpath<br>
</div></div></font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr">Hi Mohammadreza,<br>
<div><br>
</div>
<div>I see what looks like a mixture of python2.7 and python3 lib directories in your PYTHONPATH. I don't know what the behavior of such a setup will be.</div>
<div><br>
</div>
<div>Rivet has not been tested (AFAIK) in a python3 environment: indeed some of the updates are simple (such as "print" -> "print()"), but I think we have to be careful about details of the cython configuration/compilation. It's possible that you're compiling
 the cython bits with python2.7 libraries and then trying to run with the default system python (which is 3.5)...</div>
<div><br>
</div>
<div>I really suggest only having python2.7 directories in your PYTHONPATH, making a clean rivet installation, then seeing if it works as expected.<br>
</div>
<div><br>
</div>
<div>Chris</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Feb 10, 2017 at 12:36 PM, mohammadreza noormandipour
<span dir="ltr"><<a href="mailto:m.noormandipour@mail.sbu.ac.ir" target="_blank">m.noormandipour@mail.sbu.ac.i<wbr>r</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt">
Hello,<br>
<br>
I have both python 2.7 and python 3.5 installed on my computer. When I was installing the source file of Rivet, there where a few syntax errors which I corrected manually. For example the "print" command was without "()" and I added it and as you know this
 is the difference between python2.7 and python3.X as you said. <br>
<br>
These are what you said:<br>
<br>
mohammad@Reza:~$ export PYTHONPATH<br>
<br>
mohammad@Reza:~$ echo $PYTHONPATH<br>
<br>
/usr/local/lib/python2.7/dist-<wbr>packages:/usr/local/lib/python<wbr>2.7/dist-packages:/home/mohamm<wbr>ad/root/lib:/usr/lib/python2.7<wbr>/site-packages:/usr/lib/python<wbr>3.5/site-packages:/usr/lib64/p<wbr>ython2.7/site-packages:/usr/li<wbr>b64/python3.5/site-packages:/<wbr>usr/local/include/python3.5m:/<wbr>usr/include/python2.7:/bin/pyt<wbr>hon:/usr/lib/python3/dist-pack<wbr>ages:/home/mohammad/Rivet-2.5.<wbr>3/bin:/usr/lib/python2.7/dist-<wbr>packages/rivet:/home/mohammad/<wbr>Rivet-2.5.3/pyext/rivet<br>
<br>
mohammad@Reza:~$ which python<br>
<br>
/home/mohammad/anaconda3/bin/p<wbr>ython<br>
<br>
I think anaconda uses python3.<br>
<br>
Regards<br>
M.R.Noormandipour<br>
<div style="font-family:"times new roman";color:rgb(0,0,0);font-size:16px">
<hr>
<div id="m_3869186380424309009gmail-m_-5399283310032407318m_5436369670949910723m_-189698886280017318divRpF555357" style="direction:ltr">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> Chris Pollard [<a href="mailto:cspollard@gmail.com" target="_blank">cspollard@gmail.com</a>]<br>
<b>Sent:</b> Friday, February 10, 2017 1:28 PM<br>
<b>To:</b> mohammadreza noormandipour; Rivet<br>
<b>Subject:</b> Re: [Rivet] Pythonpath<br>
</font><br>
</div>
<div>
<div class="m_3869186380424309009gmail-m_-5399283310032407318m_5436369670949910723h5">
<div></div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>There are still a number of things that could be going wrong. Could you tell us where your default python executable is and give us your PYTHONPATH? i.e.</div>
<div><br>
</div>
<div><font face="monospace, monospace">$ which python</font></div>
<div><font face="monospace, monospace">$ echo $PYTHONPATH</font></div>
<div><br>
</div>
<div>We don't support python 3.X yet, so it's possible the wrong python is being found.</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Chris</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 9, 2017 at 4:56 PM, mohammadreza noormandipour
<span dir="ltr"><<a href="mailto:m.noormandipour@mail.sbu.ac.ir" target="_blank">m.noormandipour@mail.sbu.ac.i<wbr>r</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt">
Dear Chris,<br>
<br>
Yes,  I have set that. But again I have the same problem.<br>
Would you please think of it one more time?<br>
If you want more info about my system and the way I have installed the Rivet, we may have a meeting on Skype.<br>
<br>
Regards<br>
M.R.Noormandipour<br>
<div style="font-family:"times new roman";color:rgb(0,0,0);font-size:16px">
<hr>
<div id="m_3869186380424309009gmail-m_-5399283310032407318m_5436369670949910723m_-189698886280017318m_-4121390069010524247divRpF32881" style="direction:ltr">
<font color="#000000" size="2" face="Tahoma"><b>From:</b> Chris Pollard [<a href="mailto:cspollard@gmail.com" target="_blank">cspollard@gmail.com</a>]<br>
<b>Sent:</b> Thursday, February 9, 2017 7:14 PM<br>
<b>To:</b> mohammadreza noormandipour<br>
<b>Cc:</b> <a href="mailto:rivet@projects.hepforge.org" target="_blank">rivet@projects.hepforge.org</a><br>
<b>Subject:</b> Re: [Rivet] Pythonpath<br>
</font><br>
</div>
<div>
<div class="m_3869186380424309009gmail-m_-5399283310032407318m_5436369670949910723m_-189698886280017318h5">
<div></div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>Are you setting up your rivet environment? For me I have to do something like</div>
<div><br>
</div>
<div><font face="monospace, monospace">$ . /path/to/rivet/rivetenv.sh</font></div>
<div><br>
</div>
<div>in order to have my PYTHONPATH set correctly.</div>
<div><br>
Chris</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Thu, Feb 9, 2017 at 1:16 PM, mohammadreza noormandipour
<span dir="ltr"><<a href="mailto:m.noormandipour@mail.sbu.ac.ir" target="_blank">m.noormandipour@mail.sbu.ac.i<wbr>r</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="direction:ltr;font-family:tahoma;color:rgb(0,0,0);font-size:10pt">
Hello dear,<br>
<br>
I'm one of the students of SBU and I installed Rivet for my projects. When I want to run the program, I face this message: The rivet Python module could not be loaded: is your PYTHONPATH set correctly?<br>
<br>
I have studied your mailing list ( these links: <a href="https://www.hepforge.org/lists-archive/rivet/2015-September/006252.html" target="_blank">
https://www.hepforge.org/lists<wbr>-archive/rivet/2015-September/<wbr>006252.html</a>) and I couldn't solve the problem. I have both python 2.7 and python 3.5 installed on my Ubuntu Linux. I will be grateful if you help me.<br>
<br>
Thanks in advance<br>
<br>
Regards<br>
M.R.Noormandipour<br>
<br>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org" target="_blank">Rivet@projects.hepforge.org</a><br>
<a href="https://www.hepforge.org/lists/listinfo/rivet" rel="noreferrer" target="_blank">https://www.hepforge.org/lists<wbr>/listinfo/rivet</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></div>
</div>
</div>

</blockquote></div><br></div>