测试积点老人 发表于 2018-4-26 10:08:42

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的
麻烦各位看看是什么问题啊?

qqq911 发表于 2018-4-27 10:19:06

感觉是少导入包,导致部分模块未找到

abcsell 发表于 2018-4-27 10:38:03

缺乏某些导入包

jingzizx 发表于 2018-4-27 12:04:04

命名错误,考虑插件、导入是否有问题

梦想家 发表于 2018-4-27 13:18:29

缺少导入包

libingyu135 发表于 2018-4-27 15:22:05

安装configparser这个
页: [1]
查看完整版本: Day5-5测试积点任务