标题: Day4-6测试积点任务 [打印本页] 作者: 测试积点老人 时间: 2018-4-25 10:04 标题: Day4-6测试积点任务 问题:
jenkins 执行 python 脚本报:ImportError: No module named configparser
jenkins执行python脚本报:ImportError: No module named configparser
日志:
Started by user zllcjx
Building in workspace /Users/Shared/Jenkins/Home/workspace/接口测试
[接口测试] $ /bin/sh -xe /Users/Shared/Jenkins/tmp/hudson8711863975502678804.sh
python /Users/zll/interface_test/runtest.py Traceback (most recent call last): File "/Users
/zll/interface_test/runtest.py", line 5, in import interface.weather File "/Users/zll/interfa
ce_test/interface/weather.py", line 7, in from globalpkg.httpprotocol import MyHttp Fil
e "/Users/zll/interface_test/globalpkg/httpprotocol.py", line 10, in from globalpkg.logs
import logger File "/Users/zll/interface_test/globalpkg/logs.py", line 7, in import config
parser ImportError: No module named configparser Build step 'Execute shell' marked b
uild as failure Finished: FAILURE
我在本地执行python脚本是ok的
麻烦各位看看是什么问题啊?