简体   繁体   中英

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

I got this error after loading 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'

在此处输入图片说明

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

And I think the last thing I tried was brew cask reinstall snowflake-snowsql

Then you need to run the following to upgrade from v1.2: snowsql -v 1.2.2

Let me know if that helps.

I had the same issue and same error when installing via the .pkg download. In desperation I tried installing via Homebrew Cask and it worked perfectly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM