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- ...
随机推荐
- Google Cloud SSH 连接配置
设置当前用户及root用户的密码 sudo passwd xx-user # 输入新密码 sudo passwd root # 输入新密码(建议保持一样) 在本地生成私钥和公钥 cd ~/.ssh s ...
- PHP常用系统设置整理
1.设置时间脚本执行时间 set_time_limit(0); 2.设置最大执行内存 ini_set('memory_limit','1024M');//设置内存 memory_get_usage() ...
- https://github.com/MediaTek-Labs/linkit-smart-7688-feed编译失败
mkdir -p /home/fly/workdir/LinkltSmart7688Duo-20170626/openwrt/dl/home/fly/workdir/LinkltSmart7688Du ...
- PAT 1111 Online Map
Input our current position and a destination, an online map can recommend several paths. Now your jo ...
- RAID级别简介
独立硬盘冗余阵列(RAID, Redundant Array of Independent Disks),旧称廉价磁盘冗余阵列(RAID, Redundant Array of Inexpensive ...
- 清北学堂模拟赛d7t1 消失的数字
题目描述 现在,我的手上有 n 个数字,分别是 a1; a2; a3; :::; an.我现在需要删除其中的 k 个数字.当然我不希望随随便便删除,我希望删除 k个数字之后,剩下的 n - k 个数中 ...
- FORTIFY_SOURCE
In recent years Linux distributions started treating security more seriously. Out of many security f ...
- ubuntu设置不睡眠的方法
Ubuntu系统不睡眠设置方法:要完成这个设置Ubuntu有两种方法:第一种是打开 System Settings –> Power,中文版是打开系统设置 -> 电源),然后进行设置.但不 ...
- 我要抓狂了。。又回到了几天不能A一道题的时候
poj1556我不做了.你做做把...我已经要game over了
- Linux/CentOS各种服务框架的搭建完整流程
在2012年的时候,由于要照应新人对Linux以及相关服务的了解和学习,我特地把当时我们创业项目的全部服务搭建过程写成了一篇文档,能够让他们学习而且有所參照. 以下就以这篇文档为底稿,进行一些改动和敏 ...