PYTHONPATH should point to the location of the openbabel.py and pybel.py files. In the current SVN revision, these will be created in builddir/scripts/pybuild.
2010/4/27 Konstantin Tokarev <annu...@yandex.ru>: > What should PYTHONPATH point to? > > 27.04.10, 09:37, "Noel O'Boyle" <baoille...@gmail.com>: > >> Hi Konstantin, >> >> I've just tried this myself on a 64-bit CentOS system and it worked fine. >> >> I compiled Python 2.6.5 with --enable-shared. I added libpython2.6.so >> to LD_LIBRARY_PATH (otherwise the build fails as it needs to run the >> compiled python at some point). After "make", I was able to import >> openbabel and pybel after setting PYTHONPATH, adding lib to >> LD_LIBRARY_PATH, and setting BABEL_LIBDIR. > > >> >> - Noel >> >> 2010/4/21 Konstantin Tokarev : >> > >> > >> > 21.04.10, 19:15, "Noel O'Boyle" : >> > >> >> Hmmm...well, it has been working fine for me on 32-bit Linux (I >> >> haven't tried it in the last few weeks though). If there's a problem >> >> with it on 64-bit Linux and not 32-bit, it needs to be passed on up to >> >> the SWIG project. >> > >> > Yes, it's about 64bit >> > >> >> >> >> - Noel >> >> >> >> 2010/4/21 Konstantin Tokarev : >> >> > >> >> > >> >> > 21.04.10, 18:59, "Noel O'Boyle" : >> >> > >> >> >> Have you checked whether all of the Python related variables in >> >> >> CMakeCache.txt refer to the correct Python installation? >> >> > >> >> > export LD_LIBRARY_PATH=/home/kostya/python64/lib/ && cmake .. >> -DPYTHON_EXECUTABLE=/home/kostya/python64/bin/python2.6 >> -DPYTHON_INCLUDE_PATH=/home/kostya/python64/include/python2.6/ >> -DPYTHON_LIBRARY=/home/kostya/python64/lib/libpython2.6.so >> -DENABLE_PYTHON=ON >> -DBoost_INCLUDE_DIR=/home/kostya/boost64/include/boost-1.41.0 >> -DBoost_LIBRARY_DIRS=/home/kostya/boost64/lib/boost-1.41.0/ >> -DBoost_PYTHON_LIBRARY=/home/kostya/boost64/lib/boost-1.41.0/libboost_python-mt.so >> >> -DBoost_PYTHON_LIBRARY_RELEASE=/home/kostya/boost64/lib/boost-1.41.0/libboost_python-mt.so >> && make >> >> > >> >> > (Boost added for Avogadro) >> >> > >> >> >> >> >> >> - Noel >> >> >> >> >> >> On 21 April 2010 17:36, Konstantin Tokarev wrote: >> >> >> > OB Python binding compiles fine with 2.4.3, but fails with 2.6.5 >> >> >> > -- >> >> >> > Regards, >> >> >> > Konstantin >> >> >> > >> >> >> > >> ------------------------------------------------------------------------------ >> >> >> > _______________________________________________ >> >> >> > OpenBabel-Devel mailing list >> >> >> > OpenBabel-Devel@lists.sourceforge.net >> >> >> > https://lists.sourceforge.net/lists/listinfo/openbabel-devel >> >> >> > >> >> >> >> >> >> >> >> > >> >> > -- >> >> > Regards, >> >> > Konstantin >> >> > >> >> > Здесь спама нет http://mail.yandex.ru/nospam/sign >> >> > >> >> >> >> >> > >> > -- >> > Regards, >> > Konstantin >> > >> > Яндекс.Почта. Письма есть. Спама - нет. http://mail.yandex.ru/nospam/sign >> > >> >> > > -- > Regards, > Konstantin > > Здесь спама нет http://mail.yandex.ru/nospam/sign > ------------------------------------------------------------------------------ _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel