171129-workaround on ubuntu-seting up piston for steem
setup ubuntu environment variables
sudo vi /etc/environment
Then set all below variables:
percentChanceToPost
numPostsToConsider
voteWeight
steemPostingKey
steemAccountName
error encounter while installing Steem packages
error message:
ImportError: module 'setuptools.dist' has no attribute 'check_specifier'
Update setup tools by
sudo pip3 install --upgrade pip
Then another error pops up:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ubuntu/.local/lib/python3.6/site-packages/funcy-1.10-py3.6.egg'
While reinstalling funcy found these two messages
Requirement already satisfied: funcy in ./.local/lib/python3.6/site-packages
Requirement already satisfied: funcy in /home/ubuntu/.local/lib/python3.6/site-packages
But I couldn't find any files like 'funcy-1.10-py3.6.egg' in both path.
Also from File List in archlinux(https://www.archlinux.org/packages/community/any/python-funcy/files/)
I can see the egg package there, so why I don't have it?
Try I tried manually installation:
cd ~
git clone https://github.com/Suor/funcy
cd funcy
sudo python3 setup.py install --user
Done!
from piston.steem import Steem
got errors:
Traceback (most recent call last):
File "", line 1, in
File "piston/init.py", line 1, in
from .steem import Steem
File "piston/steem.py", line 1537
def delegate_vesting_shares(self, to_account: str, vesting_shares: str, account=None):
^
SyntaxError: invalid syntax
reinstall piston-lib no errors but above message remains
Try to do Upgrade via
pip3 install steem --user --upgrade
Then errors:
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named piston.steem
Then I enter python by using "python3" instead of "python", Problem solved.
Conclusion: while python 2.7 and python 3 exists in the same server. I need a better solution for conflicts between the two version of python.
seting environment variables
Problem: After adding variables in /etc/environment, cannot load related value from command "os.environ.get('percentChanceToPost')"
Then I have to add new variable like
percentChanceToPost="5"
Moreover, I have to log out and login again to make the env file valid.
Done.
171129-workaround on ubuntu-seting up piston for steem的更多相关文章
- Ubuntu 15.10搭建IPSec L2TP服务器
以下步骤完全使用于Ubuntu 14.04版本 首先安装以下所需包 sudo apt-get install openswan xl2tpd ppp lsof!注意!Ubuntu 15.10会提示无法 ...
- 【Ubuntu日常技巧】【解决】Ubuntu 16 右上角的音量调节通知框不停地闪烁问题
一. 先上干货 解决问题 1.1 安装工具alsa-tools-gui sudo apt-get install alsa-tools-gui 1.2 通过hdajackretask设置 直接执行命令 ...
- Ubuntu 14.04 – How to install xrdp in Ubuntu 14.04
http://c-nergy.be/blog/?p=5305 Hello World, Ubuntu 14.04 has been released on April 17th 2014 and we ...
- How to join a Ubuntu to Windows Domain
My testing environment: Windows Server 2012 R2 Essentials: With AD and standalone DC in one single b ...
- OpenStack Havana 部署在Ubuntu 12.04 Server 【OVS+GRE】(三)——计算节点的安装
序:OpenStack Havana 部署在Ubuntu 12.04 Server [OVS+GRE] 计算节点: 1.准备结点 安装好ubuntu 12.04 Server 64bits后,进入ro ...
- OpenStack Havana 部署在Ubuntu 12.04 Server 【OVS+GRE】(一)——控制节点的安装
序:OpenStack Havana 部署在Ubuntu 12.04 Server [OVS+GRE] 控制节点: 1.准备Ubuntu 安装好Ubuntu12.04 server 64bits后 ...
- Ubuntu 12.04 Server OpenStack Havana多节点(OVS+GRE)安装
1.需求 节点角色 NICs 控制节点 eth0(10.10.10.51)eth1(192.168.100.51) 网络节点 eth0(10.10.10.52)eth1(10.20.20.52)eth ...
- Ubuntu下使用sshfs挂载远程目录到本地(和Windows挂载盘一样)
访问局域网中其他Ubuntu机器,在不同机器间跳来跳去,很是麻烦,如果能够把远程目录映射到本地无疑会大大方面使用,就像Windows下的网络映射盘一样.在Linux的世界无疑也会有这种机制和方式,最近 ...
- x240 uefi ubuntu 12.04.4
http://askubuntu.com/questions/355034/ubuntu-12-04-3-lts-installation-failed-says-grub-installation- ...
随机推荐
- 洛谷 P1308 统计单词数【字符串处理】
题目描述 一般的文本编辑器都有查找单词的功能,该功能可以快速定位特定单词在文章中的位置,有的还能统计出特定单词在文章中出现的次数. 现在,请你编程实现这一功能,具体要求是:给定一个单词,请你输出它在给 ...
- [bzoj1251]序列终结者_splay
序列终结者 bzoj-1251 题目大意:给定一个长度为n的正整数序列,支持区间加,区间反转,查询区间最大值.所有元素开始都是0. 注释:$1\le n\le 5\cdot 10^4$,操作个数不多于 ...
- Java排序算法之冒泡、选择、插入、快速
JavaSort Java经典排序算法代码 2018-1-26更新:冒泡排序,选择排序,插入排序,快速排序 1. 冒泡排序 特点:效率低,实现简单 思想(从小到大排): 第1个数和第2个数比较,如果第 ...
- 1.7-BGP⑥
BGP中的路由控制/过滤: LAB1:Distribute-list调用ACL(较落后) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Step1:通过ACL定义 ...
- js面向对象初步探究(上) js面向对象的5种写方法
非常长一段时间看网上大神的JS代码特别吃力.那种面向对象的写法方式让人看得云里来雾里去.于是就研究了一下JS面向对象.因为是初学,就将自己在网上找到的资料整理一下,作为记忆. js面向对象的5种写方法 ...
- PHP项目的设计过程
过程说明: 1)产品部依据需求设计出原型图和需求文档. 2)产品部和需求方与技术一起过一遍需求. 这样能够让需求方确认需求:和所參与的技术(设计部,制作部,php,測试部等)对要设计的产品有一个大致的 ...
- 你不知道的JavaScript--Item33 跨域总结与解决的方法
一.神马是跨域(Cross Domain) 说白点就是post.get的url不是你当前的站点,域名不同.比如在*aaa.com/a.html*里面,表单的提交action是bbb.com/b.htm ...
- Centos7安装Rancher
docker pull rancher/server:v1.6.14 启动一个单实例的Rancher. docker run -d --restart=unless-stopped -p 8080:8 ...
- 模拟IC
------ 书籍介绍:http://bbs.eetop.cn/thread-371700-1-1.html -----
- ArraySegment
第一个构造函数 Initializes a new instance of the ArraySegment<T> structure that delimits all the elem ...