Pytest和virtualenv ||无法配置容器:[Errno 1]

问题描述 投票:1回答:1

我目前正在开发一个python程序,用于通过多次运行来查找不稳定的测试。为了实现此目标,我正在使用pytest以随机顺序在virtualenv中执行测试。

当我通过Slurm作业在远程计算机上执行程序时,出现以下错误代码:

2019-11-26 18:18:18,642 - CRITICAL - Failed to configure container: [Errno 1] Creating overlay mount for '/' failed: Operation not permitted. Please use other directory modes, for example '--read-only-dir /'.

2019-11-26 18:18:18,777 - CRITICAL - Cannot execute 'pytest': execution in container failed. 

这不会在我的本地计算机上发生,仅在通过Slurm作业的任务startet上发生。

这是我第一次使用这种复杂性来使用python,所以我不太确定从哪里开始解决问题。

非常感谢!

python pip virtualenv
1个回答
0
投票

我终于发现问题仅出现在benchexec的最新版本上。

当我的python程序在virtualenv中执行run exec --no-container --pytest且Benchexec为2.0或更高版本时,显示在我的原始帖子中的错误消息就会出现。我只是告诉pip在我的virtualenv中安装一个较旧版本的Benchexec,瞧,它可以工作。

我会创建标签benchexec,但没有必要的信用点。随时为我做!

© www.soinside.com 2019 - 2024. All rights reserved.