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

cannot import name 'ForwardRef' from 'pydantic.typing' #117

Open
weixiyi opened this issue Aug 3, 2023 · 0 comments
Open

cannot import name 'ForwardRef' from 'pydantic.typing' #117

weixiyi opened this issue Aug 3, 2023 · 0 comments

Comments

@weixiyi
Copy link

weixiyi commented Aug 3, 2023

环境

python 3.10.6
Apitable 1.3.1
pydantic 2.1.1

测试代码:

from apitable import Apitable

apitable = Apitable("your api_token")

异常信息:

Traceback (most recent call last):
  File "E:\Desktop\test.py", line 1, in <module>
    from apitable import Apitable
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\__init__.py", line 1, in <module>
    from .apitable import Apitable
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\apitable.py", line 4, in <module>
    from .datasheet import Datasheet
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\datasheet\__init__.py", line 1, in <module>
    from .datasheet import *
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\datasheet\datasheet.py", line 11, in <module>
    from apitable.datasheet.field_manager import FieldManager
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\datasheet\field_manager.py", line 2, in <module>
    from apitable.types.field import MetaField
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\types\__init__.py", line 2, in <module>
    from .field import *
  File "D:\ProgramFiles\python\Python310\lib\site-packages\apitable\types\field.py", line 5, in <module>
    from pydantic.typing import ForwardRef
ImportError: cannot import name 'ForwardRef' from 'pydantic.typing' 
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