Giter VIP home page Giter VIP logo

Comments (6)

ImSingee avatar ImSingee commented on July 21, 2024

这是 Quart 的问题,换 3.7 环境可解

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

这是 Quart 的问题,换 3.7 环境可解

我昨天跟他讨论了,这个问题,是 Quart 0.6.x 和 Hypercorn 0.4.x 一起用出现的问题,主要问题在于 Hypercorn。实际上因为 aiocqhttp 现在依赖 Quart~=0.6,导致即使是 Python 3.7 也会安装上述两个版本的组合,仍然会有问题。

可以考虑 aiocqhttp 的依赖仍然改成 >=0.6,这样 Python 3.7 会安装 0.7.x,而 Python 3.6 会安装 0.6.x,也就只有一部分人会遇到这个问题了

from nonebot.

ImSingee avatar ImSingee commented on July 21, 2024

aiocqhttp 的依赖仍然改成 >=0.6 的话我遇到的问题是 Python3.6 会直接安装 0.7 然后报需要 Python>3.7 然后安装不了

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

我刚刚测试了一下,即使是 Python 3.7 安装了 Quart 0.7.x,最新版,WebSocket 访问日志也已经修改了,我问了 Hypercorn 作者,他说:

It still access logs, however the Websocket access log has changed such that it logs only after the connection has closed (is complete). This means the timing part represents the duration of the connection. I'm open to suggestions on Websocket access logs...

现在的行为全部是 ws 连接断开后才会有日志,这就比较尴尬

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

目前 Hypercorn 作者 已经修改了 WebSocket 日志行为,应该会在下个版本发布,等他发布这个 issue 应该就可以 close 了

from nonebot.

stdrc avatar stdrc commented on July 21, 2024

OK,最终确定一下:

ASGI Framework Lifespan error, continuing without Lifespan support

这个错误不存在问题,可以忽略,而且事实上只是一个 warning。

当时的问题主要在于 WebSocket 连接后没有日志(实际上会在断开后才打日志),我去给作者提了 issue 之后,他已经把日志移到建立连接时了,目前升级 Hypercorn 到 0.5 版本就一切正常了。Lifespan error 仍然存在,但最初的问题已经解决了。

from nonebot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.