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

Install failing (Mac OSX) #292

Closed
nicosandller opened this issue Nov 13, 2015 · 11 comments
Closed

Install failing (Mac OSX) #292

nicosandller opened this issue Nov 13, 2015 · 11 comments

Comments

@nicosandller
Copy link

I'm trying to install pyethereum by runing :

sudo python setup.py install --user

but it fails to install by returning:

Installed /Library/Python/2.7/site-packages/ethereum-1.0.6-py2.7.egg
Processing dependencies for ethereum==1.0.6
Searching for scrypt
Reading https://pypi.python.org/simple/scrypt/
Best match: scrypt 0.7.1
Downloading https://pypi.python.org/packages/source/s/scrypt/scrypt-0.7.1.tar.gz#md5=9feb713f183e11caa940e8ec71cf1361
Processing scrypt-0.7.1.tar.gz
Writing /tmp/easy_install-tYX2NZ/scrypt-0.7.1/setup.cfg
Running scrypt-0.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tYX2NZ/scrypt-0.7.1/egg-dist-tmp-Qs5vgS
scrypt-1.1.6/lib/crypto/crypto_aesctr.c:38:10: fatal error: 'openssl/aes.h'
      file not found
#include <openssl/aes.h>
         ^
1 error generated.
error: Setup script exited with error: command 'cc' failed with exit status 1

am I missing something? I checked and OpenSSL is installed on my computer, and it seems to be working. I see that the build is not passing for OSX, is this related?

Thanks

@nicosandller nicosandller changed the title Install falinig (Mac OSX) Install failing (Mac OSX) Nov 13, 2015
@yanik-ai
Copy link

yanik-ai commented Mar 6, 2016

@nicosandller what was the problem? I had the same

@nicosandller
Copy link
Author

@yanik5 I don't remember :S. I think I just gave up and installed it on an Ubuntu VM. You should also try koding.com, it came in pretty handy.

@conor10
Copy link

conor10 commented May 15, 2016

You can work around this issue by installing scrypt manually via pip first and pointing it to the OpenSSL library.

env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install scrypt

@kimdhamilton
Copy link

@conor10's workaround fixed the installation on mac for me

@pipermerriam
Copy link
Member

I believe you can also do brew link openssl --force to fix this for future install without having to do the env variables.

@ridwannaibi
Copy link

@conor10 @kimdhamilton Please can you explain how I achieve this, I a newbie on terminal. Thanks

@husky-parul
Copy link

husky-parul commented Jun 29, 2017

I am trying to install pyethereum on OS Sierra and getting the below error.

Installed /Users/singh.p/Library/Python/2.7/lib/python/site-packages/ethereum-2.0.4-py2.7.egg
Processing dependencies for ethereum==2.0.4
Searching for py-ecc
Reading https://pypi.python.org/simple/py_ecc/
Reading https://pypi.python.org/simple/py-ecc/
Couldn't find index page for 'py_ecc' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for py-ecc
error: Could not find suitable distribution for Requirement.parse('py-ecc')

P.S: @conor10 workaround fixed the installation error for openssl on mac for me but now I'm stucked at py-ecc. The first comment to the problem quoted by @nicosandller came after an year. I am just hoping I dont have to wait so long. :-|

@grodobean
Copy link

I got around the OpenSSL error by doing sudo env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" python3 setup.py install but now I'm coming across, "error: [Errno 2] No such file or directory: 'README.md'
"

@Ram-Crypto
Copy link

i m trying to install pyethereum using following command..
sudo python setup.py install
but i am getting error......

Installed /usr/local/lib/python2.7/dist-packages/ethereum-2.0.4-py2.7.egg
Processing dependencies for ethereum==2.0.4
Searching for py_ecc
Reading https://pypi.python.org/simple/py_ecc/
Downloading https://pypi.python.org/packages/12/ad/b4d6de8212495b8959e84781ef3cbc5ed8fdadfd3b68b5f50275205bbc3e/py_ecc-1.1.2.tar.gz#md5=c0f0d77219eb6cb0a49460d7728ff958
Best match: py-ecc 1.1.2
Processing py_ecc-1.1.2.tar.gz
Writing /tmp/easy_install-01gaM0/py_ecc-1.1.2/setup.cfg
Running py_ecc-1.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-01gaM0/py_ecc-1.1.2/egg-dist-tmp-RGFja6
error: [Errno 2] No such file or directory: 'README.md'
please solve...

@d4tech
Copy link

d4tech commented Feb 1, 2018

Do check if you have libtools installed brew install libtools.

@Tuanm
Copy link

Tuanm commented Dec 19, 2021

Same problem when installing ethereum on WSL2.

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

No branches or pull requests