You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/11.8.0/libexec/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==11.8.0', 'console_scripts', 'pipenv')()
File "/usr/local/Cellar/pipenv/11.8.0/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/pipenv/11.8.0/libexec/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/local/Cellar/pipenv/11.8.0/libexec/lib/python3.6/site-packages/pipenv/vendor/click/_unicodefun.py", line 118, in _verify_python3_env
'for mitigation steps.' + extra)
RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment. Consult http://click.pocoo.org/python3/for mitigation steps.
This system lists a couple of UTF-8 supporting locales that
you can pick from. The following suitable locales where
discovered: af_ZA.UTF-8, am_ET.UTF-8, be_BY.UTF-8, bg_BG.UTF-8, ca_ES.UTF-8, cs_CZ.UTF-8, da_DK.UTF-8, de_AT.UTF-8, de_CH.UTF-8, de_DE.UTF-8, el_GR.UTF-8, en_AU.UTF-8, en_CA.UTF-8, en_GB.UTF-8, en_IE.UTF-8, en_NZ.UTF-8, en_US.UTF-8, es_ES.UTF-8, et_EE.UTF-8, eu_ES.UTF-8, fi_FI.UTF-8, fr_BE.UTF-8, fr_CA.UTF-8, fr_CH.UTF-8, fr_FR.UTF-8, he_IL.UTF-8, hr_HR.UTF-8, hu_HU.UTF-8, hy_AM.UTF-8, is_IS.UTF-8, it_CH.UTF-8, it_IT.UTF-8, ja_JP.UTF-8, kk_KZ.UTF-8, ko_KR.UTF-8, lt_LT.UTF-8, nl_BE.UTF-8, nl_NL.UTF-8, no_NO.UTF-8, pl_PL.UTF-8, pt_BR.UTF-8, pt_PT.UTF-8, ro_RO.UTF-8, ru_RU.UTF-8, sk_SK.UTF-8, sl_SI.UTF-8, sr_YU.UTF-8, sv_SE.UTF-8, tr_TR.UTF-8, uk_UA.UTF-8, zh_CN.UTF-8, zh_HK.UTF-8, zh_TW.UTF-8
Don Jayamanne (@DonJayamanne) I also searched the solution of this decode error of click but it didn't work out.
Both LC_ALL and LANG have been set to zh_CN.UTF-8.
I wonder why it can't work inside extension but works well in my terminal
Please confirm you have quit and restarted VS Code, we need to ensure it has access to the new environment variables.
One simple approach is to quit all instances of vs code, then launch it from the terminal where you have defined your environment variables using code
Activity
DonJayamanne commentedon Mar 11, 2018
I've tested this at my end and it seems to work.
Please could you provide the following info:
.vscodefolder created (it should get created automatically).vscode/settings.jsonfile?requests_htmldirectory please type the following in the terminal window and let me know what you get:pipenv --venvfrostming commentedon Mar 11, 2018
I deleted
.vscodefolder and restarted. Since I haven't changed interpreter manually, the folder didn't create again.The other question:
DonJayamanne commentedon Mar 11, 2018
What was in the folder?
How did it get created in the first place?
DonJayamanne commentedon Mar 11, 2018
Once in vscode please remember to create/open a python file, this will activate the python extension.
frostming commentedon Mar 11, 2018
Yes, I opened a py file.
The first time I chose the python interpreter so it was written in settings.
brettcannon commentedon Mar 12, 2018
Two things:
Pipfilein your workspace? (E.g. is it at the root folder?)brettcannon commentedon Mar 12, 2018
And thanks for helping us with this! 😃
brettcannon commentedon Mar 12, 2018
And as a third thing, can you do this before you upgrade?
Basically we would like to know if the
pipenv --venvcommand had a non-zero exit code.10 remaining items
DonJayamanne commentedon Mar 15, 2018
FYI here's the error captured:
DonJayamanne commentedon Mar 15, 2018
Frost Ming (@frostming)
echo $LC_ALLecho $LANGfrostming commentedon Mar 16, 2018
Don Jayamanne (@DonJayamanne) I also searched the solution of this decode error of click but it didn't work out.
Both
LC_ALLandLANGhave been set tozh_CN.UTF-8.I wonder why it can't work inside extension but works well in my terminal
Thanks
DonJayamanne commentedon Mar 16, 2018
Please confirm you have quit and restarted VS Code, we need to ensure it has access to the new environment variables.
One simple approach is to
quitall instances of vs code, then launch it from the terminal where you have defined your environment variables usingcodefrostming commentedon Mar 16, 2018
Yeah, after I tried several times, uninstall and reinstall vscode from homebrew.
It is working now! Congrats!
Thanks for all you've done here.
frostming commentedon Mar 18, 2018
Final solution for those who encountered this issue:
Add below line in your
.bash_profileor.zshrcfor example:And restart your Dock by:
The dock will be restarted, and VSCode started from Docker or Finder will read the env rightly.
Work on macOs High Sierra 10.13.3 and Python extension 2018.2.1
devguydavid commentedon Apr 14, 2018
launchctl getenv LANGwasn't returning anything for me, but $LANG is set by the time I get to .bash_profile, so I added this to my .bash_profile:launchctl setenv LC_ALL $LANG