开发者社区 > ModelScope模型即服务 > 正文

modelscope 1.14.0 , 这个要怎么解决?

" 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) "

展开
收起
小小爱吃香菜 2024-07-02 10:11:31 201 0
0 条回答
写回答
取消 提交回答

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!欢迎加入技术交流群:微信公众号:魔搭ModelScope社区,钉钉群号:44837352

热门讨论

热门文章

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载