I would guess that you are having conflicts between several different versions of Open Babel or the Python bindings on your computer. I recommend you install both Open Babel and its bindings locally, set the appropriate environment variables (e.g. LD_LIBRARY_PATH, PYTHONPATH and so forth, and try again).
- Noel On 13 September 2011 20:24, Miro Moman <miromo...@gmail.com> wrote: > I have compiled the latest development version of OpenBabel with python > bindings (Swig 2.0.0 and Eigen2). However, when I try to run the python > script from https://gist.github.com/974477, I get the following error: > > python dockedpose.py > Traceback (most recent call last): > File "dockedpose.py", line 2, in > import pybel > File "/usr/local/lib/python2.6/dist-packages/pybel.py", line 16, in > import openbabel as ob > File "/usr/local/lib/python2.6/dist-packages/openbabel.py", line 79, in > _openbabel = swig_import_helper() > File "/usr/local/lib/python2.6/dist-packages/openbabel.py", line 75, in > swig_import_helper > _mod = imp.load_module('_openbabel', fp, pathname, description) > ImportError: dynamic module does not define init function (init_openbabel) > > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss