gpt4 book ai didi

selenium-chromedriver - 安装 chromedriver 时,URLResourceKey.quarantinePropertiesKey 仅在 OS X 10.10 或更高版本上可用

转载 作者:行者123 更新时间:2023-12-04 07:48:47 27 4
gpt4 key购买 nike

我正在下载chromedriver通过 brew cask install (请参阅 related issue ),当我尝试下载它时,出现以下错误(从命令条目粘贴完整输出):

(env) MacBook:project_dir owner$ brew cask install chromedriver
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
dnstwist grpc pdns uftp
firebase-cli lf pdnsrec wildfly-as
glslviewer libxlsxwriter tile38 zabbix

==> Satisfying dependencies
==> Downloading https://chromedriver.storage.googleapis.com/2.41/chromedriver_ma
######################################################################## 100.0%
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
forKey: URLResourceKey.quarantinePropertiesKey
^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
forKey: URLResourceKey.quarantinePropertiesKey
^
Error: Failed to quarantine /Users/user/Library/Caches/Homebrew/downloads/42621d77ecaa889fa8ca73ac4b2a2228e3c1d11f20d84c6898e7645397d00f1d--chromedriver_mac64.zip. Here's the reason:
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: error: 'quarantinePropertiesKey' is only available on OS X 10.10 or newer
forKey: URLResourceKey.quarantinePropertiesKey
^
/usr/local/Homebrew/Library/Homebrew/cask/lib/hbc/utils/quarantine.swift:29:30: note: add 'if #available' version check
forKey: URLResourceKey.quarantinePropertiesKey
我目前的 macbook 规范如下: enter image description here
有没有人遇到过这个问题?任何帮助,将不胜感激。我正在尝试设置 headless chrome 驱动程序,但失败了。
UPDATE_EDIT:从那以后,我从 Chrome 转移到使用 Firefox headless 更幸运,但这仍然无法解决上述问题。

最佳答案

https://github.com/Homebrew/homebrew-cask/issues/51554#issuecomment-418215466

下面试试。

$ brew cask install --no-quarantine chromedriver

关于selenium-chromedriver - 安装 chromedriver 时,URLResourceKey.quarantinePropertiesKey 仅在 OS X 10.10 或更高版本上可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52142751/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com