Octapi'compute.py'不工作,dispy,asyncoro,'StopIteration'异常

2024-09-27 23:22:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我现在正努力学习这个教程

https://projects.raspberrypi.org/en/projects/build-an-octapi/

我现在是here,但是当我尝试运行compute.py时,我得到以下错误

2019-05-20 02:52:52 asyncoro - version 4.5.6 with epoll I/O notifier
2019-05-20 02:52:52 dispy - dispy client version: 4.7.1
2019-05-20 02:52:52 asyncoro - uncaught exception in ~port_bound/1984763400:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 2341, in wait
    raise StopIteration(True)
StopIteration: True

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 3750, in _schedule
    retval = coro._generator.throw(*exc)
  File "/usr/local/lib/python3.7/site-packages/dispy/__init__.py", line 734, in port_bound
    yield port_bound_event.wait()
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 3752, in _schedule
    retval = coro._generator.send(coro._value)
RuntimeError: generator raised StopIteration

2019-05-20 02:52:52 asyncoro - uncaught exception in ~tcp_server/1972775640:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 2341, in wait
    raise StopIteration(True)
StopIteration: True

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 3750, in _schedule
    retval = coro._generator.throw(*exc)
  File "/usr/local/lib/python3.7/site-packages/dispy/__init__.py", line 853, in tcp_server
    yield port_bound_event.wait()
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 3752, in _schedule
    retval = coro._generator.send(coro._value)
RuntimeError: generator raised StopIteration

2019-05-20 02:52:52 dispy - Storing fault recovery information in "_dispy_20190520025252"
2019-05-20 02:52:52 asyncoro - uncaught exception in ~_schedule_jobs/1972831400:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 2356, in wait
    raise StopIteration(True)
StopIteration: True

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 3750, in _schedule
    retval = coro._generator.throw(*exc)
  File "/usr/local/lib/python3.7/site-packages/dispy/__init__.py", line 1794, in _schedule_jobs
    yield self._sched_event.wait()
  File "/usr/local/lib/python3.7/site-packages/asyncoro/__init__.py", line 3752, in _schedule
    retval = coro._generator.send(coro._value)
RuntimeError: generator raised StopIteration

我在python3上运行这个程序。如果有人能帮我破译这些错误,非常感谢


Tags: inpyinitlibpackagesusrlocalline

热门问题