Hi,

I got the following error to load pybel in openbabel python module. Does 
anybody know what is wrong? Thanks.

$ brew info open-babel
open-babel: stable 3.0.0 (bottled), HEAD
Chemical toolbox
https://openbabel.org
/usr/local/Cellar/open-babel/3.0.0 (328 files, 19.5MB) *
  Poured from bottle on 2019-11-02 at 02:42:41
From: 
https://github.com/Homebrew/homebrew-core/blob/master/Formula/open-babel.rb
==> Dependencies
Build: cmake ✘, pkg-config ✔, rapidjson ✘, swig ✔
Required: cairo ✔, eigen ✔, python ✘
==> Options
--HEAD
        Install HEAD version
$ pip3 install -U openbabel
Requirement already up-to-date: openbabel in 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages 
(2.4.1)
$ python3
Python 3.8.0a3 (v3.8.0a3:9a448855b5, Mar 25 2019, 17:05:20) 
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from openbabel import pybel
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/openbabel.py",
 line 15, in <module>
    import _openbabel
ImportError: 
dlopen(/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_openbabel.cpython-38m-darwin.so,
 2): Library not loaded: /usr/local/opt/open-babel/lib/libopenbabel.5.dylib
  Referenced from: 
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_openbabel.cpython-38m-darwin.so
  Reason: image not found


_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to