博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
bitcoin转账api,python2.7
阅读量:5980 次
发布时间:2019-06-20

本文共 4402 字,大约阅读时间需要 14 分钟。

  hot3.png

下载并安装OpenBazaar-Server

https://github.com/OpenBazaar/OpenBazaar-Server/archive/master.zip

安装虚拟环境

$ pip install virtualenv

$ cd /Users/shijun/Desktop/openSourceProject/OpenBazaar-Server-master 

创建虚拟环境

$ virtualenv pytest --python=python2.7 --no-site-packages

激活虚拟环境

$ source pytest/bin/activate

(pytest) shijundeMacBook-Pro:OpenBazaar-Server-master shijun$

安装

$ sudo pip install -r requirements.txt

问题:安装过程遇到超时,继续安装

问题:ImportError: No module named requests

解决:$ pip install requests

测试

$ python openbazaard.py start --help

启动服务

$ python openbazaard.py start -a 0.0.0.0

________                      __________

\_____  \ ______   ____   ____\______   \_____  _____________  _____ _______

 /   |   \\____ \_/ __ \ /    \|    |  _/\__  \ \___   /\__  \ \__  \\_  __ \ 

/    |    \  |_> >  ___/|   |  \    |   \ / __ \_/    /  / __ \_/ __ \|  | \/

\_______  /   __/ \___  >___|  /______  /(____  /_____ \(____  (____  /__|

        \/|__|        \/     \/       \/      \/      \/     \/     \/

 

OpenBazaar Server 0.2.6 starting...

2018-07-02 14:07:59+0800 [Server] [ERROR] failed to query seed: Signature was forged or corrupt

2018-07-02 14:07:59+0800 [Server] [ERROR] failed to query seed: [Errno 8] nodename nor servname provided, or not known

2018-07-02 14:07:59+0800 [Server] [WARNING] no known neighbors, so not writing to cache.

2018-07-02 14:08:09+0800 [Server] [WARNING] no known neighbors, so not writing to cache.

2018-07-02 14:08:09+0800 [-] [CRITICAL] Libbitcoin server offline

解决:$ brew install libbitcoin-server

$ cd /usr/local/Cellar/libbitcoin-server/3.5.0_2/bin

$ bs --initchain

06:37:04.700459 INFO [server] ================= startup  ==================

06:37:04.700503 WARNING [server] ================= startup  ==================

06:37:04.700646 ERROR [server] ================= startup  ==================

06:37:04.700682 FATAL [server] ================= startup  ==================

06:37:04.700717 INFO [server] Using config file: "/usr/local/Cellar/libbitcoin-server/3.5.0_2/etc/libbitcoin/bs.cfg"

06:37:04.700818 INFO [server] Please wait while initializing "blockchain" directory...

06:37:11.586594 INFO [server] Completed initialization.

运行服务

$ ./bs

06:45:52.430671 INFO [server] ================= startup  ==================

06:45:52.430713 WARNING [server] ================= startup  ==================

06:45:52.430849 ERROR [server] ================= startup  ==================

06:45:52.430895 FATAL [server] ================= startup  ==================

06:45:52.430923 INFO [server] Using config file: "/usr/local/Cellar/libbitcoin-server/3.5.0_2/etc/libbitcoin/bs.cfg"

06:45:52.430949 INFO [server] Please wait while the server is starting...

06:45:52.432351 INFO [network] Starting manual session.

06:45:52.432685 INFO [server] Seeding is complete.

06:45:52.433524 INFO [node] Node start height is (0).

06:45:52.435284 INFO [network] Not configured for accepting incoming connections.

06:45:52.435363 INFO [network] Starting outbound session.

06:45:52.442370 INFO [server] Bound public query service to tcp://*:9091

06:45:52.444527 INFO [server] Bound public heartbeat service to tcp://*:9092

06:45:52.444928 INFO [server] Bound public block service to tcp://*:9093

06:45:52.445332 INFO [server] Bound public transaction service to tcp://*:9094

06:45:52.445387 INFO [server] Server is started.

06:45:52.503015 INFO [network] Connected outbound channel [218.75.158.221:8333] (1)

Segmentation fault: 11

 

$ python openbazaard.py start --testnet

$ python openbazaard.py start -a 0.0.0.0

========================

You are using an outdated and deprecated version of OpenBazaar. The current server is located here:

https://github.com/OpenBazaar/openbazaar-go

Unless you want to install from source, I highly recommend downloading the installer from our main website:

https://www.openbazaar.org/download/

========================

$ brew install git

$ brew install go

$ git --version

git version 2.18.0

$ go version

go version go1.10.1 darwin/amd64

$ cd /Users/shijun/Desktop/openSourceProject/openbazaar-go-master 

$ go run openbazaard.go start

cannot find package "github.com/OpenBazaar/openbazaar-go/cmd" in any of:

$ go get github.com/OpenBazaar/openbazaar-go

cannot find package "github.com/op/go-logging" in any of:

$ go get github.com/op/go-logging

cannot find package "github.com/jessevdk/go-flags" in any of:

$ go get github.com/jessevdk/go-flags

cannot find package "github.com/ipfs/go-ipfs/repo/fsrepo/lock" in any of:

$ go get -u -d github.com/ipfs/go-ipfs

转载于:https://my.oschina.net/duojin/blog/1837183

你可能感兴趣的文章
Guice系列之用户指南(十)
查看>>
树与森林的存储、遍历和树与森林的转换
查看>>
Android自定义属性
查看>>
Visual C#之核心语言
查看>>
代码重构(五):继承关系重构规则
查看>>
Windows App开发之集合控件与数据绑定
查看>>
中大型网站技术架构演变过程
查看>>
ARTS训练第三周
查看>>
vue中v-for循环如何将变量带入class的属性名中
查看>>
ceph学习笔记之七 数据平衡
查看>>
windows下的php的memcache扩展的安装及memcache最新下载地址
查看>>
YOLOv3: 训练自己的数据(绝对经典版本1)
查看>>
POJ 1150 The Last Non-zero Digit 《挑战程序设计竞赛》
查看>>
Could not find artifact com.sun:tools:jar:1.5.0 解决办法
查看>>
phpstorm xdebug remote配置
查看>>
引用与指针的区别
查看>>
pygtk笔记--2.1:布局容器,VBox、Hbox、Alignment
查看>>
dtree.js树的使用
查看>>
Springboot2.1.3 + redis 实现 cache序列化乱码问题
查看>>
线程什么时候需要同步,什么时候不需要同步?
查看>>