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.

FileNotFound: 'pew'

See original GitHub issue

When creating new project (== installing first dependency), I’m getting a FileNotFound exception:

$ pipenv install pelican
Creating a virtualenv for this project...
Traceback (most recent call last):
  File "/home/jstanek/.local/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==3.3.1', 'console_scripts', 'pipenv')()
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/pipenv/cli.py", line 704, in install
    ensure_project(three=three, python=python)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/pipenv/cli.py", line 112, in ensure_project
    ensure_virtualenv(three=three, python=python)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/pipenv/cli.py", line 95, in ensure_virtualenv
    do_create_virtualenv(three=three, python=python)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/pipenv/cli.py", line 330, in do_create_virtualenv
    c = delegator.run(cmd, block=False)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/delegator.py", line 215, in run
    c.run(block=block)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/delegator.py", line 120, in run
    s = PopenSpawn(self._popen_args, **self._default_pexpect_kwargs)
  File "/home/jstanek/.local/venvs/pipenv/lib/python3.5/site-packages/pexpect/popen_spawn.py", line 45, in __init__
    self.proc = subprocess.Popen(cmd, **kwargs)
  File "/usr/lib64/python3.5/subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "/usr/lib64/python3.5/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'pew'

Pipenv was installed with pipsi (as per documentation), and this happen on versions 3.3.0, 3.3.1 and latest master commit in the time of writing (7e6affc).

By my estimation, this problem lies in pipsi not installing/linking the pew CLI script.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nateprewittcommented, Feb 2, 2017

I think this should be addressed now with the documentation updates.

0reactions
kennethreitzcommented, Feb 1, 2017

updated installation instructions

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileNotFound: 'pew' · Issue #471 · pypa/pipenv - GitHub
I tried command pew --version on my terminal it outputs. Available commands: add: Add the specified directories to the Python path for the ......
Read more >
FileNotFoundException (Java Platform SE 7 )
public class FileNotFoundException extends IOException. Signals that an attempt to open the file denoted by a specified pathname has failed.
Read more >
python - Pipenv: Command Not Found - Stack Overflow
For Windows, 1. In Gitbash do this and check the location packages. pip list -v and this will give the list of packages...
Read more >
When vinyl starts to look good again | Pew Research Center
Pew Research Center Logo ... long-term investment may start to prefer the steady reassuring crackle of vinyl to a “file not found” message....
Read more >
Church pews at Temple Bible Church, Temple, TX
Juicebox Error: Config XML file not found. QUICK LINKS: Pulpits · Metal Stacking Chairs · Used Pew Listing.
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