在迁移别人写好的脚本时,发现pychartdir没有导入,脚本执行报错。以下是报错内容: [modps@LGJF-ZYC5-MMSC-WEB02 ~]$ python /opt/aspire/product/modps/mopps/shell/dayreport_linux.py /etc/host.conf: line 1: bad command `nospoof on' Traceback (most recent call last): File "/opt/aspire/product/modps/mopps/shell/dayreport_linux.py", line 42,