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.

Log the user's environment when the attempt to execute pipenv returns ENOENT

See original GitHub issue

Environment data

  • VS Code version: 1.21.1
  • Extension version (available under the Extensions sidebar): 2018.3.1
  • OS and version: Solus 3.999 (Linux)
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.4
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): pipenv

Actual behavior

Getting a warning saying pipenv is not on path.

Workspace contains pipfile but attempt to run 'pipenv --venv' failed with Error: spawn pipenv ENOENT. Make sure pipenv is on the PATH.
which pipenv

$HOME/.local/bin/pipenv

pipenv installed using pip3 install pipenv --user

Expected behavior

Don’t show a warning because it it clearly on my PATH

Steps to reproduce:

  1. pip3 install pipenv --user
  2. export PATH=$PATH:$HOME/.local/bin

Logs

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

No output shown

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

No output shown

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:46 (13 by maintainers)

github_iconTop GitHub Comments

3reactions
DonJayamannecommented, May 4, 2018

Installing the release version of the extension should work. We released a new version yesterday.

2reactions
xhanrotcommented, Apr 16, 2018

Having exactly the same issue here. VSCode Windows 1.22.2 x64, Shell 1.7.12 Message : “Workspace contains pipfile but attempt to run ‘pipenv --venv’ failed with Error: spawn pipenv ENOENT. Make sure pipenv is on the PATH.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Encountered Pipenv Problems - Read the Docs
Run the following command: pipenv lock --clear. and try again. If this does not work, try manually deleting the whole cache directory.
Read more >
VSCode cannot find pipenv: spawn pipenv ENOENT
Workspace contains pipfile but attempt to run 'pipenv --venv' failed with 'spawn pipenv ENOENT'. Make sure pipenv is on the PATH.
Read more >
Common Pipenv Errors
The command pipenv install first attempts to build a virtual environment from the Pipfile. lock. If the Pipfile. lock is unavailable, Pipenv ......
Read more >
Pipenv: A Guide to the New Python Packaging Tool
Pipenv is a packaging tool for Python that solves some common problems associated with the typical workflow using pip, virtualenv, and the good...
Read more >
Configure a Pipenv environment | IntelliJ IDEA ...
Install Pipenv. Run the following command to ensure you have pip installed in your system: $ ...
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