【发布时间】:2020-11-26 15:06:19
【问题描述】:
我在云版本上运行 junkins
我在脚本 shell 上有这个配置,我收到了这个错误:
#!/usr/bin/env bash
export https_proxy=http://proxy-internet-aws-us.subsidia.org:3128
export http_proxy=http://proxy-internet-aws-us.subsidia.org:3128
python3 -m venv venv
pip install -r requirements.txt
echo "Import chromedriver on the env variable."
export CHROMEWEBDRIVER=/usr/local/bin/chromedriver
echo "Import python path on the env variable."
export PYTHONPATH=.
python com/decathlon/POMProject/Tests/Login/loginTest.py
我在控制台输出上有此错误消息:
Import chromedriver on the env variable.
Import python path on the env variable.
Traceback (most recent call last):
File "com/decathlon/POMProject/Tests/Login/loginTest.py", line 6, in <module>
from selenium import webdriver
ImportError: No module named selenium
Build step 'Execute shell' marked build as failure
Xvfb stopping
Finished: FAILURE
【问题讨论】:
标签: python selenium shell jenkins