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
PydanticImportError: pydantic.utils:ValueItems has been removed in V2. occurred while importing shioaji.
Error details
---------------------------------------------------------------------------
PydanticImportError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import shioaji as sj
2 from dotenv import load_dotenv
3 import os
File [...\.venv\lib\site-packages\shioaji\__init__.py:29](file:///.../.venv/lib/site-packages/shioaji/__init__.py:29)
26 inject_libpath()
27 del inject_libpath
---> 29 from shioaji.shioaji import Shioaji
30 from shioaji.constant import Exchange
31 from shioaji.account import Account
File [...\.venv\lib\site-packages\shioaji\shioaji.py:6](file:///.../.venv/lib/site-packages/shioaji/shioaji.py:6)
3 import datetime as dt
4 from sentry_sdk import configure_scope
----> 6 from shioaji.account import Account, AccountType, FutureAccount, StockAccount
7 from shioaji.backend.solace.utils import (
8 get_contracts_filename,
9 load_contracts_file,
10 mockca,
11 new_contracts,
12 )
13 from shioaji.backend.utils import create_solace
...
287 if name in globals:
PydanticImportError: `pydantic.utils:ValueItems` has been removed in V2.
For further information visit https://errors.pydantic.dev/2.0.2/u/import-error
The text was updated successfully, but these errors were encountered:
pydantic in the requires-dist of shioaji must have version requires or this error will occur when every new installation.
(the latest version of pydantic is 2.0.2. error will occur if pydantic >= v2)
Shioaji version
1.1.6
Python version
3.10.2
Issue
PydanticImportError:
pydantic.utils:ValueItems
has been removed in V2. occurred while importing shioaji.Error details
The text was updated successfully, but these errors were encountered: