tmux powerline boot time 出不來

螢幕快照 2015-09-22 下午7.20.01

今天重裝環境 tmux + powerline 出現

ERROR:tmux:uptime:Exception while computing segment: 'module' object has no attribute 'BOOT_TIME'

原來是因為 psutil 版本更新到 3 而 boot_time 是 2 版才有

螢幕快照 2015-09-22 下午7.20.57

解決方式很簡單 就是砍了新版 指定裝舊版

sudo pip uninstall psutil
sudo pip install 'psutil==2.2.1'

搞定收工

Leave a Comment