question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't autodetect pipenv on 2018.2.1

See original GitHub issue

Environment data

  • VS Code version: 1.21.0: 2018 Feb
  • Extension version (available under the Extensions sidebar): 2018.2.1
  • OS and version: macOs High Sierra 10.13.3
  • Python version: CPython 3.6.4
  • Type of virtual environment used (if applicable): pipenv
  • Relevant/affected Python packages and their versions: pipenv==11.3.2

Actual behavior

When open a project with Pipfile, the interpreter is bare Python 3.6.4

Expected behavior

When open a project with Pipfile, the interpreter will be autodetected as Python3.6.4(pipenv) and uses the virtualenv created by pipenv

Steps to reproduce:

  1. pipenv install to create a virtualenv for requests_html
  2. Open the project in VSCode

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Only linting messages

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

[Extension Host] (node:33660) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ workbench.main.js:sourcemap:257

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:23 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
frostmingcommented, 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.

0reactions
devguydavidcommented, Apr 14, 2018

launchctl getenv LANG wasn’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

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I properly setup pipenv in PyCharm? - Stack Overflow
@AlmogCohen unfortunately PyCharm doesn't use pipenv for installing new modules, even if the project interpreter is linked to pipenv environment ...
Read more >
Configure a Pipenv environment | PyCharm Documentation
If PyCharm cannot autodetect the pipenv executable, specify a path to it. Click OK to complete the task. Once you click OK, PyCharm...
Read more >
Frequently Encountered Pipenv Problems - Read the Docs
This is usually a result of mixing Pipenv with system packages. We strongly recommend installing Pipenv in an isolated environment. Uninstall all existing ......
Read more >
Pipenv: A Guide to the New Python Packaging Tool
txt file), pip doesn't always produce the same environment. At the moment, you can't easily replicate the exact environment you have on your...
Read more >
Common Pipenv Errors and How to Solve Them: Why Won't it ...
Here, you'll learn how to troubleshoot Pipenv installation and locking ... the package does not exist or can't be found for another reason....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found