neuro-ml / thunder

🌩️ The Deep Learning framework based on Lightning
https://neuro-ml.github.io/thunder/
MIT License
10 stars 1 forks source link

pydantic>2.0 causes `<Result AttributeError("'FieldInfo' object has no attribute 'outer_type_'")>.exit_code` #41

Closed arseniybelkov closed 7 months ago

arseniybelkov commented 1 year ago
@pytest.mark.timeout(30)
def test_run(temp_dir, dumb_config):
    experiment = temp_dir / "test_run_exp"
    experiment.mkdir()
    config = experiment / "experiment.config"
    shutil.copy(dumb_config, config)

    # absolute path
    result = invoke("run", experiment)
    assert result.exit_code == 0, result.output

Results in

>       assert result.exit_code == 0, result.output
E       AssertionError: 
E       assert 1 == 0
E        +  where 1 = <Result AttributeError("'FieldInfo' object has no attribute 'outer_type_'")>.exit_code
arseniybelkov commented 7 months ago

It seems lightning resolved it