简体   繁体   English

错误:py35:InterpreterNotFound:即使安装了python3.5,python3.5

[英]ERROR: py35: InterpreterNotFound: python3.5 even though python3.5 is installed

I'm running my builds on my CI (bamboo) via tox on docker 我正在通过docker tox在CI(竹子)上运行构建

my tox.ini look like this 我的tox.ini看起来像这样

[tox]
envlist = py27,py35
[testenv]
deps=-rrequirements.txt
commands=pytest

i'm running the tests like so 我正在像这样运行测试

tox --recreate -vv -i $myindexserver

Testing the setup locally works (inside docker) 在本地测试安装工作(在docker内部)

py27: commands succeeded py27:命令成功
py35: commands succeeded py35:命令成功
congratulations :) 恭喜:)

But while running the same thing on the CI instance failes with 但是在CI实例上运行相同的东西时,失败了

___________________________________ summary_________________________________ ___________________________________摘要_________________________________

py27: commands succeeded py27:命令成功
ERROR: py35: InterpreterNotFound: python3.5 错误:py35:InterpreterNotFound:python3.5

inside the docker, running which python3 and which python3.5 succeeds which python3.5内部,运行which python3which python3.5成功

Has anyone faced similar issue? 有没有人遇到过类似的问题?

Turns out that the docker container versions used by my local and the one used by the CI were different. 原来,我本地使用的docker容器版本和CI使用的docker容器版本是不同的。

I'm keeping the answer here in the hopes that someone else finds this useful and possibly save the many hours of debugging that I had to waste. 我在这里保留答案,希望其他人觉得这很有用,并可能节省我不得不浪费的大量调试时间。

do a docker images to find the tag that you're using locally, and check it against the version running inside your CI. 做一个docker images来查找您在本地使用的标签,并对照CI中运行的版本进行检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM