davidkingzyb / pccold

douyu斗鱼 自动化工具 主播上线通知 & 直播视频自动录制 & 弹幕抓取
MIT License
191 stars 29 forks source link

您好,请问Mac这个要怎么使用,还请明示,我安装完脚本配置后报错 #10

Closed AnriKaede closed 5 years ago

AnriKaede commented 5 years ago

pccoldvideo Traceback (most recent call last): File "/usr/local/bin/pccoldvideo", line 4, in import('pkg_resources').run_script('pccold==0.17', 'pccoldvideo') File "/usr/local/lib/python3.7/site-packages/pkg_resources/init.py", line 666, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/local/lib/python3.7/site-packages/pkg_resources/init.py", line 1437, in run_script .format(**locals()), pkg_resources.ResolutionError: Script 'scripts/pccoldvideo' not found in metadata at '/usr/local/lib/python3.7/site-packages/pccold-0.17.dist-info'

AnriKaede commented 5 years ago

python3 pccold.py Traceback (most recent call last): File "pccold.py", line 27, in from .tools import sendEmails,saveStream,testRoomStatus,pidpool,ReturnCodeObserverThread,SleepKillerThread ModuleNotFoundError: No module named 'main.tools'; 'main' is not a package [1]+ Exit 1 nohup python3 pccold.py

davidkingzyb commented 5 years ago

不好意思,没能在mac复现你的问题,尝试直接$ pccold$ pccoldvideo?

AnriKaede commented 5 years ago

谢谢了,是 python3 安装的命令路径问题

davidkingzyb commented 5 years ago

是通过修改shebang解决的吗?