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

ERROR WHEN CONVERTING #1

Closed
PeraltaEspectre opened this issue Aug 17, 2023 · 2 comments · Fixed by #2
Closed

ERROR WHEN CONVERTING #1

PeraltaEspectre opened this issue Aug 17, 2023 · 2 comments · Fixed by #2
Assignees

Comments

@PeraltaEspectre
Copy link

I've tried using both on Windows, Linux and even Termux and it's not working anymore. On a cell phone that I already had installed since January it is working normally, but the new installations are giving an error



ERROR

tgradish convert -i ~/000.mp4
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Scripts\tgradish.exe_main
.py", line 4, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish_init
.py", line 9, in
from .converter import CmdConfig, convert_video
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish\converter.py", line 7, in
from .config_model import CmdConfig, CmdParams, ArgsPlaceholder
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish\config_model.py", line 77, in
class EnumFlag(CmdFlag):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish\config_model.py", line 81, in EnumFlag
@pydantic.root_validator
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\deprecated\class_validators.py", line 222, in root_validator
return root_validator()(*__args) # type: ignore
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\deprecated\class_validators.py", line 228, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

For further information visit https://errors.pydantic.dev/2.2/u/root-validator-pre-skip



tgradish convert -i 000.mp4
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Scripts\tgradish.exe_main
.py", line 4, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish_init
.py", line 9, in
from .converter import CmdConfig, convert_video
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish\converter.py", line 7, in
from .config_model import CmdConfig, CmdParams, ArgsPlaceholder
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish\config_model.py", line 77, in
class EnumFlag(CmdFlag):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\tgradish\config_model.py", line 81, in EnumFlag
@pydantic.root_validator
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\deprecated\class_validators.py", line 222, in root_validator
return root_validator()(*__args) # type: ignore
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\deprecated\class_validators.py", line 228, in root_validator
raise PydanticUserError(
pydantic.errors.PydanticUserError: If you use @root_validator with pre=False (the default) you MUST specify skip_on_failure=True. Note that @root_validator is deprecated and should be replaced with @model_validator.

For further information visit https://errors.pydantic.dev/2.2/u/root-validator-pre-skip

@sliva0
Copy link
Owner

sliva0 commented Aug 17, 2023

Thanks for reporting the issue.

Temporary fix:

pip install pydantic==1.10.2

I already got reports about this issue, basically there are incorrect comparing operators in the requirements.txt.

@PeraltaEspectre
Copy link
Author

Thank you for your attention, it works perfectly now... thank you very much

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

Successfully merging a pull request may close this issue.

2 participants