Re: [Open Babel] Unable to import pybel in Python

2016-07-08 Thread Dan Smith
Thank you sir. I used “import pybel”. I did not realize the difference in “from pybel import*”. I’m learning how to use python now. Looks like all is working. Dan > On Jul 8, 2016, at 10:55 AM, David Hall wrote: > > The below is dependent on how you import pybel > > you did "import pybel

Re: [Open Babel] Unable to import pybel in Python

2016-07-08 Thread Dan Smith
Yes. Thank you. > On Jul 8, 2016, at 10:33 AM, Noel O'Boyle wrote: > > Your INCLUDE_DIR has a ~. This means your home directory. > > On 8 July 2016 at 16:14, Dan Smith wrote: >> Leonardo, thanks for the suggestion. >> >> I tried the DPYTHON_INCLUDE_DIR option shown below. >> >> cmake ../ope

Re: [Open Babel] Unable to import pybel in Python

2016-07-08 Thread David Hall
The below is dependent on how you import pybel you did "import pybel", which imports the pybel functions with a "pybel." prefix as shown in your efforts to run things. Some of the examples in the documentation implicitly do "from pybel import *" so the functions are imported without a prefix.

Re: [Open Babel] Unable to import pybel in Python

2016-07-08 Thread Noel O'Boyle
Your INCLUDE_DIR has a ~. This means your home directory. On 8 July 2016 at 16:14, Dan Smith wrote: > Leonardo, thanks for the suggestion. > > I tried the DPYTHON_INCLUDE_DIR option shown below. > > cmake ../openbabel -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON > -DPYTHON_INCLUDE_DIR=~/usr/include/pytho

Re: [Open Babel] Unable to import pybel in Python

2016-07-08 Thread Dan Smith
Leonardo, thanks for the suggestion. I tried the DPYTHON_INCLUDE_DIR option shown below. cmake ../openbabel -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON -DPYTHON_INCLUDE_DIR=~/usr/include/python2.7 make failed with the following error. /Users/dansmith/Documents/MOLECULAR_MODELING/OpenBabel/openbabel/s

Re: [Open Babel] Unable to import pybel in Python

2016-07-08 Thread Chris Swain
Hi, I’ve written a page on installing cheminformatics tools on a Mac, here http://www.macinchem.org/reviews/cheminfo/cheminfoMac.php Cheers, Chris > On 8 Jul 2016, at 13:05, openbabel-discuss-requ...@lists.sourceforge.net > wrote: >

Re: [Open Babel] Unable to import pybel in Python

2016-07-07 Thread Leonardo Lazzaro
Hello, try to use the options DPYTHON_INCLUDE_DIR, DCMAKE_INSTALL_PREFIX. for example for anaconda2 I used the following command: cmake .. -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON -DCMAKE_INSTALL_PREFIX=~/anaconda2 -DPYTHON_INCLUDE_DIR=~/anaconda2/include/python2.7 -DCMAKE_LIBRARY_PATH=~/anaconda2/l