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

RuntimeError: start() cannot be called before stop() #1

Open
jameszw001 opened this issue Mar 5, 2021 · 1 comment
Open

RuntimeError: start() cannot be called before stop() #1

jameszw001 opened this issue Mar 5, 2021 · 1 comment

Comments

@jameszw001
Copy link

Nice work first of all.

Here is what I am seeing when I refresh the page:


Error on request:
Traceback (most recent call last):
  File "/home/a/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 323, in run_wsgi
    execute(self.server.app)
  File "/home/a/.local/lib/python2.7/site-packages/werkzeug/serving.py", line 314, in execute
    for data in application_iter:
  File "/home/a/.local/lib/python2.7/site-packages/werkzeug/wsgi.py", line 506, in __next__
    return self._next()
  File "/home/a/.local/lib/python2.7/site-packages/werkzeug/wrappers/base_response.py", line 45, in _iter_encoded
    for item in iterable:
  File "/home/a/Downloads/video-stream-with-flask/app.py", line 24, in gen
    profile = pipeline.start(config)
RuntimeError: start() cannot be called before stop()

@marianbrunet
Copy link
Owner

RuntimeError: start() cannot be called before stop(), means that the pipeline was already started, and was not stopped.

  • Try killing the process and trying again.
ps -A | grep python
sudo kill my_process
  • Make sure in the code there are a pipeline start and a pipeline stop.

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

2 participants