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
Apparently, the update from pydantic V1 to pydantic V2 contained major (breaking) changes which results in being not able to start any athena module
To Reproduce
Select any athena module
Delete the poetry.lock file
Execute poetry install
Try to start the module
Expected behavior
Athena should start without any errors
Screenshots
No response
What module is this bug related to?
Other (specify in "Additional context")
What browsers are you seeing the problem on?
No response
Operating System
Windows 11
Additional context
Bug is related to all modules
Relevant log output
C:\Users\Marlon\Desktop\Athena\venv\Lib\site-packages\pydantic\_internal\_config.py:334: UserWarning: Valid config keys have changed in V2:
*'allow_population_by_field_name' has been renamed to 'populate_by_name'
warnings.warn(message, UserWarning)
C:\Users\Marlon\Desktop\Athena\venv\Lib\site-packages\pydantic\_internal\_config.py:334: UserWarning: Valid config keys have changed in V2:
*'orm_mode' has been renamed to 'from_attributes'
warnings.warn(message, UserWarning)
C:\Users\Marlon\Desktop\Athena\venv\Lib\site-packages\pydantic\_internal\_config.py:334: UserWarning: Valid config keys have changed in V2:
*'allow_population_by_field_name' has been renamed to 'populate_by_name'*'orm_mode' has been renamed to 'from_attributes'
warnings.warn(message, UserWarning)
Traceback (most recent call last):
File "C:\Users\Marlon\Desktop\Athena\module_programming_apted\module_programming_apted\__main__.py", line 7, in<module>
from module_programming_apted.convert_code_to_ast.get_feedback_methods import get_feedback_method
File "C:\Users\Marlon\Desktop\Athena\module_programming_apted\module_programming_apted\convert_code_to_ast\get_feedback_methods.py", line 3, in<module>
from athena.programming import Submission, Feedback
File "C:\Users\Marlon\Desktop\Athena\athena\athena\__init__.py", line 5, in<module>
from .app import app
File "C:\Users\Marlon\Desktop\Athena\athena\athena\app.py", line 15, in<module>
from .module_config import get_module_config
File "C:\Users\Marlon\Desktop\Athena\athena\athena\module_config.py", line 9, in<module>
from .schemas.exercise_type import ExerciseType
File "C:\Users\Marlon\Desktop\Athena\athena\athena\schemas\__init__.py", line 11, in<module>
from .programming_exercise import ProgrammingExercise
File "C:\Users\Marlon\Desktop\Athena\athena\athena\schemas\programming_exercise.py", line 10, in<module>
class ProgrammingExercise(Exercise):
File "C:\Users\Marlon\Desktop\Athena\athena\athena\schemas\programming_exercise.py", line 13, in ProgrammingExercise
type: ExerciseType = Field(ExerciseType.programming, const=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Marlon\Desktop\Athena\venv\Lib\site-packages\pydantic\fields.py", line 766, in Field
raise PydanticUserError('`const` is removed, use `Literal` instead', code='removed-kwargs')
pydantic.errors.PydanticUserError: `const` is removed, use `Literal` instead
The text was updated successfully, but these errors were encountered:
Please describe the bug
Apparently, the update from pydantic V1 to pydantic V2 contained major (breaking) changes which results in being not able to start any athena module
To Reproduce
poetry install
Expected behavior
Athena should start without any errors
Screenshots
No response
What module is this bug related to?
Other (specify in "Additional context")
What browsers are you seeing the problem on?
No response
Operating System
Windows 11
Additional context
Bug is related to all modules
Relevant log output
The text was updated successfully, but these errors were encountered: