python-mocket icon indicating copy to clipboard operation
python-mocket copied to clipboard

Testing Python 3.11

Open mindflayer opened this issue 2 years ago • 2 comments

mindflayer avatar May 21 '22 21:05 mindflayer

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Jul 15 '22 07:07 sonarqubecloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Aug 17 '22 08:08 sonarqubecloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Nov 12 '22 10:11 sonarqubecloud[bot]

Hi there,

aiming to add support for Python 3.11 to the Terkin Datalogger, we had to downgrade to mocket<3.9 (see https://github.com/hiveeyes/terkin-datalogger/commit/3b8a94bb0), in order to make it work on Python 3.11.

It looks like http-parser is not ready for Python 3.11 yet, see https://github.com/benoitc/http-parser/pull/95.

With kind regards, Andreas.

amotl avatar Nov 26 '22 18:11 amotl

Hi Andreas, I'm aware of it and keeping an eye on their repo. There is already an issue with the fix but it hasn't been merged yet. I was planning to write to the author in case it won't be taken care of soon.

Regards, Giorgio

On Sat, 26 Nov 2022, 18:26 Andreas Motl, @.***> wrote:

Hi there,

aiming to add support for Python 3.11 to the Terkin Datalogger https://github.com/hiveeyes/terkin-datalogger, we had to downgrade to mocket<3.9 (see @.*** https://github.com/hiveeyes/terkin-datalogger/commit/3b8a94bb0), in order to make it work on Python 3.11.

It looks like http-parser is not ready for Python 3.11 yet.

With kind regards, Andreas.

— Reply to this email directly, view it on GitHub https://github.com/mindflayer/python-mocket/pull/181#issuecomment-1328093094, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEAXXILSDXTEFOPVER5FRTWKJI4RANCNFSM5WSLLATQ . You are receiving this because you authored the thread.Message ID: @.***>

mindflayer avatar Nov 26 '22 19:11 mindflayer

Thank you! I've added a comment to https://github.com/benoitc/http-parser/pull/95, and exercised the upgrade to Python 3.11 and mocket-3.9.x on behalf of https://github.com/hiveeyes/terkin-datalogger/pull/116 ^1.

amotl avatar Nov 26 '22 22:11 amotl

Hi again,

[...] we had to downgrade to mocket<3.9 (see https://github.com/hiveeyes/terkin-datalogger/commit/3b8a94bb0), in order to make it work on Python 3.11.

With https://github.com/hiveeyes/terkin-datalogger/commit/ffcffbaa26, the test suite now uses a modern version of Mocket for all Python versions <3.11, while still resorting to mocket<3.9 on Python 3.11.

We know it is not an optimal solution, and this release probably lacks many features, but it was enough to satisfy our test suite, and it might help others as well.

With kind regards, Andreas.

amotl avatar Dec 03 '22 23:12 amotl

Hi @amotl, I replaced http-parser with the modern httptools, but some tests are failing on Python 3.11 - nothing to do with the parser, though. I'll do my best to try to tackle those issues and close this PR as soon as possible. Feel free to have a look at them, in case you have some time for it.

mindflayer avatar Dec 12 '22 07:12 mindflayer

Hi @mindflayer,

thanks for sharing those news. I had a look at the exception message aiohttp.client_exceptions.ClientOSError: Cannot write to closing transport, but the code at this place is not trivial, so I could not figure it out.

Maybe those discussions have some hints about that exception?

  • https://github.com/aio-libs/aiohttp/issues/4587
  • https://github.com/aio-libs/aiohttp/pull/4778

With kind regards, Andreas.

amotl avatar Dec 16 '22 20:12 amotl

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.6% 3.6% Duplication

sonarqubecloud[bot] avatar Feb 19 '23 15:02 sonarqubecloud[bot]