coderanger / pychef

Python library to interact with the Chef server API
Other
195 stars 129 forks source link

centos 6 libcrypto.so not found #50

Open scopenco opened 8 years ago

scopenco commented 8 years ago

When i try to use chef library on centos 6, i get:

    import chef
  File "/usr/lib64/python2.7/site-packages/chef/__init__.py", line 5, in <module>
    from chef.api import ChefAPI, autoconfigure
  File "/usr/lib64/python2.7/site-packages/chef/api.py", line 18, in <module>
    from chef.rsa import Key
  File "/usr/lib64/python2.7/site-packages/chef/rsa.py", line 9, in <module>
    _eay = CDLL('libcrypto.so')
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 360, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcrypto.so: cannot open shared object file: No such file or directory

package openssl098e has only these libs:

# rpm -ql openssl098e-0.9.8e-18.el6_5.2.x86_64| grep libcrypto.so
/usr/lib64/.libcrypto.so.0.9.8e.hmac
/usr/lib64/.libcrypto.so.6.hmac
/usr/lib64/libcrypto.so.0.9.8e
/usr/lib64/libcrypto.so.6

chef library installed from pip2.7 PyChef-0.2.3

dmitrytokarev commented 8 years ago

@scopenco pychef has six and requests dependencies: https://github.com/coderanger/pychef/blob/master/setup.py#L32 Make sure those are installed

coderanger commented 8 years ago

This should be resolved in master, can you try that?

tobmat commented 8 years ago

I had this same issue in cent 7. To fix it I needed to run the following:

sudo yum install openssl-devel

Here is info on the instance: Operating System: CentOS Linux 7 (Core) Kernel: Linux 3.10.0-123.8.1.el7.x86_64

foogod commented 7 years ago

I ran into this same issue, and after reading this I can confirm it appears to be fixed in master.

It looks like this has been fixed for quite a while but no new package has been published since then.. Would it be possible to get an updated package in PyPI with these fixes?

Thanks!

jason-kane commented 6 years ago

sudo apt install libssl-dev on ubuntu