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

Unable to run pip3 install #450

Open
m0bi5 opened this issue Feb 15, 2021 · 5 comments
Open

Unable to run pip3 install #450

m0bi5 opened this issue Feb 15, 2021 · 5 comments

Comments

@m0bi5
Copy link

m0bi5 commented Feb 15, 2021

Hello,

I am testing out the BlockSci library locally on my machine on a small portion of the blockchain. I have downloaded about 50,000 blocks using bitcoind and successfully ran the blocksci_parser as well as the blocksci_clusterizer commands. However, I am unable to install the Python library. The pip install command just hangs and the setup does not complete.
image

Reproduction Steps

I am running the pip install command given in the documentation.

CC=gcc-7 CXX=g++-7 sudo -H pip3 install -e blockscipy

System Information

Using AMI: no
BlockSci version: 14ccc93
Blockchain: Bitcoin
Parser: Disk
Total memory: 8 GB

@jiagengliu
Copy link

It does take a while and there's no progress bar. Try opening a separate shell and check the CPU usage of the process.

@PanosChtz
Copy link

I am running CC=gcc-7 CXX=g++-7 sudo -H pip3 install -e blockscipy right after sudo make install, but I get a million lines of red error messages, the last lines read:
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/user/BlockSci/blockscipy/setup.py'"'"'; __file__='"'"'/home/user/BlockSci/blockscipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

Any ideas on how to overcome this?

@kostyaBro
Copy link

@PanosChtz I have same problem. Can U solve it?

@kostyaBro
Copy link

@PanosChtz I have this error on ubuntu 20.04, but on ubuntu 18.04 all good

FROM ubuntu:18.04

RUN apt-get update && \
    apt-get install software-properties-common -y

RUN add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
    apt-get update && \
    apt install cmake libtool autoconf libboost-filesystem-dev libboost-iostreams-dev \
    libboost-serialization-dev libboost-thread-dev libboost-test-dev  libssl-dev libjsoncpp-dev \
    libcurl4-openssl-dev libjsoncpp-dev libjsonrpccpp-dev libsnappy-dev zlib1g-dev libbz2-dev \
    liblz4-dev libzstd-dev libjemalloc-dev libsparsehash-dev python3-dev python3-pip git gcc-7 g++-7 -y

WORKDIR /app

RUN git clone https://github.com/citp/BlockSci.git

WORKDIR /app/BlockSci

RUN mkdir release

WORKDIR /app/BlockSci/release

RUN CC=gcc-7 CXX=g++-7 cmake -DCMAKE_BUILD_TYPE=Release ..
RUN make
RUN make install

WORKDIR /app/BlockSci

RUN CC=gcc-7 CXX=g++-7 pip3 install -e blockscipy

@PanosChtz
Copy link

@kostyaBro I gave up struggling with 20.04 and I set up a dedicated 18.04 VM. Works there for me.

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

No branches or pull requests

4 participants