Bug: cannot import name 'Sequence' from 'collections'
jackxu2011 opened this issue · 2 comments
jackxu2011 commented
Thanks for your error report and we appreciate it a lot.
Checklist
- I have searched related issues but cannot get the expected help.
- The bug has not been fixed in the latest version.
Describe the bug
A clear and concise description of what the bug is.
2023-09-12 11:04:02,069 - modelscope - WARNING - easycv.hooks not imported: cannot import name 'Sequence' from 'collections' (/opt/miniconda3/envs/ai/lib/python3.10/collections/__init__.py)
2023-09-12 11:04:02,079 - modelscope - WARNING - easycv.predictors not imported: cannot import name 'Sequence' from 'collections' (/opt/miniconda3/envs/ai/lib/python3.10/collections/__init__.py)
2023-09-12 11:04:02,088 - modelscope - WARNING - easycv.toolkit.modelscope not imported: cannot import name 'Sequence' from 'collections' (/opt/miniconda3/envs/ai/lib/python3.10/collections/__init__.py)
To Reproduce
- What command or script did you run?
A placeholder for the command.
- Did you make any modifications on the code or config? Did you understand what you have modified?
- What dataset did you use?
Environment
conda python3.10
- Please run python easycv/utils/collect_env.py to collect necessary environment information and paste it here.
- You may add addition that may be helpful for locating the problem, such as
- How you installed PyTorch [e.g., pip, conda, source]
- Other environment variables that may be related (such as $PATH, $LD_LIBRARY_PATH, $PYTHONPATH, etc.)
jackxu2011 commented
使用modelscope报的错,是python版本不兼容
Cathy0908 commented
已修复