Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG] ModuleNotFoundError: No module named 'pydantic._internal' #52

Closed
stolenvw opened this issue Jul 7, 2023 · 3 comments
Closed

[BUG] ModuleNotFoundError: No module named 'pydantic._internal' #52

stolenvw opened this issue Jul 7, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@stolenvw
Copy link

stolenvw commented Jul 7, 2023

Getting this with version 0.2.0.post1

from tiktokapipy.async_api import AsyncTikTokAPI

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/user/django-test/.venv/lib/python3.10/site-packages/tiktokapipy/async_api.py", line 14, in <module>
    from tiktokapipy.api import TikTokAPI
  File "/home/user/django-test/.venv/lib/python3.10/site-packages/tiktokapipy/api.py", line 15, in <module>
    from tiktokapipy.models.challenge import Challenge
  File "/home/user/django-test/.venv/lib/python3.10/site-packages/tiktokapipy/models/__init__.py", line 12, in <module>
    from pydantic._internal._model_construction import ModelMetaclass
ModuleNotFoundError: No module named 'pydantic._internal'

pip freeze versions
pydantic==1.10.4 tiktokapipy==0.2.0.post1

@stolenvw stolenvw added the bug Something isn't working label Jul 7, 2023
@Russell-Newton
Copy link
Owner

I forgot to pin it in the requirements, but if you update to pudantic>=2 this will be fixed.

@stolenvw
Copy link
Author

stolenvw commented Jul 7, 2023

need to fix your requirements got this when updating tiktokapipy
Requirement already satisfied: pydantic in ./.venv/lib/python3.10/site-packages (from tiktokapipy==0.2.0.post1->-r requirements.txt (line 11)) (1.10.4)

will try updating it

@stolenvw
Copy link
Author

stolenvw commented Jul 7, 2023

updating pydantic to 2.0.2 did fix the issues, Thank you

@stolenvw stolenvw closed this as completed Jul 7, 2023
Russell-Newton added a commit that referenced this issue Jul 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants