Blockstack Core Issue?

dev@Larabot:~/blockstack-core$ blockstack setup

Traceback (most recent call last):
  File "/usr/local/bin/blockstack", line 4, in <module>
    __import__('pkg_resources').run_script('blockstack==0.18.0.4', 'blockstack')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/EGG-INFO/scripts/blockstack", line 42, in <module>
    from blockstack_client.cli import run_cli, exit_with_error
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/__init__.py", line 32, in <module>
    import rpc
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/rpc.py", line 97, in <module>
    from .wallet import make_wallet
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/wallet.py", line 47, in <module>
    from .backend.crypto.utils import aes_decrypt, aes_encrypt
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/backend/crypto/__init__.py", line 22, in <module>
    from utils import aes_encrypt, aes_decrypt
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/backend/crypto/utils.py", line 26, in <module>
    import scrypt
  File "build/bdist.linux-x86_64/egg/scrypt/__init__.py", line 1, in <module>
    #!/usr/bin/env python2
  File "build/bdist.linux-x86_64/egg/scrypt/scrypt.py", line 15, in <module>
ImportError: No module named _scrypt
dev@Larabot:~/blockstack-core$ sudo blockstack setup
Traceback (most recent call last):
  File "/usr/local/bin/blockstack", line 4, in <module>
    __import__('pkg_resources').run_script('blockstack==0.18.0.4', 'blockstack')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 719, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1504, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/EGG-INFO/scripts/blockstack", line 42, in <module>
    from blockstack_client.cli import run_cli, exit_with_error
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/__init__.py", line 32, in <module>
    import rpc
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/rpc.py", line 97, in <module>
    from .wallet import make_wallet
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/wallet.py", line 47, in <module>
    from .backend.crypto.utils import aes_decrypt, aes_encrypt
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/backend/crypto/__init__.py", line 22, in <module>
    from utils import aes_encrypt, aes_decrypt
  File "/usr/local/lib/python2.7/dist-packages/blockstack-0.18.0.4-py2.7.egg/blockstack_client/backend/crypto/utils.py", line 26, in <module>
    import scrypt
  File "build/bdist.linux-x86_64/egg/scrypt/__init__.py", line 1, in <module>
    #!/usr/bin/env python2
  File "build/bdist.linux-x86_64/egg/scrypt/scrypt.py", line 15, in <module>
ImportError: No module named _scrypt

Any input on correcting this error? Followed the docs up to this point and catching this error.

To be clear, this did not work? https://github.com/blockstack/blockstack-core#importerror-no-module-named-_scrypt

dev@Larabot:~/blockstack-core$ sudo pip uninstall scrypt; sudo  pip install scrypt
The directory '/home/dev/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Cannot uninstall requirement scrypt, not installed
The directory '/home/dev/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/dev/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/dev/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting scrypt
  Downloading scrypt-0.8.6.tar.gz (52kB)
    100% |████████████████████████████████| 61kB 3.9MB/s
Installing collected packages: scrypt
  Running setup.py install for scrypt ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ueyepfb9/scrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-fzvsh6o7-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/scrypt
    copying scrypt/__init__.py -> build/lib.linux-x86_64-3.5/scrypt
    copying scrypt/scrypt.py -> build/lib.linux-x86_64-3.5/scrypt
    running build_ext
    building '_scrypt' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/src
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/lib
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/lib/crypto
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/lib/scryptenc
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/lib/util
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/libcperciva
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/libcperciva/alg
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/libcperciva/crypto
    creating build/temp.linux-x86_64-3.5/scrypt-1.2.1/libcperciva/util
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_CONFIG_H -DHAVE_CLOCK_GETTIME=1 -DHAVE_LIBRT=1 -DHAVE_POSIX_MEMALIGN=1 -DHAVE_STRUCT_SYSINFO=1 -DHAVE_STRUCT_SYSINFO_MEM_UNIT=1 -DHAVE_STRUCT_SYSINFO_TOTALRAM=1 -DHAVE_SYSINFO=1 -DHAVE_SYS_SYSINFO_H=1 -D_FILE_OFFSET_BITS=64 -Iscrypt-1.2.1 -Iscrypt-1.2.1/lib -Iscrypt-1.2.1/lib/scryptenc -Iscrypt-1.2.1/lib/crypto -Iscrypt-1.2.1/lib/util -Iscrypt-1.2.1/libcperciva/cpusupport -Iscrypt-1.2.1/libcperciva/alg -Iscrypt-1.2.1/libcperciva/util -Iscrypt-1.2.1/libcperciva/crypto -I/usr/local/include -I/usr/include -I/usr/include/python3.5m -c src/scrypt.c -o build/temp.linux-x86_64-3.5/src/scrypt.o -O2
    src/scrypt.c:28:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ueyepfb9/scrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-fzvsh6o7-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ueyepfb9/scrypt/

You’ll need the Python development headers to build that package…

Also see that Python 3 isnt supported which is on that server, i’ll throw up a dedicated instance for a node then

Most of the time these are dependency-issues. You need to install a package called python-dev. This package includes header files, a static library and development tools for building Python modules, extending the Python interpreter or embedding Python in applications. When encountering this error please note before the error it may say you are missing a package or header file — you should find those and install them and verify if it works

For Python 2.x use:

$ sudo apt-get install python-dev

If you using python3, try to replace python-dev with python3-dev

For a specific version of Python 3, replace x with the minor version in

$ sudo apt-get install python3.x-dev

Thank you very much

AYM