Skip to content

AttributeError: 'ClassDef' object has no attribute 'type_params' #51

@abus-aikorea

Description

@abus-aikorea

If you encounter the following error while running start.bat,
please, delete the ModelScope-related cache files and restart.

Error:
  File "C:\Voice-Pro\installer_files\env\lib\site-packages\modelscope\utils\ast_utils.py", line 467, in _get_single_file_scan_result
    output = self.astScaner.generate_ast(file)
  File "C:\Voice-Pro\installer_files\env\lib\site-packages\modelscope\utils\ast_utils.py", line 366, in generate_ast
    output = self.scan_import(node, show_offsets=False)
  File "C:\Voice-Pro\installer_files\env\lib\site-packages\modelscope\utils\ast_utils.py", line 165, in scan_import
    local_out = _scan_import(el, type(el).name)
  File "C:\Voice-Pro\installer_files\env\lib\site-packages\modelscope\utils\ast_utils.py", line 134, in _scan_import
    return self.scan_import(
  File "C:\Voice-Pro\installer_files\env\lib\site-packages\modelscope\utils\ast_utils.py", line 152, in scan_import
    attr = getattr(node, field)
AttributeError: 'ClassDef' object has no attribute 'type_params'

Files to delete:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions