Steem Python升级过程中遇到的坑
最近看了O哥的文章,头脑一热,想着趁着今天有点空,干脆把Steem Python给升级了吧。
升级本身就需一个命令
pip3 install steem --upgrade
于是满心期待着试着运行了一下,得到的却是这样一个错误:
WARNING:root:Retry in 1s -- RPCErrorRecoverable: non-200 response: 502 from rpc.steemviz.com
这才想起来,这两天节点不稳定,于是在各个节点间切换,似乎切换到了rpc.steemviz.com,于是所有用steem python写的程序都不能跑了。。。
首先想到的就是要恢复官方节点:
steempy set nodes https://api.steemit.com
看到的却是同样的错误信息。。。
好吧,那怎么改默认节点信息?记得似乎Steem Python把节点信息存在一个sqlite3的数据库中,但死活就是找不到那个文件。。。
那就改下这个文件吧:/home/yuxi/environments/myenv/lib/python3.5/site-packages/steembase/http_client.py
找到这行:
self.nodes = cycle(self.sanitize_nodes(nodes))
将它注释掉,再加上这行:
self.nodes = cycle(self.sanitize_nodes(['https://api.steemit.com']))
似乎程序可以跑了。赶紧更换节点:
steempy set nodes https://api.steemit.com
再把程序改回原来版本,一切正常。
坑到此结束?NONONO,旧版本中的有些方法似乎不能用了,一点点接着去填吧。。。
提醒大家,进行这个操作前,一定先要做个snapshot,以便随时可以复原。
这只是我个人的经历,升级出了问题不要找我。。。
Leave Steem Python升级过程中遇到的坑 to:
Read more #cn posts
Best Posts From yuxi
We have not curated any of yuxi's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From yuxi
- 想要买比特币等加密货币又担心银行账户被冻结?推荐Skrill!
- 试用一下Weedcash
- 黑五打折入手了Ledger Nano S
- HF20 test
- Steem Python升级过程中遇到的坑
- Steemmate - Like both Steemit and Steemd? Let’s put them together!
- Namesilo Ruby client v0.0.3 - supporting all REST API methods and adding helper methods
- Webmaster tool update (v0.1) - Namecheap support and lazy loading of data
- Namesilo Ruby client
- 软件介绍: Gource, 察看酷绚的软件提交历史
- Webmaster tool update (v0.0.9) - Name.com support and other improvements
- deleted
- Webmaster tool update (v0.0.8) - Namesilo support, settings tab UI improvements and updated dashboard
- Webmaster tool update (v0.0.7) - Cloudflare support, notification icon, domain status in dashboard, and a few improvements
- Webmaster tool update (v0.0.6) - Heroku support, and UI improvements
- Webmaster tool update (v0.0.5) - Linode support, New dashboard, and other improvements
- Webmaster tool update (v0.0.4): supporting Digital Ocean, UI improvements, flexible settings
- Webmaster tool: a chrome extension to view information from various cloud service providers
- Utopian Solrizer v0.0.2: parameterized solr fields, batch adding posts efficiently, support more solr fields
- 免手续费的跨境消费信用卡Revolut推荐