-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
Run-time failure on FreeBSD: NotImplementedError: unsupported platform #3087
Comments
|
When I run it separately, |
Yeah, because eventlet patches out select.kqueue. If you import trio first things should work... we should probably make the error message better. |
It shouldn't fail like this. This failure is very obscure. I accidentally caught this while testing wandb after having other things installed by something else. |
Would this as an error message work better?: "unsupported platform or the IO primitives trio relies on are patched out" if either eventlet or gevent are detected in sys.modules? |
I guess this error message is okay. The real problem seems to lie in the eventlet package. |
This is because eventlet does some nasty monkeypatching stuff and replaces signal handlers with its own |
When both wandb and eventlet packages are installed 'import wandb' fails in the trio code:
The conditional in this line:
always evaluates to False because
TYPE_CHECKING
is always False at run-time.Otherwise
hasattr(select, "kqueue")
evaluates to True.Version: 0.26.2
Python-3.11
FreeBSD 14.1
The text was updated successfully, but these errors were encountered: