python312Packages.torchrl: clean; skip tests failing because of gymnasium update
This commit is contained in:
parent
301e856e64
commit
d9e4e4140d
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
pythonOlder,
|
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
|
||||||
# build-system
|
# build-system
|
||||||
@ -44,8 +43,6 @@
|
|||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pyyaml,
|
pyyaml,
|
||||||
scipy,
|
scipy,
|
||||||
|
|
||||||
stdenv,
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -53,8 +50,6 @@ buildPythonPackage rec {
|
|||||||
version = "0.5.0";
|
version = "0.5.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pytorch";
|
owner = "pytorch";
|
||||||
repo = "rl";
|
repo = "rl";
|
||||||
@ -138,6 +133,11 @@ buildPythonPackage rec {
|
|||||||
++ optional-dependencies.rendering;
|
++ optional-dependencies.rendering;
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
# torchrl is incompatible with gymnasium>=1.0
|
||||||
|
# https://github.com/pytorch/rl/discussions/2483
|
||||||
|
"test_resetting_strategies"
|
||||||
|
"test_torchrl_to_gym"
|
||||||
|
|
||||||
# mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called
|
# mujoco.FatalError: an OpenGL platform library has not been loaded into this process, this most likely means that a valid OpenGL context has not been created before mjr_makeContext was called
|
||||||
"test_vecenvs_env"
|
"test_vecenvs_env"
|
||||||
|
|
||||||
@ -175,6 +175,5 @@ buildPythonPackage rec {
|
|||||||
changelog = "https://github.com/pytorch/rl/releases/tag/v${version}";
|
changelog = "https://github.com/pytorch/rl/releases/tag/v${version}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ GaetanLepage ];
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
||||||
# ~3k tests fail with: RuntimeError: internal error
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user