PaddleCV-SIG / PaddleLabel

飞桨智能标注,让标注快人一步
https://paddlecv-sig.github.io/PaddleLabel/
Apache License 2.0
236 stars 38 forks source link

'coroutine' object is not callable #214

Closed WangShengFeng1 closed 2 months ago

WangShengFeng1 commented 8 months ago

我在安装完启动之后,跳出画面但不能创建数据集,返回终端时看见了这个错误,有没有和我一样的小伙伴?这个错误该怎么解决? ERROR [uvicorn.error] Exception in ASGI application Traceback (most recent call last): File "C:\Users\wang1\anaconda3\envs\paddlelabel\Lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 401, in run_asgi result = await app(self.scope, self.receive, self.send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wang1\anaconda3\envs\paddlelabel\Lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call return await self.app(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\wang1\anaconda3\envs\paddlelabel\Lib\site-packages\uvicorn\middleware\message_logger.py", line 86, in call raise exc from None File "C:\Users\wang1\anaconda3\envs\paddlelabel\Lib\site-packages\uvicorn\middleware\message_logger.py", line 82, in call await self.app(scope, inner_receive, inner_send) File "C:\Users\wang1\anaconda3\envs\paddlelabel\Lib\site-packages\connexion\middleware\main.py", line 501, in call await self.app(scope, receive, send) File "C:\Users\wang1\anaconda3\envs\paddlelabel\Lib\site-packages\starlette\middleware\errors.py", line 181, in call await response(scope, receive, send) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'coroutine' object is not callable

sun-tao commented 7 months ago

请问老哥解决了吗,我也有这个问题

MrLinaaa commented 7 months ago

俺也一样

dlaoy commented 6 months ago

我也发生同样的错误

WangShengFeng1 commented 6 months ago

在点赞多的一个评论里的那个方法有用!

------------------ 原始邮件 ------------------ 发件人: "PaddleCV-SIG/PaddleLabel" @.>; 发送时间: 2024年2月18日(星期天) 中午11:08 @.>; @.**@.>; 主题: Re: [PaddleCV-SIG/PaddleLabel] 'coroutine' object is not callable (Issue #214)

我也发生同样的错误

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dlaoy commented 6 months ago

在点赞多的一个评论里的那个方法有用! ------------------ 原始邮件 ------------------ 发件人: "PaddleCV-SIG/PaddleLabel" @.>; 发送时间: 2024年2月18日(星期天) 中午11:08 @.>; @.**@.>; 主题: Re: [PaddleCV-SIG/PaddleLabel] 'coroutine' object is not callable (Issue #214) 我也发生同样的错误 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

你好,其他的issues没看到有发生TypeError: 'coroutine' object is not callable的情况,也没有解决方案,您是指的哪个评论?

WangShengFeng1 commented 6 months ago

pip install uvicorn==0.14 --no-deps pip install connexion==2.14.1 --no-deps pip install anyio==3.0 --no-deps pip install Werkzeug==2.2.2 --no-deps pip install starlette==0.21.0 --no-deps pip install Flask==2.2.2 --no-deps pip install Flask-Cors==3.0.10 --no-deps pip install a2wsgi==1.8.0 --no-deps pip install alembic==1.12.1 --no-deps pip install a2wsgi uvicorn==0.18.1 我都试了一下,最后成功了,到底是哪是哪个起了作用我也不知道

WangShengFeng1 commented 6 months ago

pip install uvicorn==0.14 --no-deps pip install connexion==2.14.1 --no-deps pip install anyio==3.0 --no-deps pip install Werkzeug==2.2.2 --no-deps pip install starlette==0.21.0 --no-deps pip install Flask==2.2.2 --no-deps pip install Flask-Cors==3.0.10 --no-deps pip install a2wsgi==1.8.0 --no-deps pip install alembic==1.12.1 --no-deps pip install a2wsgi uvicorn==0.18.1 你可以试试,我不知道为什么,到我这么做成功了

------------------ 原始邮件 ------------------ 发件人: "PaddleCV-SIG/PaddleLabel" @.>; 发送时间: 2024年2月18日(星期天) 中午12:12 @.>; @.**@.>; 主题: Re: [PaddleCV-SIG/PaddleLabel] 'coroutine' object is not callable (Issue #214)

在点赞多的一个评论里的那个方法有用! … ------------------ 原始邮件 ------------------ 发件人: "PaddleCV-SIG/PaddleLabel" @.>; 发送时间: 2024年2月18日(星期天) 中午11:08 @.>; @.@.>; 主题: Re: [PaddleCV-SIG/PaddleLabel] 'coroutine' object is not callable (Issue #214) 我也发生同样的错误 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

你好,其他的issues没看到有发生TypeError: 'coroutine' object is not callable的情况,也没有解决方案,您是指的哪个评论?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dlaoy commented 6 months ago

pip install uvicorn==0.14 --no-deps pip install connexion==2.14.1 --no-deps pip install anyio==3.0 --no-deps pip install Werkzeug==2.2.2 --no-deps pip install starlette==0.21.0 --no-deps pip install Flask==2.2.2 --no-deps pip install Flask-Cors==3.0.10 --no-deps pip install a2wsgi==1.8.0 --no-deps pip install alembic==1.12.1 --no-deps pip install a2wsgi uvicorn==0.18.1 你可以试试,我不知道为什么,到我这么做成功了 ------------------ 原始邮件 ------------------ 发件人: "PaddleCV-SIG/PaddleLabel" @.>; 发送时间: 2024年2月18日(星期天) 中午12:12 @.>; @.**@.>; 主题: Re: [PaddleCV-SIG/PaddleLabel] 'coroutine' object is not callable (Issue #214) 在点赞多的一个评论里的那个方法有用! … ------------------ 原始邮件 ------------------ 发件人: "PaddleCV-SIG/PaddleLabel" @.>; 发送时间: 2024年2月18日(星期天) 中午11:08 @.>; @.@.>; 主题: Re: [PaddleCV-SIG/PaddleLabel] 'coroutine' object is not callable (Issue #214) 我也发生同样的错误 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.> 你好,其他的issues没看到有发生TypeError: 'coroutine' object is not callable的情况,也没有解决方案,您是指的哪个评论? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.>

了解明白。 咱这个错误是coroutine版本不匹配,connexion==2.14.1 随后是flask报错AttributeError: module 'flask.json' has no attribute 'JSONEncoder',同样重装对应版本,Flask==2.2.2 最后是werkzeug库报错ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (F:\anaconda3\envs\paddlelabel\Lib\site-packages\werkzeug\urls.py),同样重装对应版本,Werkzeug==2.2.2 装好对应版本就能创建项目了 主要还是版本不匹配啊

dlaoy commented 6 months ago

可以可以👍 我用这个是因为能将数据集导出COCO格式,就不用脚本转换了

xxllp commented 4 months ago

这个官方连个基本的依赖的版本都不写清楚,不就是坑吗

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.