-
Notifications
You must be signed in to change notification settings - Fork 584
Open
Description
- uvloop version: 0.16.0
- Python version: 3.8.10
- Platform: Ubuntu 20.04.3
- Helm version: v3.7.0
- Can you reproduce the bug with
PYTHONASYNCIODEBUGin env?: Yes - Does uvloop behave differently from vanilla asyncio? How?: When calling
helm versionviaasyncio.create_subprocess_exec, vanilla asyncio displays the correct result, while uvloop returns empty stdout.
Steps to reproduce:
Download Helm CLI
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh --version v3.7.0Run the following Python script
import uvloop
async def _async_helm():
proc = await asyncio.create_subprocess_exec('helm', 'version', stdout=asyncio.subprocess.PIPE)
stdout, _ = await proc.communicate()
print(stdout)
asyncio.run(_async_helm())
# Prints b'version.BuildInfo{Version:"v3.7.0", GitCommit:"eeac83883cb4014fe60267ec6373570374ce770b", GitTreeState:"clean", GoVersion:"go1.16.8"}\n'
uvloop.install()
asyncio.run(_async_helm())
# Prints b''Metadata
Metadata
Assignees
Labels
No labels