Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Pyppeteer代码在启动chrome后冻结_Python_Windows_Pyppeteer - Fatal编程技术网

Python Pyppeteer代码在启动chrome后冻结

Python Pyppeteer代码在启动chrome后冻结,python,windows,pyppeteer,Python,Windows,Pyppeteer,这是一个使用pyppeteer的Python上的web scraper 代码部分: async def process(query): print('START PROCESS') async with aiofiles.open(os.path.join(BASEDIR, config['PARSER']['Proxies']), mode='r', encoding="utf-8") as f: proxies = await f.readlines() aw

这是一个使用pyppeteer的Python上的web scraper 代码部分:

async def process(query):


  print('START PROCESS')


  async with aiofiles.open(os.path.join(BASEDIR, config['PARSER']['Proxies']), mode='r', encoding="utf-8") as f:
    proxies = await f.readlines()
    await f.close()

  proxies = [x.strip() for x in proxies if x != '']
  proxy = random.choice(proxies)


  print('TEST')
  browser = await launch(headless=False, args=['--no-sandbox', '--proxy-server='+proxy, ])
  print(4)
  #Some code

异步使用pyppeteer运行一些chrome进程。它在Linux(Debian)上工作得很好,但在Windows上根本不工作。浏览器启动,但即使打印(4)也不运行。启动浏览器后代码冻结,不会出现任何错误。我能用它做什么?

你试过更新Chrome吗?也许是这个版本。另外,您在Windows上使用过哪些浏览器?我使用Pypetteer中包含的chromium。版本是69。隐马尔可夫模型。。。我将尝试使用安装在计算机上的Chrome(版本80)不,安装了Chrome它就不工作了too@Qwentor你找到解决这个问题的办法了吗?我也遇到了同样的错误。你试过更新Chrome吗?也许是这个版本。另外,您在Windows上使用过哪些浏览器?我使用Pypetteer中包含的chromium。版本是69。隐马尔可夫模型。。。我将尝试使用安装在计算机上的Chrome(版本80)不,安装了Chrome它就不工作了too@Qwentor你找到解决这个问题的办法了吗?我也犯了同样的错误。