Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory, pipenv. And (executable-find "pipenv") returns nil #61

Closed
YashKarthik opened this issue Jun 26, 2022 · 1 comment

Comments

@YashKarthik
Copy link

YashKarthik commented Jun 26, 2022

Running pipenv-activate in buffer in pipenv project returns: Searching for program: No such file or directory, pipenv.

I saw #59 and ran (executable-find "pipenv") which return nil.

I ensured the pipenv.el as well as pipenv are installed and that pipenv is on path.

Info:

  • macOS Big Sur
  • DOOM Emacs 28.1
  • python 3.9 a
  • pipenv 2022.6.7

Thanks

@YashKarthik
Copy link
Author

I investigated a bit and found that the pipenv path is not in exec-path.

This is a macOS specific problem where Mac OS does not set the environment the same when you call a program from the global UI or when you call it from a shell. This means that running Emacs from a shell will result in different environment variables being set than when you run it from the finder or dock. This is especially annoying if you set environment variables in .bashrc or similar, as that won't affect the "global" Emacs.

more about this issue: https://emacs.stackexchange.com/questions/550/exec-path-and-path/553#553

A package solves this: https://github.com/purcell/exec-path-from-shell

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant