Reference:
錯誤訊息:
Traceback (most recent call last):
File "C:\py\py_Server.py", line 27, in <module>
from Etrigan import Etrigan, Etrigan_parser, Etrigan_check, Etrigan_job
File "C:\py\Etrigan.py", line 12, in <module>
from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections'
File "C:\py\py_Server.py", line 27, in <module>
from Etrigan import Etrigan, Etrigan_parser, Etrigan_check, Etrigan_job
File "C:\py\Etrigan.py", line 12, in <module>
from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections'
解法:
修改 C:\py\Etrigan.py 內容
原本
from collections import Sequence
改為
from collections.abc import Sequence