Library not loaded: libcrypto.1.0.0.dylib

Issue #16 closed
Sébastien Celles
created an issue

Hello,

I'm using Mac OS X 10.10 with Anaconda (Python 3 by default)

I installed monary using:

$ pip install monary

but :

$ ipython
Python 3.4.3 |Anaconda 2.3.0 (x86_64)| (default, Mar  6 2015, 12:07:41)
Type "copyright", "credits" or "license" for more information.

IPython 3.2.1 -- An enhanced Interactive Python.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: import monary
---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-9793056c289a> in <module>()
----> 1 import monary

//anaconda/lib/python3.4/site-packages/monary/__init__.py in <module>()
      2 # Please see the included LICENSE.TXT and NOTICE.TXT for licensing information.
      3
----> 4 from .monary import Monary, mvoid_to_bson_id
      5 from .write_concern import (WriteConcern, MONARY_W_ERRORS_IGNORED,
      6                             MONARY_W_DEFAULT, MONARY_W_MAJORITY, MONARY_W_TAG)

//anaconda/lib/python3.4/site-packages/monary/monary.py in <module>()
     79     cmonary = ctypes.CDLL(cmonaryfile)
     80
---> 81 _load_cmonary_lib()
     82
     83 CTYPE_CODES = {

//anaconda/lib/python3.4/site-packages/monary/monary.py in _load_cmonary_lib()
     77                            cmonary_fname)
     78
---> 79     cmonary = ctypes.CDLL(cmonaryfile)
     80
     81 _load_cmonary_lib()

//anaconda/lib/python3.4/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
    349
    350         if handle is None:
--> 351             self._handle = _dlopen(self._name, mode)
    352         else:
    353             self._handle = handle

OSError: dlopen(//anaconda/lib/python3.4/site-packages/monary/libcmonary.so, 6): Library not loaded: libcrypto.1.0.0.dylib
  Referenced from: //anaconda/lib/python3.4/site-packages/monary/libcmonary.so
  Reason: image not found

Any idea ?

Thanks

Comments (3)

  1. Jasmine Sandhu

    Check if you have libmongoc-1.0.0.dylib in /usr/lib

    If you started w/ Anaconda install and pip installed monary, I don't think you'll have this library.

    If you don't have libmongoc-1.0.0.dylib, then you'll need to install the cmongo driver and make sure libmongoc is complied with ssl. I didn't need sasl. https://monary.readthedocs.org/installation.html#installing-cmongo

    Install instructions for mongo-c driver: http://api.mongodb.org/c/current/installing.html#supported-platforms

    It must be compiled with SSL (double check following in the docs).

    $ ./configure --enable-ssl=yes --libdir=/usr/lib

    I also needed to update my openssl to 1.0.0 since the binary built by monary (libcmonary.so in site-packages) uses 1.0.0 versions of libssl and libcrypto. This is built during $ pip install monary

    Once you have /usr/lib/libmongoc-1.0.0.dylib, then just install openssl 1.0.0. See: http://mithun.co/hacks/library-not-loaded-libcrypto-1-0-0-dylib-issue-in-mac/

    Hope that helps, jasmine

  2. Log in to comment