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

Trio DeprecationWarning from trio 0.22.0 #470

Closed
provinzkraut opened this issue Sep 28, 2022 · 11 comments
Closed

Trio DeprecationWarning from trio 0.22.0 #470

provinzkraut opened this issue Sep 28, 2022 · 11 comments

Comments

@provinzkraut
Copy link

With anyio 3.6.1 I get this warning:

anyio/_backends/_trio.py:164: TrioDeprecationWarning: trio.MultiError is deprecated since Trio 0.22.0; 
use BaseExceptionGroup (on Python 3.11 and later) or exceptiongroup.BaseExceptionGroup (earlier versions) instead 
(https://github.com/python-trio/trio/issues/2211)
@agronholm
Copy link
Owner

There's been a 9 month process involving switching to PEP 654 exception groups in both projects. Yesterday my PR was accepted and today trio 0.22 was released with that change. AnyIO 4.0 (4.0-dev branch) already uses PEP 654 and should be released within a week or so.

@agronholm agronholm closed this as not planned Won't fix, can't repro, duplicate, stale Sep 28, 2022
@provinzkraut
Copy link
Author

Thanks for the quick response, I'll use the dev branch for now then!

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Dec 25, 2022
https://build.opensuse.org/request/show/1045130
by user mcepl + dimstar_suse
Forwarded request #1045069 from bnavigator

- Update to 0.16.3
    * Allow ws and wss schemes. Allows us to properly support
      websocket upgrade connections. (#625)
    * Forwarding HTTP proxies use a connection-per-remote-host.
      Required by some proxy implementations. (#637)
    * Don't raise RuntimeError when closing a connection pool with
      active connections. Removes some error cases when cancellations
      are used. (#631)
    * Lazy import anyio, so that it's no longer a hard dependancy,
      and isn't imported if unused. (#639)
  - Add httpcore-allow-deprecationwarnings-test.patch
    gh#encode/httpcore#511, gh#agronholm/anyio#470
@drernie
Copy link

drernie commented Feb 24, 2023

AyIO 4.0 (4.0-dev branch) already uses PEP 654 and should be released within a week or so.
22-SEP

Did this ever get released? If not, how can we access it? poetry add git+https://github.com/agronholm/anyio.git downgrades me to 3.6.1.post111 5e0d323

@agronholm
Copy link
Owner

It's not out yet.

@BabakAmini
Copy link

It's not out yet.

So when we'll have the final v4.0? I'm using asks besides trio and facing the same issue.

@smittysmee
Copy link

@agronholm - Any update would be swell. Thank you

@agronholm
Copy link
Owner

I'm currently trying to get the next major releases of typeguard and sqlacodegen out. Once I'm done with that, I can fully focus on AnyIO 4.0. The biggest problem is the asyncio cancellation issue (#374). I tried to tackle that before but mental exhaustion made me context switch to other projects for a while.

@drernie
Copy link

drernie commented Apr 6, 2023

Thanks so much. Can I buy you a coffee or something to help with the exhaustion?

@agronholm
Copy link
Owner

I appreciate the gesture 😊
You should know that I will switch back to working on this project this weekend. Hopefully I can get the cancellation issues sorted out.

@drernie
Copy link

drernie commented Apr 17, 2023

Any update? The coffee offer still stands...

@agronholm
Copy link
Owner

I've resumed work on the project. I'm currently sorting out the TLS test failures on the very latest Python versions (#550). When that's dealt with, I will resume my work on fixing the native cancellation issue (#374). When that is dealt with, then I can start considering a release.

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

No branches or pull requests

5 participants