Skip to content

Get pydantic.errors.PydanticUserError when running fedlearn using default configuration provided in the doc #152

@ClaudiaCumberbatch

Description

@ClaudiaCumberbatch

Describe the problem.

Hi. I followed the steps in the documentation to configure the environment and ran this example command. Then I got an error message like this:

Traceback (most recent call last):
  File "/work/cse-zhousc/taps/taps/run/main.py", line 147, in main
    run(config, run_dir)
  File "/work/cse-zhousc/taps/taps/run/main.py", line 38, in _decorator
    return func(config, run_dir)
  File "/work/cse-zhousc/taps/taps/run/main.py", line 86, in run
    app = config.app.get_app()
  File "/work/cse-zhousc/taps/taps/apps/configs/fedlearn.py", line 81, in get_app
    return FedlearnApp(
  File "/work/cse-zhousc/taps/taps/apps/fedlearn/app.py", line 115, in __init__
    self.clients = create_clients(
  File "/work/cse-zhousc/taps/taps/apps/fedlearn/utils.py", line 66, in create_clients
    client = Client(
  File "/work/cse-zhousc/miniconda3/envs/taps310/lib/python3.10/site-packages/pydantic/main.py", line 193, in __init__
    self.__pydantic_validator__.validate_python(data, self_instance=self)
  File "/work/cse-zhousc/miniconda3/envs/taps310/lib/python3.10/site-packages/pydantic/_internal/_mock_val_ser.py", line 99, in __getattr__
    raise PydanticUserError(self._error_message, code=self._code)
pydantic.errors.PydanticUserError: `Client` is not fully defined; you should define `nn`, then call `Client.model_rebuild()`.

For further information visit https://errors.pydantic.dev/2.8/u/class-not-fully-defined

How did you install TaPS?

$ git clone https://github.com/proxystore/taps.git
$ pip install -e .[fedlearn]

TaPS Version

eb1b587

Python Version

3.10

OS and Platform

x86 linux

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions