create account

MacOSX El Capitan piston installation "library not loaded: libcrypto.1.0.0.dylib" issue hack/fix by biophil

View this thread on: hive.blogpeakd.comecency.com
· @biophil ·
$6.42
MacOSX El Capitan piston installation "library not loaded: libcrypto.1.0.0.dylib" issue hack/fix
Hi all, I just wanted to report a problem I had getting [piston](http://piston.readthedocs.io/en/develop/) installed on my macbook, **and how I seem to have fixed it.**

**Please Note:** I have absolutely no idea what I am doing. What I am about to describe seems to have worked for me and my computer appears to still be operational, anything you do to *your own* computer is entirely at your own risk and you need to be aware of my utter lack of expertise if you try it yourself.

### The Rig

I'm on a brand-new 12" MacBook running MacOS X El Capitan and python 3.5. I've done nothing to the computer in the way of customization; my setup is almost exactly OOTB.

### The Problem

I installed piston using `pip` following the instructions on [this page](http://piston.readthedocs.io/en/develop/installation.html) exactly. It seemed to work (after a few tries, because I inevitably ran into goofy problems with pip and had to try this and that and... you don't want to hear how I fixed that one; I probably ran `pip --upgrade` a time or too as well).

Then, I fired up python and moved on to [the testing steps on this page.](http://piston.readthedocs.io/en/develop/lib.html) As soon as I executed
`from piston.steem import Steem`,
python gave me this stupid error message that unfortunately I didn't save, but it included
`Library not loaded: libcrypto.1.0.0.dylib`
and I think the end of it was
`image not found.`

WTF???

So what do you do when you get some random error message that you don't understand at all? Well, I think the correct answer is to go find an adult who knows what's going on. **But I did what I always do: I spun the google roulette wheel and prayed that it didn't land on something that would ultimately result in the theft of my identity.**

### The Fix

Here's what the google oracle gave me: [a website claiming to have a fix, but note that the word "hacks" is in the url.](http://mithun.co/hacks/library-not-loaded-libcrypto-1-0-0-dylib-issue-in-mac/) Maybe not the best of signs? But hell if I'm going to go ask a real person for help, so let's just try it out!

**It turns out that Apple was smart enough not to let me do what this guy was suggesting.** If you follow his instructions exactly, as soon as you try to run the `sudo cp ...` command, the terminal gives you a nice error message to the effect of
`hey, wtf are you doing you n00b, you can't just write garbage into usr/lib!!!`

"What now?" I thought to myself, my despair growing ever deeper. "Back to google!" This time, I landed on a very helpful [stackoverflow article](http://stackoverflow.com/questions/32659348/operation-not-permitted-when-on-root-el-capitan-rootless-disabled), where the top-voted answer said "here's how to get around the safeguards that Apple put in place," and the 2nd-top-voted answer said "Hey! How about instead of being an idiot, you *don't* be an idiot and write to `usr/local/lib` instead?" And whammo, that's what I did.

Aren't you glad I'm this long-winded? Isn't this fun? So without further ado, here's the fix, explained in a screenshot from the hacky guy I linked to above.
Don't do what I redded-out, and DO do what I wrote in green:
https://ipfs.pics/ipfs/QmcjGy9seCYF5LZFSEfgyhwtNkWqXtxjtEzgYi6pmuSCUu

After I did this and restarted my Python kernel, I could run `from piston.steem import Steem` and **voila! No errors!**


AAAAND let's just give one more disclaimer: **I don't know why what I did worked. There's no particular reason to believe that it will work for you. For that matter, there's no particular reason to believe that you won't get your identity stolen as a result of following my hack advice.**
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorbiophil
permlinkmacosx-el-capitan-piston-installation-library-not-loaded-libcrypto-1-0-0-dylib-issue-hack-fix
categorypiston
json_metadata{"tags":["piston","developers","hacks","macos"],"links":["http://piston.readthedocs.io/en/develop/"]}
created2016-08-10 04:00:27
last_update2016-08-10 04:00:27
depth0
children1
last_payout2016-09-09 16:15:21
cashout_time1969-12-31 23:59:59
total_payout_value5.696 HBD
curator_payout_value0.719 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,649
author_reputation45,223,914,794,461
root_title"MacOSX El Capitan piston installation "library not loaded: libcrypto.1.0.0.dylib" issue hack/fix"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id717,843
net_rshares4,112,477,622,101
author_curate_reward""
vote details (51)
@anarcho-andrei ·
I love it when I try a fix and I realize a stupid mistake that I could have figured out beforehand and saved myself some staring blankly at a screen lol.  Good on you for figuring out the fix!
properties (22)
authoranarcho-andrei
permlinkre-biophil-macosx-el-capitan-piston-installation-library-not-loaded-libcrypto-1-0-0-dylib-issue-hack-fix-20160810t160303449z
categorypiston
json_metadata{"tags":["piston"]}
created2016-08-10 16:03:06
last_update2016-08-10 16:03:06
depth1
children0
last_payout2016-09-09 16:15:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length192
author_reputation27,098,621,645,365
root_title"MacOSX El Capitan piston installation "library not loaded: libcrypto.1.0.0.dylib" issue hack/fix"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id726,883
net_rshares0