Re: [Open Babel] Cannot use readstring() or readfile()

2017-05-18 Thread Noel O'Boyle
We are planning to address this issue. I note in passing that we were first there...:-) On 15 May 2017 at 20:53, tly...@lyonstech.net wrote: > Yes he is; but I think that given that he already knows there is a package > out there and installable with pip and the same name I feel he has little >

Re: [Open Babel] Cannot use readstring() or readfile()

2017-05-15 Thread tly...@lyonstech.net
Yes he is; but I think that given that he already knows there is a package out there and installable with pip and the same name I feel he has little option but to produce a new unique alias for this internal name or cause a lot of wasted confused time. I have had to change Python project names

Re: [Open Babel] Cannot use readstring() or readfile()

2017-05-14 Thread phuongdo
Noel O'Boyle is right, there is another module pyBEL (you can check its version is 0.5.5 or so). All you need to do is uninstall it and make the biding again. -- View this message in context: http://forums.openbabel.org/Cannot-use-readstring-or-readfile-tp4659795p4659930.html Sent from the Gene

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-19 Thread Noel O'Boyle
Right so - that's not our Pybel then. We have one file, pybel.py, containing readstring. I think you have installed pyBEL (the python interface to BEL) with "pip install pybel". It's starting to get annoying that another newer project has adopted the same name. Uninstall it, e.g. by removing the p

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-19 Thread tly...@lyonstech.net
Hi, When I execute your suggested command I do not get pybel.py instead I get the path to __init__.py . This is the case with two independent versions of python. No mention of these missing methods. T X64: C:\Program Files\Python35>python Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-18 Thread Noel O'Boyle
Take a look at pybel.py. The location is given by "print pybel.__file__" after importing it. Does it have readstring? Our one does. On 18 March 2017 at 19:02, Terry Lyons wrote: > Yes, I did > > python -m pip install openbabel > > I guess that is why I was able to import openbabel into Python. >

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-18 Thread Terry Lyons
Yes, I did python -m pip install openbabel I guess that is why I was able to import openbabel into Python. Does the install order matter? On 18 Mar 2017, at 15:17, Noel O'Boyle mailto:baoille...@gmail.com>> wrote: Did you try my suggestion? On 18 Mar 2017 3:06 p.m., "tly...@lyonstech.net

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-18 Thread Noel O'Boyle
Did you try my suggestion? On 18 Mar 2017 3:06 p.m., "tly...@lyonstech.net" wrote: > Hi Guys, > > We have basically the same challenge - which is not answered by the initial > response from Frederick. > > As you will note from the error message in the subsequent email, readfile > and readstring

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-18 Thread tly...@lyonstech.net
Hi Guys, We have basically the same challenge - which is not answered by the initial response from Frederick. As you will note from the error message in the subsequent email, readfile and readstring are reported as not being members of pybel. So using pybell.readfile does not work. From your ema

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-14 Thread Noel O'Boyle
"pip install openbabel" not "pip install pybel" On 3 March 2017 at 21:27, phuongdnp wrote: > I have tried installing different version of python (2.7, 3.3, 3.6) and > openbabel (2.3, 2.4) (Win 32bit) following these steps: > - Install python > - Install pip > - Install pybel module > - Install op

Re: [Open Babel] Cannot use readstring() or readfile()

2017-03-05 Thread Fredrik Wallner
Hi, If you do “import pybel” you have to use the module name for the readstring command, ie. pybel.readstring(). Another option is to do “from pybel import readstring”, depending on your use case. Kind regards, Fredrik On 5 mars 2017 20:25 +0100, phuongdnp , wrote: > I have tried installing di