Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PeriodicWorker rocketry error #40

Closed
ehrenb opened this issue Jan 15, 2024 · 0 comments
Closed

PeriodicWorker rocketry error #40

ehrenb opened this issue Jan 15, 2024 · 0 comments
Milestone

Comments

@ehrenb
Copy link
Owner

ehrenb commented Jan 15, 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.

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
ehrenb added a commit to ehrenb/machina-base that referenced this issue Jan 16, 2024
@ehrenb ehrenb added this to the v1.2 milestone Jan 16, 2024
@ehrenb ehrenb closed this as completed Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant