pipermerriam / eth-testrpc

Used for testing all maner of Ethereum JSON-RPC interactions.
MIT License
163 stars 46 forks source link

Unable to Install eth-testrpc on Mac OSX #105

Closed glaksmono closed 6 years ago

glaksmono commented 7 years ago

Here's the full output and the command when running pip install eth-testrpc:

➜  EthereumPrivate pip install eth-testrpc
Collecting eth-testrpc
  Downloading eth-testrpc-1.3.3.tar.gz
Collecting Werkzeug>=0.11.10 (from eth-testrpc)
  Downloading Werkzeug-0.12.2-py2.py3-none-any.whl (312kB)
    100% |████████████████████████████████| 317kB 967kB/s
Collecting click>=6.6 (from eth-testrpc)
  Downloading click-6.7-py2.py3-none-any.whl (71kB)
    100% |████████████████████████████████| 71kB 1.8MB/s
Collecting ethereum<2.0.0,>=1.6.1 (from eth-testrpc)
  Downloading ethereum-1.6.1.tar.gz (128kB)
    100% |████████████████████████████████| 133kB 446kB/s
Collecting json-rpc>=1.10.3 (from eth-testrpc)
  Downloading json_rpc-1.10.8-py2.py3-none-any.whl (40kB)
    100% |████████████████████████████████| 40kB 1.3MB/s
Collecting rlp>=0.4.7 (from eth-testrpc)
  Downloading rlp-0.6.0.tar.gz
Collecting repoze.lru (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading repoze.lru-0.7.tar.gz
Collecting PyYAML (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading PyYAML-3.12.tar.gz (253kB)
    100% |████████████████████████████████| 256kB 2.4MB/s
Collecting pbkdf2 (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading pbkdf2-1.3.tar.gz
Collecting bitcoin (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading bitcoin-1.1.42.tar.gz
Collecting pycryptodome>=3.3.1 (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading pycryptodome-3.4.7.tar.gz (6.5MB)
    100% |████████████████████████████████| 6.5MB 197kB/s
Collecting secp256k1 (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading secp256k1-0.13.2-cp27-cp27m-macosx_10_6_intel.whl (68kB)
    100% |████████████████████████████████| 71kB 729kB/s
Collecting scrypt (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading scrypt-0.8.0-cp27-cp27m-macosx_10_11_x86_64.whl
Collecting pysha3>=1.0.1 (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading pysha3-1.0.2.tar.gz (829kB)
    100% |████████████████████████████████| 829kB 672kB/s
Collecting pyethash (from ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading pyethash-0.1.27.tar.gz
Collecting cffi>=1.3.0 (from secp256k1->ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading cffi-1.11.2-cp27-cp27m-macosx_10_6_intel.whl (238kB)
    100% |████████████████████████████████| 245kB 879kB/s
Collecting pycparser (from cffi>=1.3.0->secp256k1->ethereum<2.0.0,>=1.6.1->eth-testrpc)
  Downloading pycparser-2.18.tar.gz (245kB)
    100% |████████████████████████████████| 256kB 1.1MB/s
Installing collected packages: Werkzeug, click, repoze.lru, PyYAML, pbkdf2, bitcoin, pycryptodome, pycparser, cffi, secp256k1, scrypt, pysha3, rlp, pyethash, ethereum, json-rpc, eth-testrpc
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/Werkzeug-0.12.2.dist-info'

Thoughts?

humoyun commented 6 years ago

@glaksmono Look at the bottom of the stack trace, "OSError: [Errno 13] Permission denied.." that means the user you are logged in Mac OSX does not have permission to install some packages, run it with sudo, sudo pip install eth-testrpc