DPGen2 submission workflow suddenly encountered an error:cannot import name 'Literal' from 'typing' #283
Unanswered
JiangXiaoMingSan
asked this question in
Q&A
Replies: 2 comments
-
Possible error caused by the latest version of dpdata (0.2.22), I have lowered the version to 0.2.21 to successfully submit the dpgen2 workflow |
Beta Was this translation helpful? Give feedback.
0 replies
-
dpdata removes support of py3.7 since 0.2.22, while the python version in your image is 3.7. Either dpdata<0.2.22 or a new image with python>=3.8 is recommended. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
DPGen2 submission workflow suddenly encountered an error:
Traceback (most recent call last):
File "/argo/staging/script", line 19, in
from dpgen2.flow.dpgen_loop import SchedulerWrapper
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpgen2/flow/init.py", line 1, in
from .dpgen_loop import (
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpgen2/flow/dpgen_loop.py", line 48, in
from dpgen2.exploration.scheduler import (
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpgen2/exploration/scheduler/init.py", line 1, in
from .convergence_check_stage_scheduler import (
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpgen2/exploration/scheduler/convergence_check_stage_scheduler.py", line 21, in
from dpgen2.exploration.selector import (
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpgen2/exploration/selector/init.py", line 1, in
from .conf_filter import (
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpgen2/exploration/selector/conf_filter.py", line 13, in
import dpdata
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpdata/init.py", line 4, in
from .bond_order_system import BondOrderSystem
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpdata/bond_order_system.py", line 11, in
from dpdata.system import Axis, DataType, System
File "/tmp/inputs/artifacts/dflow_python_packages/root/deepmd-kit/lib/python3.12/site-packages/dpdata/system.py", line 10, in
from typing import (
ImportError: cannot import name 'Literal' from 'typing' (/opt/miniconda/lib/python3.7/typing.py)
It seems that there is no version 3.7 of Python in my system. The version obtained by using Python -- version is 3.12.8. I successfully submitted the same task before, but recently I encountered this confusing error when submitting it, and my opt folder does not have miniconda.
Beta Was this translation helpful? Give feedback.
All reactions