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

Inflect is not compatible with latest pydantic version 1.10.4 #173

Closed
xqiu opened this issue Jan 28, 2023 · 1 comment
Closed

Inflect is not compatible with latest pydantic version 1.10.4 #173

xqiu opened this issue Jan 28, 2023 · 1 comment

Comments

@xqiu
Copy link

xqiu commented Jan 28, 2023

When playing with https://github.com/neonbjb/tortoise-tts, it uses inflect, which causes

(base) C:\software\ai\tortoise-tts>python tortoise/do_tts.py --text "I'm going to speak this" --voice random --preset fast
Traceback (most recent call last):
  File "C:\software\ai\tortoise-tts\tortoise\do_tts.py", line 7, in <module>
    from api import TextToSpeech, MODELS_DIR
  File "C:\software\ai\tortoise-tts\tortoise\api.py", line 24, in <module>
    from tortoise.utils.tokenizer import VoiceBpeTokenizer
  File "C:\Users\xqiu\anaconda3\lib\site-packages\tortoise-2.4.2-py3.9.egg\tortoise\utils\tokenizer.py", line 4, in <module>
    import inflect
  File "C:\Users\xqiu\anaconda3\lib\site-packages\inflect-6.0.2-py3.9.egg\inflect\__init__.py", line 76, in <module>
    from pydantic import Field, validate_arguments
  File "pydantic\__init__.py", line 2, in init pydantic.__init__
  File "pydantic\dataclasses.py", line 46, in init pydantic.dataclasses
    # +---------+-----------------------------------------+
  File "pydantic\main.py", line 121, in init pydantic.main
TypeError: dataclass_transform() got an unexpected keyword argument 'field_specifiers'

related: pydantic/pydantic#4885

Workaround:
I need to do pip install pydantic==1.9.2 to resolve the issue.

@jaraco
Copy link
Owner

jaraco commented Apr 6, 2023

This issue was fixed upstream.

@jaraco jaraco closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2023
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

2 participants