‘Config‘ object has no attribute ‘check_sync_info‘

文章讲述了在更新PaddleSeg到2.9.0版本后遇到的Config对象缺少check_sync_info属性错误,解决方案是将PaddleSeg降级到2.7.0版本。作者提醒读者,对于不影响运行的错误可以暂时忽略,强调版本兼容性的重要性。

'Config' object has no attribute 'check_sync_info'

错误在于把paddleseg版本升级造成不匹配

将paddleseg从2.9.0变成2.7.0就可以完成

代码:pip uninstall paddleseg

           pip install paddleseg==2.7.0

另注:只要不影响运行有些报错是可以忽视的  不要想着升级  版本不兼容真的坑死  

Traceback (most recent call last): File "D:\Users\15296\Desktop\myobject\manage.py", line 22, in <module> main() File "D:\Users\15296\Desktop\myobject\manage.py", line 11, in main from django.core.management import execute_from_command_line File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 16, in <module> from django.apps import apps File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\__init__.py", line 1, in <module> from .config import AppConfig File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\config.py", line 13, in <module> class AppConfig: File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\config.py", line 62, in AppConfig def default_auto_field(self): File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\functional.py", line 27, in __init__ from django.utils.deprecation import RemovedInDjango50Warning File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\deprecation.py", line 4, in <module> from asgiref.sync import iscoroutinefunction, markcoroutinefunction, sync_to_async File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\asgiref\sync.py", line 27, in <module> from .current_thread_executor import CurrentThreadExecutor File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\asgiref\current_thread_executor.py", line 10, in <module> from typing_extensions import ParamSpec File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\typing_extensions.py", line 490, in <module> class _SpecialGenericAlias(typing._SpecialGenericAlias, _root=True): AttributeError: module 'typing' has no attribute '_SpecialGenericAlias'
08-03
Traceback (most recent call last): File "D:\Users\15296\Desktop\myobject\manage.py", line 22, in <module> main() File "D:\Users\15296\Desktop\myobject\manage.py", line 11, in main from django.core.management import execute_from_command_line File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\core\management\__init__.py", line 16, in <module> from django.apps import apps File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\__init__.py", line 1, in <module> from .config import AppConfig File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\config.py", line 13, in <module> class AppConfig: File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\apps\config.py", line 62, in AppConfig def default_auto_field(self): File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\functional.py", line 27, in __init__ from django.utils.deprecation import RemovedInDjango50Warning File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\django\utils\deprecation.py", line 4, in <module> from asgiref.sync import iscoroutinefunction, markcoroutinefunction, sync_to_async File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\asgiref\sync.py", line 27, in <module> from .current_thread_executor import CurrentThreadExecutor File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\asgiref\current_thread_executor.py", line 10, in <module> from typing_extensions import ParamSpec File "C:\Users\15296\AppData\Local\Programs\Python\Python39\lib\site-packages\typing_extensions.py", line 490, in <module> class _SpecialGenericAlias(typing._SpecialGenericAlias, _root=True): AttributeError: module 'typing' has no attribute '_SpecialGenericAlias'怎么解决
08-03
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值