I have tried having everything locally installed:

cmake ../openbabel -DCMAKE_INSTALL_PREFIX=/home/mirix/openbabel 
-DBUILD_GUI=ON -DPYTHON_BINDINGS=ON -DPYTHON_PREFIX=/home/mirix/python 
-DRUN_SWIG=ON 
-DEIGEN2_INCLUDE_DIR=/home/mirix/Downloads/software/eigen-eigen-2.0.16 
-DSWIG_EXECUTABLE=/home/mirix/Downloads/software/swig-2.0.4/swig

No luck. Still same error message...

How do I know if Swig is actually being used?


On 09/14/2011 10:29 AM, Noel O'Boyle wrote:
> 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&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
>> Learn about the latest advances in developing for the
>> BlackBerry&reg; mobile platform with sessions, labs&  more.
>> See new tools and technologies. Register for BlackBerry&reg; 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&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry&reg; mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry&reg; 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

Reply via email to