Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'coroutine' object is not callable #214

Closed
WangShengFeng1 opened this issue Dec 18, 2023 · 11 comments
Closed

'coroutine' object is not callable #214

WangShengFeng1 opened this issue Dec 18, 2023 · 11 comments

Comments

@WangShengFeng1
Copy link

我在安装完启动之后,跳出画面但不能创建数据集,返回终端时看见了这个错误,有没有和我一样的小伙伴?这个错误该怎么解决?
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
Copy link

sun-tao commented Jan 4, 2024

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

@MrLinaaa
Copy link

俺也一样

@dlaoy
Copy link

dlaoy commented Feb 18, 2024

我也发生同样的错误

@WangShengFeng1
Copy link
Author

WangShengFeng1 commented Feb 18, 2024 via email

@dlaoy
Copy link

dlaoy commented Feb 18, 2024

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

------------------ 原始邮件 ------------------ 发件人: "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
Copy link
Author

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
Copy link
Author

WangShengFeng1 commented Feb 18, 2024 via email

@dlaoy
Copy link

dlaoy commented Feb 18, 2024

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
Copy link

dlaoy commented Feb 18, 2024

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

@xxllp
Copy link

xxllp commented Apr 10, 2024

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

Copy link

github-actions bot commented Jun 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants