piston-cli icon indicating copy to clipboard operation
piston-cli copied to clipboard

Unable to run command 'piston'

Open kadnan opened this issue 8 years ago • 7 comments

I have installed requirement:

Adnans-MBP:~ AdnanAhmad$ pip list | grep graph
cryptography (1.4)
graphenelib (0.4.3)

But when I run piston I get the error:

Traceback (most recent call last):
  File "/anaconda3/anaconda/lib/python3.5/site-packages/steembase/__init__.py", line 3, in <module>
    from graphenebase.account import PrivateKey, PublicKey, Address, BrainKey
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/anaconda3/anaconda/lib/python3.5/site-packages/graphenelib-0.4.3-py3.5.egg/graphenebase/__init__.py", line 5, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/anaconda3/anaconda/lib/python3.5/site-packages/graphenelib-0.4.3-py3.5.egg/graphenebase/bip38.py", line 4, in <module>
  File "/anaconda3/anaconda/lib/python3.5/site-packages/scrypt.py", line 11, in <module>
    _scrypt = cdll.LoadLibrary(imp.find_module('_scrypt')[1])
  File "/anaconda3/anaconda/lib/python3.5/ctypes/__init__.py", line 425, in LoadLibrary
    return self._dlltype(name)
  File "/anaconda3/anaconda/lib/python3.5/ctypes/__init__.py", line 347, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/anaconda3/anaconda/lib/python3.5/site-packages/_scrypt.cpython-35m-darwin.so, 6): Library not loaded: libcrypto.1.0.0.dylib
  Referenced from: /anaconda3/anaconda/lib/python3.5/site-packages/_scrypt.cpython-35m-darwin.so
  Reason: image not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/anaconda/bin/piston", line 7, in <module>
    from piston.__main__ import main
  File "/anaconda3/anaconda/lib/python3.5/site-packages/piston/__main__.py", line 7, in <module>
    from steembase import PrivateKey, PublicKey, Address
  File "/anaconda3/anaconda/lib/python3.5/site-packages/steembase/__init__.py", line 8, in <module>
    raise ImportError("Please install 'graphenelibs'")
ImportError: Please install 'graphenelibs'

kadnan avatar Jul 26 '16 06:07 kadnan

there seems to be something wrong with the scrypt package from pip. Please try to reinstall script

xeroc avatar Jul 26 '16 12:07 xeroc

@xeroc reinstalled, same error.

kadnan avatar Jul 26 '16 12:07 kadnan

@xeroc Can you check at your end?

kadnan avatar Jul 28 '16 09:07 kadnan

Please try the new piston 0.3 .. it comes with a different default dependency

xeroc avatar Aug 04 '16 11:08 xeroc

I get the same error after following the install instructions for 0.3 and trying to run pre -0.3 piston code. When I run the 0.3 piston code I get a 500 error on my first browse. Do I need to update the submodules somehow?

shawnpringle avatar Aug 05 '16 14:08 shawnpringle

I did the following:

pip3 install -r requirements-web.txt --user --upgrade

I run with : "python3 piston.py web"

Now, the error is: ImportError: No module named 'steembase.account'

shawnpringle avatar Aug 05 '16 16:08 shawnpringle

you need to upgrate steem and graphenelib

pip3 install graphenelib --upgrade
pip3 install steem --upgrade

xeroc avatar Aug 10 '16 10:08 xeroc