简体   繁体   English

我无法打开 snowsql,因为它收到类似 ModuleNotFoundError 的错误

[英]I'm unable to open snowsql as it is getting errors like ModuleNotFoundError

I got this error after loading snowsql加载snowsql后出现此错误

Please help请帮忙

File "PyInstaller/loader/rthooks/pyi_rth_pkgres.py", line 11, in File "/Users/Shared/Jenkins/Home/workspace/Snowsql-Mac64/virtualenv_dir/snowsql/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers. enter code here , line 627, in exec_module File "pkg_resources/ init .py", line 86, in ModuleNotFoundError: No module named 'pkg_resources.py2_warn'文件“PyInstaller/loader/rthooks/pyi_rth_pkgres.py”,第11行,文件“/Users/Shared/Jenkins/Home/workspace/Snowsql-Mac64/virtualenv_dir/snowsql/lib/python3.6/site-packages/PyInstaller/ loader/pyimod03_importers. enter code here , line 627, in exec_module File "pkg_resources/ init .py", line 86, in ModuleNotFoundError: No module named 'pkg_resources.py2_warn'

在此处输入图片说明

I had exactly the same issue yesterday and managed to work through it by trying a bunch of different things - only I'm not sure which one made the difference.昨天我遇到了完全相同的问题,并通过尝试一堆不同的东西设法解决了它——只是我不确定是哪一个造成了不同。

See the last suggestion in this post for uninstalling and reinstalling PyInstaller via pip - I did that: Pyinstaller "Failed to execute script pyi_rth_pkgres" and missing packages请参阅这篇文章中关于通过 pip 卸载和重新安装 PyInstaller 的最后一个建议 - 我这样做了: Pyinstaller“无法执行脚本 pyi_rth_pkgres”和缺少软件包

And I think the last thing I tried was brew cask reinstall snowflake-snowsql我认为我尝试的最后一件事是brew cask reinstall snowflake-snowsql

Then you need to run the following to upgrade from v1.2: snowsql -v 1.2.2然后你需要运行以下命令从 v1.2 升级: snowsql -v 1.2.2

Let me know if that helps.如果这有帮助,请告诉我。

Could you please try the Snowsql 1.2.1 or 1.2.0 version and let me know if you are still facing the issue.您能否尝试使用 Snowsql 1.2.1 或 1.2.0 版本,如果您仍然遇到问题,请告诉我。

For AWS Platform Account :对于 AWS 平台账户:

Download the Snowsql 1.2.1 for Linux:下载适用于 Linux 的 Snowsql 1.2.1:

https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.1-linux_x86_64.bash https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.1-linux_x86_64.bash

Download the Snowsql 1.2.1 for MacOS:下载适用于 MacOS 的 Snowsql 1.2.1:

https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/darwin_x86_64/snowsql-1.2.1-darwin_x86_64.pkg https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/darwin_x86_64/snowsql-1.2.1-darwin_x86_64.pkg

Download the Snowsql 1.2.1 for Windows:下载适用于 Windows 的 Snowsql 1.2.1:

https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/windows_x86_64/snowsql-1.2.1-windows_x86_64.msi https://sfc-repo.snowflakecomputing.com/snowsql/bootstrap/1.2/windows_x86_64/snowsql-1.2.1-windows_x86_64.msi

For Azure Platform Account:对于 Azure 平台帐户:

Download the Snowsql 1.2.1 for Linux:下载适用于 Linux 的 Snowsql 1.2.1:

https://sfc-repo.azure.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.2-linux_x86_64.bash https://sfc-repo.azure.snowflakecomputing.com/snowsql/bootstrap/1.2/linux_x86_64/snowsql-1.2.2-linux_x86_64.bash

Download the Snowsql 1.2.1 for MacOS:下载适用于 MacOS 的 Snowsql 1.2.1:

https://sfc-repo.azure.snowflakecomputing.com/snowsql/bootstrap/1.2/darwin_x86_64/snowsql-1.2.1-darwin_x86_64.pkg https://sfc-repo.azure.snowflakecomputing.com/snowsql/bootstrap/1.2/darwin_x86_64/snowsql-1.2.1-darwin_x86_64.pkg

Download the Snowsql 1.2.1 for Windows:下载适用于 Windows 的 Snowsql 1.2.1:

https://sfc-repo.azure.snowflakecomputing.com/snowsql/bootstrap/1.2/windows_x86_64/snowsql-1.2.1-windows_x86_64.msi https://sfc-repo.azure.snowflakecomputing.com/snowsql/bootstrap/1.2/windows_x86_64/snowsql-1.2.1-windows_x86_64.msi

I had the same issue and same error when installing via the .pkg download.通过 .pkg 下载安装时,我遇到了同样的问题和同样的错误。 In desperation I tried installing via Homebrew Cask and it worked perfectly.无奈之下,我尝试通过 Homebrew Cask 进行安装,并且效果很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我收到 ModuleNotFoundError - Why I'm getting ModuleNotFoundError 我收到 ModuleNotFoundError: No module named '<anyproject> '</anyproject> - I'm getting ModuleNotFoundError: No module named '<anyproject>' 需要降级熊猫版本,但出现“ ModuleNotFoundError”错误 - Need to downgrade version of pandas but I'm getting a “ModuleNotFoundError” error 我收到ModuleNotFoundError:Ubuntu 18.04上没有名为_socket的模块 - I'm getting ModuleNotFoundError: No module named _socket on ubuntu 18.04 我正在尝试让BeautifulSoup打开Wikipedia,但是我收到了很多错误 - I am attempting to get BeautifulSoup to open wikipedia, but I'm getting a lot of errors back 我用pyglet键盘出错了 - I'm getting errors with pyglet keyboard 我试图通过pyinstaller制作.exe文件时遇到此错误-“ ModuleNotFoundError:没有名为&#39;acrcloud_extr_tool&#39;的模块” - I'm getting this error when I'm trying to make an .exe file through pyinstaller - “ModuleNotFoundError: No module named 'acrcloud_extr_tool'” 我开始使用 sqlalchemy。 我在处理和粘贴示例代码时遇到操作错误 - I'm getting started with sqlalchemy. I'm getting operational errors while coping and pasting the example code 为什么我会收到 ModuleNotFoundError? - Why am I getting ModuleNotFoundError? 处理很大的语料,我遇到运行时错误 - Processing a corpus so big I'm getting runtime errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM