# NotImplementedError: Datagram endpoints are not supported on this event loop

- **ID:** `python/asyncio-datagram-endpoint-not-supported`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

create_datagram_endpoint() was called on a ProactorEventLoop (Windows default), which does not support UDP datagrams.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8+ | active | — | — |
| 3.9+ | active | — | — |
| 3.10+ | active | — | — |
| 3.11+ | active | — | — |
| 3.12+ | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   import asyncio, sys
if sys.platform == 'win32':
    asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.run(main())
   ```
2. **** (90% success)
   ```
   import uvloop
uvloop.install()
asyncio.run(main())
   ```

## Dead Ends

- **** — The loop type does not change; retry raises the same error. (95% fail)
- **** — Loses async semantics and does not integrate with the loop's datagram protocol. (70% fail)
