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- ...
随机推荐
- isinstance、issubclass、反射
一.isinstance.issubclass # isinstance(obj, cls) 检查obj是否是cls的对象 class A(object):pass a = A() print(isi ...
- ansible - playbook(剧组)
目录 ansible - playbook(剧组) 常用命令 五种传参方式 常用元素详解 tags handlers template when 循环 嵌套循环 ansible - playbook( ...
- Master Nginx(6) - The Nginx HTTP Server
Nginx's architecture The HTTP core module The server Logging Finding files Name resolution Client in ...
- py文件控制台执行时,报错:引入的模块不存在
1.描述:该模块在IDE中是可以正确执行的.但是从cmd控制台执行时,报错:该模块引入的其他模块不存在. 2.解决:在该模块的#encoding:utf-8 之后另起一行加如下代码: #encodin ...
- 利用C语言中的函数指针实现c++中的虚函数
C语言中的函数指针 #include<stdio.h> int fun1(int a) { return a*a; } int fun2(int a) { return a*a*a; } ...
- N天学习一个Linux命令之mkdir
前言 暂无 用途 用于新建目录 常用参数 1.设置目录权限-m, --mode=MODE 2.递归创建目录(父目录不存在时,也创建)-p, --parents 3.其它-v, --verbose pr ...
- jq 轮播图 上下自动滚动
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...
- request.getInputStream() 的两种解析方式
http://sagewsg.iteye.com/blog/1717923 byte[] bytes = new byte[1024 * 1024]; InputStream is; try { is ...
- 《从零開始学Swift》学习笔记(Day60)——Core Foundation框架
创文章,欢迎转载.转载请注明:关东升的博客 Core Foundation框架是苹果公司提供一套概念来源于Foundation框架,编程接口面向C语言风格的API.尽管在Swift中调用这样的C语 ...
- 改动mysqlpassword
1.假设没有password,则 mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpass'); ...