简体   繁体   English

Travis-CI python3.6 Tox 启动 virtualenv 错误

[英]Travis-CI python3.6 Tox launching virtualenv error

We are using tox for py36 test environment setup through travis-ci , the tests start breaking in 2021-10-23.我们正在通过travis-ci使用tox进行 py36 测试环境设置,测试在 2021 年 10 月 23 日开始中断。

The error that we are getting is:我们得到的错误是:

$ tox
GLOB sdist-make: /home/travis/build/apache/incubator-marvin/python-toolbox/setup.py
py36 create: /home/travis/build/apache/incubator-marvin/python-toolbox/.tox/py36
ERROR: invocation failed (exit code 1), logfile: /home/travis/build/apache/incubator-marvin/python-toolbox/.tox/py36/log/py36-0.log
================================== log start ===================================
StopIteration: 
=================================== log end ====================================
ERROR: InvocationError for command /home/travis/virtualenv/python3.6.7/bin/python -m virtualenv --no-download --python /home/travis/virtualenv/python3.6.7/bin/python py36 (exited with code 1)
___________________________________ summary ____________________________________
ERROR:   py36: InvocationError for command /home/travis/virtualenv/python3.6.7/bin/python -m virtualenv --no-download --python /home/travis/virtualenv/python3.6.7/bin/python py36 (exited with code 1)
The command "tox" exited with 1.

Full Log Travis-CI Link 完整日志 Travis-CI 链接

The log showed that the process had failed while launching virtualenv even before package installation.日志显示,即使在 package 安装之前,该进程在启动virtualenv时已经失败。

We had also tested with tox -rvve py36 for more logs:我们还使用tox -rvve py36测试了更多日志:

Another log with Travis-CI Link 另一个带有 Travis-CI Link 的日志

The test result showed that /home/travis/virtualenv/python3.6.7/bin/python does exist, and can be successfully executed.测试结果显示/home/travis/virtualenv/python3.6.7/bin/python确实存在,并且可以成功执行。

What is weird to us is that the same setting used to be able to run without failure in 2021-10-22:让我们感到奇怪的是,相同的设置曾经能够在 2021-10-22 中正常运行:

Previous log with Travis-CI Link 以前使用 Travis-CI Link 的日志

And the only difference seem to be the version change of virtualenv , which is changing from 20.8.1 to 20.9.0 or 20.10.0 .唯一的区别似乎是virtualenv的版本更改,即从20.8.1更改为20.9.020.10.0

Does anyone know how this can be fixed?有谁知道如何解决这个问题?

After some experiments, we found that there are many dependencies that could be the cause of this error.经过一些实验,我们发现有许多依赖项可能是导致此错误的原因。

For our case, it is the OpenSSL version in the Ubuntu.对于我们的案例,它是 Ubuntu 中的 OpenSSL 版本。

https://github.com/apache/incubator-marvin/pull/59 https://github.com/apache/incubator-marvin/pull/59

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

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