Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble installing 0.14.1 on Debian Jessie #331

Closed
datawisely opened this issue Mar 7, 2017 · 11 comments
Closed

Trouble installing 0.14.1 on Debian Jessie #331

datawisely opened this issue Mar 7, 2017 · 11 comments
Assignees
Labels

Comments

@datawisely
Copy link

I have trouble installing Blockstack CLI on Debian Jessie.

I ran apt-get update && apt-get install -y python-pip python-dev libssl-dev libffi-dev rng-tools which worked. Then I ran pip install blockstack which threw an error:

In file included from src/curveMath.c:1:0:

src/curveMath.h:6:17: fatal error: gmp.h: No such file or directory

#include <gmp.h>

I tried to install pip install fastecdsa but:

src/curveMath.h:6:17: fatal error: gmp.h: No such file or directory

#include <gmp.h>

             _^_

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

I found a similar issue here: #274 but that is for MacOSX

Thanks!

@muneeb-ali
Copy link
Member

@datawisely thanks for reporting -- I'm taking a look

@muneeb-ali muneeb-ali self-assigned this Mar 7, 2017
@muneeb-ali muneeb-ali added bug Unwanted or unintended property causing functional harm deployment labels Mar 7, 2017
muneeb-ali added a commit that referenced this issue Mar 7, 2017
updated install instructions, fixes #331
@muneeb-ali
Copy link
Member

@datawisely try now -- should be fixed.

@datawisely
Copy link
Author

I ran pip install blockstack again, but got this again:

In file included from src/curveMath.c:1:0:

src/curveMath.h:6:17: fatal error: gmp.h: No such file or directory

#include <gmp.h>

             _^_

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

@jcnelson
Copy link
Member

jcnelson commented Mar 9, 2017

Hey @datawisely! Can you also try apt-get install libgmp-dev? Thanks!

@jcnelson jcnelson reopened this Mar 9, 2017
@datawisely
Copy link
Author

datawisely commented Mar 13, 2017

Thanks. Ok, first I did "apt-get install libgmp-dev" and then "pip install blockstack". Now I get a different error:

ImportError: No module named setuptools_ext


Can't roll back cryptography; was not uninstalled
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip-build-V7O8ua/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-r_5lND-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-V7O8ua/cryptography
Storing debug log for failure in /root/.pip/pip.log

@petepacific
Copy link

@datawisely try the following:

sudo pip install -U cffi

then run the blockstack install again.

source: pyca/cryptography#2280

@datawisely
Copy link
Author

Ok. Did that. It installed without error. But when I try:

blockstack lookup timblee.id

I get:

Traceback (most recent call last):
File "/usr/local/bin/blockstack", line 42, in
from blockstack_client.cli import run_cli, exit_with_error
File "/usr/local/lib/python2.7/dist-packages/blockstack_client/init.py", line 24, in
import app
File "/usr/local/lib/python2.7/dist-packages/blockstack_client/app.py", line 40, in
import wallet
File "/usr/local/lib/python2.7/dist-packages/blockstack_client/wallet.py", line 30, in
import virtualchain
File "/usr/local/lib/python2.7/dist-packages/virtualchain/init.py", line 24, in
from .lib import *
File "/usr/local/lib/python2.7/dist-packages/virtualchain/lib/init.py", line 26, in
import blockchain
File "/usr/local/lib/python2.7/dist-packages/virtualchain/lib/blockchain/init.py", line 24, in
import transactions
File "/usr/local/lib/python2.7/dist-packages/virtualchain/lib/blockchain/transactions.py", line 27, in
from .bitcoin_blockchain import JSONRPCException, BlockchainDownloader, SPVClient
File "/usr/local/lib/python2.7/dist-packages/virtualchain/lib/blockchain/bitcoin_blockchain/init.py", line 24, in
from .keys import BitcoinPublicKey, BitcoinPrivateKey, hex_hash160_to_address, script_hex_to_address, version_byte, analyze_private_key,
File "/usr/local/lib/python2.7/dist-packages/virtualchain/lib/blockchain/bitcoin_blockchain/keys.py", line 24, in
import pybitcoin
File "/usr/local/lib/python2.7/dist-packages/pybitcoin/init.py", line 46, in
from keychain import PrivateKeychain, PublicKeychain
File "/usr/local/lib/python2.7/dist-packages/keychain/init.py", line 1, in
from .private_keychain import PrivateKeychain
File "/usr/local/lib/python2.7/dist-packages/keychain/private_keychain.py", line 1, in
from bitmerchant.wallet import Wallet as HDWallet
File "/usr/local/lib/python2.7/dist-packages/bitmerchant/wallet/init.py", line 1, in
from .bip32 import Wallet
File "/usr/local/lib/python2.7/dist-packages/bitmerchant/wallet/bip32.py", line 7, in
import base58
ImportError: No module named base58

@muneeb-ali
Copy link
Member

can you please paste the output of

$ blockstack info

I want to ensure you're on the latest version of blockstack

@jcnelson
Copy link
Member

@muneeb-ali @datawisely I think the version of pip you're using is old. That would explain this:

ImportError: No module named setuptools_ext

This can be fixed with pip install --upgrade pip.

The import error on base58 indicates that not all of the dependencies were installed through pip. If you follow up with pip install --upgrade blockstack once your pip is at the latest version, that should force the dependent packages to get installed.

Since you're doing this on Jessie, you might also have an out-of-date pyopenssl. This can be fixed with pip install --upgrade pyopenssl.

@muneeb-ali muneeb-ali added support and removed bug Unwanted or unintended property causing functional harm labels Mar 23, 2017
@jackzampolin
Copy link
Contributor

Closing this as stale. Please reopen if it is still an issue.

@blockstack-devops
Copy link
Contributor

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Dec 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants
@jcnelson @muneeb-ali @shea256 @jackzampolin @datawisely @petepacific @blockstack-devops and others