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的
麻烦各位看看是什么问题啊?
你是否是安装的是最新的python-sdk,新版本的sdk是7.0版本的,python-sdk,当中接口规格有较大的改动,当中没有qiniu.conf和qiniu.rs,取而代之的是qiniu.config和qiniu.quth。 这是名称有问题,要导入的名称不对 没有找到相关包 查看版本,重新安装 缺少configparser
页:
[1]