vscode-python: Selecting a pipenv environment not working?
- VS Code version: Version 1.24.0-insider (1.24.0-insider) / 8a07c8d935998d1b1153dde0c5b337189d35cea0
- Extension version (available under the Extensions sidebar): 2018.4.0
- OS and version: MacOS 10.13.4
- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.5
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): pipenv
- Relevant/affected Python packages and their versions: n/a
Actual behavior
Inability to select my Python interpreter
Expected behavior
Expected the ability to select my Python interpreter
Steps to reproduce:
Input an interpreter to “Select Python Interpreter”: https://youtu.be/QdZXOEWS7LQ (1min recording)
Logs
Output from Console
under the Developer Tools
panel (toggle Developer Tools on under Help
)
recent call last):
File "/usr/local/bin/pipenv", line 11, in <module>
load_entry_point('pipenv==9.0.3', 'console_scripts', 'pipenv')()
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 676, in main
_verify_python3_env()
File "/usr/local/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
at PipEnvService.<anonymous> (/Users/dfee/.vscode-insiders/extensions/ms-python.python-2018.4.0/out/client/interpreter/locators/services/pipEnvService.js:113:31)
at Generator.next (<anonymous>)
at fulfilled (/Users/dfee/.vscode-insiders/extensions/ms-python.python-2018.4.0/out/client/interpreter/locators/services/pipEnvService.js:15:58)
at <anonymous> (at PipEnvService.<anonymous> (/Users/dfee/.vscode-insiders/extensions/ms-python.python-2018.4.0/out/client/interpreter/locators/services/pipEnvService.js:120:25))
t.log @ /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:267
After re-opening the editor I get the following message:
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (3 by maintainers)
I’m going to close then in favour of the feature request. Thanks for your patience in explaining the issue, @dfee .