use*_*884 4 snowflake-cloud-data-platform snowsql
升级到 macOS Big Sur 后,我的 snowsql 脚本全部失败,并显示“找不到库安全性”
$ snowsql -q "select 1 x"
User: me
Password: XXX
The library Security could not be found
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
Run Code Online (Sandbox Code Playgroud)
这让我想起了我几个月前升级到 macOS Catalina 时使用的涉及 oscrypto 库而不是 openssl 的snowflake-connector-python 库的问题,该问题记录在此处:https : //github.com/snowflakedb /snowflake-connector-python/issues/235
当我今天第一次看到这个问题时,我运行的是早期版本的 SnowSQL (1.1.something),然后我升级到 1.2.9 并得到了同样的错误。我尝试将“-o log_level=DEBUG”添加到 SnowSQL 命令行,但它没有输出任何附加信息。
我遇到了同样的事情,我能找到的唯一帮助是这个线程和一些未解决的 github 问题。
对我来说,我使用 SQLAlchemy 连接到 Snowflake。工作得很好,直到我升级到大苏尔。
在挖掘代码之后,看起来事情是源于oscrypto 1.20我的。它专门调用了我们的_security_cffi.py239 行和周围,他们正在做这样的事情:
Security = find_library('Security')
Run Code Online (Sandbox Code Playgroud)
我去了他们的页面,看到有一个新版本1.21
下载后,代码变成了这样:
security_path = '/System/Library/Frameworks/Security.framework/Security'
Security = ffi.dlopen(security_path)
Run Code Online (Sandbox Code Playgroud)
现在我可以毫无问题地对雪花运行我的查询。
您可以尝试以下步骤吗?
| 归档时间: |
|
| 查看次数: |
1649 次 |
| 最近记录: |