Day5-5测试积点任务
问题:jenkins 执行 python 脚本报:ImportError: No module named configparser
jenkins执行python脚本报:ImportError: No module named configparser
日志:
<font face="微软雅黑" size="3">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/interface_test/interface/weather.py", line 7, in from globalpkg.httpprotocol import MyHttp File "/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 configparser ImportError: No module named configparser Build step 'Execute shell' marked build as failure Finished: FAILURE</font>
我在本地执行python脚本是ok的
麻烦各位看看是什么问题啊?
感觉是少导入包,导致部分模块未找到 缺乏某些导入包 命名错误,考虑插件、导入是否有问题 缺少导入包 安装configparser这个
页:
[1]