You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below occurs upon startup of the system. This is an issue with pydantic2 and rocketry, see Miksus/rocketry#225 and Miksus/rocketry#210 . For now, I manually downgraded pydantic to 1.10.13.
machina-similarityanalysis-1 | Traceback (most recent call last):
machina-similarityanalysis-1 | File "/machina/src/run.py", line 3, in<module>
machina-similarityanalysis-1 | from similarityanalysis import SimilarityAnalysis
machina-similarityanalysis-1 | File "/machina/src/similarityanalysis.py", line 6, in<module>
machina-similarityanalysis-1 | from machina.core.periodic_worker import PeriodicWorker
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/machina-0.1-py3.10.egg/machina/core/periodic_worker.py", line 8, in<module>
machina-similarityanalysis-1 | from rocketry import Rocketry
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/rocketry/__init__.py", line 1, in<module>
machina-similarityanalysis-1 | from .session import Session
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/rocketry/session.py", line 18, in<module>
machina-similarityanalysis-1 exited with code 1
machina-similarityanalysis-1 | from rocketry.log.defaults import create_default_handler
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/rocketry/log/defaults.py", line 1, in<module>
machina-similarityanalysis-1 | from redbird.logging import RepoHandler
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/redbird/__init__.py", line 2, in<module>
machina-similarityanalysis-1 | from .base import BaseRepo, BaseResult
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/redbird/base.py", line 116, in<module>
machina-similarityanalysis-1 | class BaseRepo(ABC, BaseModel):
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/redbird/base.py", line 153, in BaseRepo
machina-similarityanalysis-1 | ordered: bool = Field(default=False, const=True)
machina-similarityanalysis-1 | File "/usr/local/lib/python3.10/dist-packages/pydantic/fields.py", line 764, in Field
machina-similarityanalysis-1 | raise PydanticUserError('`const` is removed, use `Literal` instead', code='removed-kwargs')
machina-similarityanalysis-1 | pydantic.errors.PydanticUserError: `const` is removed, use `Literal` instead
The text was updated successfully, but these errors were encountered:
ehrenb
added a commit
to ehrenb/machina-base
that referenced
this issue
Jan 16, 2024
The below occurs upon startup of the system. This is an issue with pydantic2 and rocketry, see Miksus/rocketry#225 and Miksus/rocketry#210 . For now, I manually downgraded pydantic to 1.10.13.
The text was updated successfully, but these errors were encountered: