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
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/conda/lib/python3.8/site-packages/shioaji/__init__.py", line 29, in <module>
from shioaji.shioaji import Shioaji
File "/opt/conda/lib/python3.8/site-packages/shioaji/shioaji.py", line 6, in <module>
from shioaji.account import Account, AccountType, FutureAccount, StockAccount
File "/opt/conda/lib/python3.8/site-packages/shioaji/account.py", line 3, in <module>
from shioaji.base import BaseModel
File "/opt/conda/lib/python3.8/site-packages/shioaji/base.py", line 3, in <module>
from pydantic import (
File "/opt/conda/lib/python3.8/site-packages/pydantic/__init__.py", line 357, in <module>
_getattr_migration = getattr_migration(__name__)
File "/opt/conda/lib/python3.8/site-packages/pydantic/_migration.py", line 260, in getattr_migration
from .errors import PydanticImportError
File "/opt/conda/lib/python3.8/site-packages/pydantic/errors.py", line 6, in <module>
from typing_extensions import Literal, Self
ImportError: cannot import name 'Self' from 'typing_extensions' (/opt/conda/lib/python3.8/site-packages/typing_extensions.py)
After updating typing_extensions then the import error is gone.
Could we also update the package in the jupyter docker image?
Or is it something wrong with my environment and it's not happened on your side?
Environment:
Jupyter docker image
docker pull sinotrade/shioaji:jupyter
shioaji
Version: 1.2.2
Location: /opt/conda/lib/python3.8/site-packages
I got an error while importing shioaji
After updating typing_extensions then the import error is gone.
Could we also update the package in the jupyter docker image?
Or is it something wrong with my environment and it's not happened on your side?
Thanks!
The text was updated successfully, but these errors were encountered: