Hello,

I just tried compiling OpenBabel 2.3.0 on Ubuntu 10.04 Lucid and I have a 
couple of questions.

I had been using openbabel 2.2.2 which I had installed through the Ubuntu 
repositories - I uninstalled the old version before building Openbabel 2.3 
following directions on: 

http://openbabel.org/docs/2.3.0/Installation/install.html

I used the following cmake command

cmake ../openbabel-2.3.0 -DBUILD_GUI=ON -DPYTHON_BINDINGS=ON -DPERL_BINDINGS=ON

and I added  " /usr/local/lib/python2.6/dist-packages"   to the PYTHONPATH

I can successfully run obabel from the command line, but I mostly use open 
babel from Python using pybel.  I get error when try to import pybel in python:

>>> from pybel import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/pybel.py", line 16, in <module>
    import openbabel as ob
  File "/usr/local/lib/python2.6/dist-packages/openbabel.py", line 63, in 
<module>
    _openbabel = swig_import_helper()
  File "/usr/local/lib/python2.6/dist-packages/openbabel.py", line 59, in 
swig_import_helper
    _mod = imp.load_module('_openbabel', fp, pathname, description)
ImportError: libopenbabel.so.4: cannot open shared object file: No such file or 
directory


Can you tell me why I  am unable to import the pybel bindings in python?  How 
can I fix this?

Also - I meant to build the OpenBabelGUI, but I can't find it.  How do you 
access the OpenBabel GUI on Linux?  

Thanks,

Steve

-------------
Dr. Steven P. Wathen
Associate Professor of Chemistry
Siena Heights University
1247 East Siena Heights Drive
Adrian, MI 49221

(517) 264-7657
swat...@sienaheights.edu
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to