标签:linu div module err ast pack pac cal edit
File "/usr/local/lib/python2.7/site-packages/pwnlib/term/text.py", line 117, in <module> sys.modules[__name__] = Module() File "/usr/local/lib/python2.7/site-packages/pwnlib/term/text.py", line 28, in __init__ self.num_colors = termcap.get(‘colors‘, default = 8) File "/usr/local/lib/python2.7/site-packages/pwnlib/term/termcap.py", line 24, in get s = curses.tigetstr(cap) _curses.error: must call (at least) setupterm() first
运行上个月能跑通的py文件,结果爆出了上面错误,估计是OSX系统更新导致的,最后解决方式:
brew update pwntools;
更新了pycharm的版本(2017年版换到2019年版,没想到这么久没更新了)
pycharm里run -> edit configurations,在environment variables里添加(TERM , linux)
就能跑了。
标签:linu div module err ast pack pac cal edit
原文地址:https://www.cnblogs.com/lovelybunny/p/11953350.html