I've got openbabel and the python stuff built fine using the latest
subversion source.
But I'm getting an error importing openbabel.

Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import openbabel
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/openbabel.py", line 42, in
<module>
    _openbabel = swig_import_helper()
  File "/usr/local/lib/python2.6/dist-packages/openbabel.py", line 38, in
swig_import_helper
    _mod = imp.load_module('_openbabel', fp, pathname, description)
ImportError: /usr/local/lib/python2.6/dist-packages/_openbabel.so:
undefined symbol: _ZTVN9OpenBabel22OBEnergyConformerScoreE
>>>

Any ideas on what might be going wrong?
Do I need to get LD_LIBRARY_PATH set right?  I have it as
export
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib/:/usr/local/lib/openbabel/2.2.99/
This is where the .so's from my current build were installed

Thanks,
TJ

> On Fri, Jul 23, 2010 at 8:56 PM, TJ O'Donnell <t...@acm.org> wrote:
>> I've successfully compiled the cpp code and built the .so's using
>> the current subversion source, but ran into a problem making the
>> python bindings.  The error (python setup.py build in
>> openbabel/scripts/python)
>> is that openbabel.py is missing.  I see openbabel-python.i in
>> openbabel/scripts.  Is that for swig?  Do I need to run swig to
>> create openbabel.py?  Can someone tell me how to do that?
>
> Using cmake, make sure these variables are set to ON in CMakeCache.txt
> (in your build dir):
>
> ENABLE_PYTHON
> RUN_SWIG
>
> $ cd openbabel
> $mkdir build
> $ cd build
> $ cmake -DENABLE_PYTHON:=ON -DRUN_SWIG:=ON ..
> $ make
>
> This will build the python bindings.
>
> Tim
>
>> Thanks,
>> TJ
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> OpenBabel-discuss mailing list
>> OpenBabel-discuss@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
>>
>



------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to