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

Plumbum failing when run with Flask #66

Closed
H1D opened this issue May 26, 2013 · 2 comments
Closed

Plumbum failing when run with Flask #66

H1D opened this issue May 26, 2013 · 2 comments
Labels

Comments

@H1D
Copy link

H1D commented May 26, 2013

Don't know who to blame but plumbum 1.1.0 fails to run in trivial combination with Flask 0.9 while plumbum 1.0.1 works well. Here is code to reproduce issue.
And here is output:

>python index.py 
 * Running on http://127.0.0.1:5000/
 * Restarting with reloader
Traceback (most recent call last):
  File "index.py", line 12, in <module>
    app.run()
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/flask/app.py", line 739, in run
    run_simple(host, port, self, **options)
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/werkzeug/serving.py", line 615, in run_simple
    run_with_reloader(inner, extra_files, reloader_interval)
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/werkzeug/serving.py", line 533, in run_with_reloader
    reloader_loop(extra_files, interval)
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/werkzeug/serving.py", line 439, in _reloader_stat_loop
    for filename in chain(_iter_module_files(), extra_files or ()):
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/werkzeug/serving.py", line 413, in _iter_module_files
    filename = getattr(module, '__file__', None)
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/plumbum/local_machine.py", line 537, in __getitem__
    return LocalCommand(self.which(cmd))
  File "/home/user/pyenv/fplu/local/lib/python2.7/site-packages/plumbum/local_machine.py", line 508, in which
    raise CommandNotFound(progname, list(cls.env.path))
plumbum.commands.CommandNotFound: ('__file__', [<LocalPath /home/user/pyenv/fplu/bin>, <LocalPath /home/user/.pythonbrew/bin>, <LocalPath /home/user/.pythonbrew/bin>, <LocalPath /usr/local/bin>, <LocalPath /usr/bin>, <LocalPath /bin>, <LocalPath /usr/games>])
@tomerfiliba
Copy link
Owner

i think it's this issue has been solved. can you try running it with the latest master?
(you can use pip install -e [email protected]:tomerfiliba/plumbum.git if i'm not mistaken)

tomerfiliba added a commit that referenced this issue May 26, 2013
@H1D
Copy link
Author

H1D commented May 27, 2013

cool, works fine now

@H1D H1D closed this as completed May 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants