# RuntimeError: asyncio.run() is not available in this Python version

- **ID:** `python/asyncio-runner-not-available`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using asyncio.run() in Python 3.6 or earlier, where it was introduced in Python 3.7.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.6 | active | — | — |
| 3.7 | active | — | — |

## Workarounds

1. **Use asyncio.get_event_loop().run_until_complete() on a new loop** (85% success)
   ```
   loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
loop.run_until_complete(main())
   ```
2. **Upgrade Python to 3.7+** (95% success)
   ```
   python3 --version  # ensure >= 3.7
   ```

## Dead Ends

- **Using asyncio.get_event_loop().run_until_complete() without checking loop status** — If the loop is already running, this may cause 'Event loop is already running' error. (60% fail)
- **Upgrading Python but not updating code** — The error is version-specific; upgrading Python resolves it but code may need adjustments. (30% fail)
