Open mathieulavoie opened 8 years ago
+1
After installation dependencies:
C:\Users\test\Downloads\Bitcluster-master>start_webapi.py
Traceback (most recent call last):
File "C:\Users\test\Downloads\Bitcluster-master\start_webapi.py", line 1, in
I'm developer, but not familiar with python
@pshenmic You need Python 3 to run the projet. I will add it in the requirements. I did got the exact same issue as you when I did run it with Python 2.7.
C:\Users\test\Downloads\Bitcluster-master>py start_website.py
Where should i place the database? Why there isnt any documentation for this tool? That's confusing
yes, python3 is necessary. and as far as I understand you need mongodb and bitcoind with full node data on the machine.
then you may start build_cluster.py and it will crawl data from bitcoind to mongo.
then you may start start_website.py and open http://127.0.0.1:5000 (or another ip address if it is remote machine, you need to change app.run for that) in the browser.
however, process of crawling failed in my case and web interface says "Invalid or inexistant address" when I checked several addresses.
@pshenmic: see https://github.com/mathieulavoie/Bitcluster/wiki/Installation-Procedure
@anton48: Building the database from scratch is a bit more complex. I did add a section into the installation procedure. Let me know if you have any question or if something doesn't work,
@mathieulavoie: this is exactly what I did and build_cluster.py script (step 5 of procedure "Creating the database from scratch") failed:
[/home/a48/Bitcluster]# python3.4 ./build_cluster.py 1 Block 1 crawled Block 2 crawled Block 3 crawled [...] Block 117501 crawled Nb addr : 34076 Nb nodes : 24595 Waiting for insertion thread to complete... DB Sync Finished An exception will rise DB Sync Finished
nothing happens after this message for a long time and I pressed ctrl-c. At this point I stopped and was going to investigate the problem later.
The message shoud be "An exception will rise, press any key to see the Stacktrace". It used to be for debugging purpose during the tool development. I will remove it in the next commit.
Block 423534 crawled
Block 423535 crawled
Block 423536 crawled
Block 423537 crawled
Block not found
and you have to wait for timeout to have it inserted into db. This could be avoided by checking via rpc how many blocks are there.
$ ./build_cluster.py
Usage: python ./build_cluster.py <starting block id> <ending block id>
so user can choose how big range would like to have.
Do an installation procedure to get Bitcluster run on your own machine.