BlockSci
BlockSci copied to clipboard
Unable to run pip3 install
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.
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
It does take a while and there's no progress bar. Try opening a separate shell and check the CPU usage of the process.
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?
@PanosChtz I have same problem. Can U solve it?
@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
@kostyaBro I gave up struggling with 20.04 and I set up a dedicated 18.04 VM. Works there for me.