" modelscope版本 $pip list | grep ""model""
modelscope 1.14.0 , 这个要怎么解决?
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/init.py"", line 4, in
from modelscope.utils.import_utils import LazyImportModule
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/init.py"", line 1, in
from .hub import create_model_if_not_exist, read_config
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/hub.py"", line 12, in
from modelscope.utils.config import Config
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/config.py"", line 22, in
from modelscope.utils.import_utils import import_modules_from_file
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/import_utils.py"", line 380, in
class LazyImportModule(ModuleType):
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/import_utils.py"", line 383, in LazyImportModule
AST_INDEX = load_index()
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/ast_utils.py"", line 722, in load_index
_update_index(index, files_mtime)
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/ast_utils.py"", line 638, in _update_index
updated_index = file_scanner.get_files_scan_results(updated_files)
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/ast_utils.py"", line 532, in get_files_scan_results
decorator_list, import_list = self._get_single_file_scan_result(
File ""/home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/ast_utils.py"", line 469, in _get_single_file_scan_result
raise Exception(
Exception: During ast indexing the file /home/admin/miniconda3/lib/python3.9/site-packages/modelscope/models/nlp/ponet/document_segmentation.py, a related error excepted in the file /home/admin/miniconda3/lib/python3.9/site-packages/modelscope/utils/ast_utils.py at line: 151: ""attr = getattr(node, field)"" with error msg: ""AttributeError: 'ClassDef' object has no attribute 'type_params'"", please double check the origin file /home/admin/miniconda3/lib/python3.9/site-packages/modelscope/models/nlp/ponet/document_segmentation.py to see whether the file is correctly edited.
(base) "
ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352