我安装了Homebrew kubernetes-cli 1.12.0和minikube 0.30.0:
import asyncio
import time
from pyppeteer import launch, connect
async def fetch():
browser = await launch(
headless=False,
args=['--no-sandbox']
)
page = await browser.newPage()
cdp = await page.target.createCDPSession()
await cdp.send('Target.createBrowserContext')
time.sleep(5)
await browser.disconnect()
loop = asyncio.get_event_loop()
loop.run_until_complete(fetch())
$ python test02.py
Future exception was never retrieved
future: <Future finished exception=NetworkError('Protocol error Target.sendMessageToTarget: Target closed.',)>
pyppeteer.errors.NetworkError: Protocol error Target.sendMessageToTarget: Target closed.
答案 0 :(得分:4)
parsing kubernetes version: strconv.ParseUint: parsing "": invalid syntax
尝试使用其他版本符号。这是来自Kubernetes documentation的示例:
minikube start --kubernetes-version v1.7.3