Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Update rsa.py #46

Closed
wants to merge 1 commit into from
Closed

Update rsa.py #46

wants to merge 1 commit into from

Conversation

gnarlyman
Copy link

Mac OSX El Capitan has a new security feature that breaks pychef for me. I received the below error when trying to use pychef after upgrading to El Capitan. Making this small change was all that was needed to make it work again.
...
File "/Library/Python/2.7/site-packages/chef/init.py", line 5, in
from chef.api import ChefAPI, autoconfigure
File "/Library/Python/2.7/site-packages/chef/api.py", line 18, in
from chef.rsa import Key
File "/Library/Python/2.7/site-packages/chef/rsa.py", line 7, in
_eay = CDLL('libcrypto.dylib')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/init.py", line 365, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(libcrypto.dylib, 6): image not found

Mac OSX El Capitan has a new security feature that breaks pychef for me. I received the below error when trying to use pychef after upgrading to El Capitan. Making this small change was all that was needed to make it work again.
...
  File "/Library/Python/2.7/site-packages/chef/__init__.py", line 5, in <module>
    from chef.api import ChefAPI, autoconfigure
  File "/Library/Python/2.7/site-packages/chef/api.py", line 18, in <module>
    from chef.rsa import Key
  File "/Library/Python/2.7/site-packages/chef/rsa.py", line 7, in <module>
    _eay = CDLL('libcrypto.dylib')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(libcrypto.dylib, 6): image not found
@coderanger
Copy link
Owner

I think this should be fixed more generally by a52b46d.

@coderanger coderanger closed this Apr 19, 2016
@gnarlyman
Copy link
Author

This is still happening on new installations of pychef on El Capitan

@coderanger
Copy link
Owner

@mschon314 What do you see as the return value of find_library?

@gnarlyman
Copy link
Author

Actually, looking into it more, find_library does work for me. I think maybe this is out of date: https://pypi.python.org/pypi/PyChef#downloads https://pypi.python.org/pypi/PyChef#downloads

A colleague of mine had this issue today, so I assumed it was still a problem. Looking at rsa.py between pypi and your github, they don’t match.

Thanks for the quickly reply! And for the great library!

On Jun 30, 2016, at 5:25 PM, Noah Kantrowitz notifications@github.com wrote:

@mschon314 https://github.com/mschon314 What do you see as the return value of find_library?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #46 (comment), or mute the thread https://github.com/notifications/unsubscribe/ACHsg2Vbcte5H_8AeEaRnGh5iG2DqyD1ks5qRFBkgaJpZM4Gmp0i.

@coderanger
Copy link
Owner

Yes, that merge was done after the 0.3 release because I thought it was higher risk than the other cleanups and after a year I wanted to get the low-risk stuff out the door.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants