|
[Rivet] PythonpathChris Pollard cspollard at gmail.comSat Feb 11 12:30:59 GMT 2017
Glad to hear it! Cheers, Chris On Fri, Feb 10, 2017 at 8:37 PM, mohammadreza noormandipour < m.noormandipour at mail.sbu.ac.ir> wrote: > Hello dear Chris, > > 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. > > 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. > > Thanks for your time > Regards > M.R.Noormandipour > ------------------------------ > *From:* Chris Pollard [cspollard at gmail.com] > *Sent:* Friday, February 10, 2017 5:36 PM > > *To:* mohammadreza noormandipour; Rivet > *Subject:* Re: [Rivet] Pythonpath > > 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/p >> ython2.7/site-packages:/usr/lib64/python3.5/site-packages:/ >> usr/local/include/python3.5m:/usr/include/python2.7:/bin/pyt >> hon:/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/20170211/b639e942/attachment.html>
More information about the Rivet mailing list |