Skip to content

Can't import from pydantic #27

@dkunz49

Description

@dkunz49

Describe the bug
When attempting to run the docking_1d task, an error was returned, which stated that pydantic was not found

To Reproduce
Cloned CoRL from github
Built the Poetry environment using 'poetry build'
Checked to see that the environment was active
Executed the docking_1d as follows:
$ python3 -m corl.train_rl --cfg config/tasks/docking_1d/tasks/docking1d_task.yml

Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/dkunz/python3/CoRL/corl/train_rl.py", line 20, in
from corl.experiments.base_experiment import BaseExperiment, ExperimentFileParse, ExperimentParse
File "/home/dkunz/python3/CoRL/corl/experiments/base_experiment.py", line 15, in
from pydantic import BaseModel, ImportString, TypeAdapter, field_validator
ModuleNotFoundError: No module named 'pydantic'

Expected behavior
Expected the task to execute without errors.
Desktop (please complete the following information):

  • OS: Ubuntu 22.04 LTS
  • Browser: Brave
  • Version: 1.76.82

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions