|
[Rivet] PythonpathChris Pollard cspollard at gmail.comFri Feb 10 14:09:31 GMT 2017
Hi Mohammadreza, 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. 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)... I really suggest only having python2.7 directories in your PYTHONPATH, making a clean rivet installation, then seeing if it works as expected. Chris On Fri, Feb 10, 2017 at 12:36 PM, mohammadreza noormandipour < m.noormandipour at mail.sbu.ac.ir> wrote: > Hello, > > 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. > > These are what you said: > > mohammad at Reza:~$ export PYTHONPATH > > mohammad at Reza:~$ echo $PYTHONPATH > > /usr/local/lib/python2.7/dist-packages:/usr/local/lib/python > 2.7/dist-packages:/home/mohammad/root/lib:/usr/lib/python2.7 > /site-packages:/usr/lib/python3.5/site-packages:/usr/lib64/ > python2.7/site-packages:/usr/lib64/python3.5/site-packages: > /usr/local/include/python3.5m:/usr/include/python2.7:/bin/ > python:/usr/lib/python3/dist-packages:/home/mohammad/Rivet- > 2.5.3/bin:/usr/lib/python2.7/dist-packages/rivet:/home/ > mohammad/Rivet-2.5.3/pyext/rivet > > mohammad at Reza:~$ which python > > /home/mohammad/anaconda3/bin/python > > I think anaconda uses python3. > > Regards > M.R.Noormandipour > ------------------------------ > *From:* Chris Pollard [cspollard at gmail.com] > *Sent:* Friday, February 10, 2017 1:28 PM > *To:* mohammadreza noormandipour; Rivet > *Subject:* Re: [Rivet] Pythonpath > > Hello, > > 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. > > $ which python > $ echo $PYTHONPATH > > We don't support python 3.X yet, so it's possible the wrong python is > being found. > > Cheers, > > Chris > > On Thu, Feb 9, 2017 at 4:56 PM, mohammadreza noormandipour < > m.noormandipour at mail.sbu.ac.ir> wrote: > >> Dear Chris, >> >> Yes, I have set that. But again I have the same problem. >> Would you please think of it one more time? >> If you want more info about my system and the way I have installed the >> Rivet, we may have a meeting on Skype. >> >> Regards >> M.R.Noormandipour >> ------------------------------ >> *From:* Chris Pollard [cspollard at gmail.com] >> *Sent:* Thursday, February 9, 2017 7:14 PM >> *To:* mohammadreza noormandipour >> *Cc:* rivet at projects.hepforge.org >> *Subject:* Re: [Rivet] Pythonpath >> >> Hello, >> >> Are you setting up your rivet environment? For me I have to do something >> like >> >> $ . /path/to/rivet/rivetenv.sh >> >> in order to have my PYTHONPATH set correctly. >> >> Chris >> >> On Thu, Feb 9, 2017 at 1:16 PM, mohammadreza noormandipour < >> m.noormandipour at mail.sbu.ac.ir> wrote: >> >>> Hello dear, >>> >>> 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? >>> >>> I have studied your mailing list ( these links: >>> https://www.hepforge.org/lists-archive/rivet/2015-September/006252.html) >>> 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. >>> >>> Thanks in advance >>> >>> Regards >>> M.R.Noormandipour >>> >>> >>> _______________________________________________ >>> Rivet mailing list >>> Rivet at projects.hepforge.org >>> https://www.hepforge.org/lists/listinfo/rivet >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20170210/a6e6c1ba/attachment.html>
More information about the Rivet mailing list |