[英]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.