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

Shioaji docker 最新版本跑起來出現錯誤 ImportError: cannot import name ‘Self‘ from ‘typing_extensions‘ #159

Open
lunchboxwu opened this issue Jan 1, 2024 · 0 comments

Comments

@lunchboxwu
Copy link

lunchboxwu commented Jan 1, 2024

跑 Shioaji docker image 最新版本,無法 import shioaji,會出現以下錯誤訊息

ImportError: cannot import name ‘Self‘ from ‘typing_extensions‘

查詢了資料,原因是 Shioaji docker image 最新版本中的 Python 版本較舊所導致 (Python 3.8)
需要更新 typing-extensions 套件,才能夠正常 import shioaji

以 pip 更新 typing-extensions 套件

pip install typing-extensions --upgrade

之後就能正常執行 import shioaji

建議在 Docker image 要加上上述 typing-extensions 套件的升級,或是將 Python 版本更新為 3.11

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