You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
^CTraceback (most recent call last):
File "/root/venv/mochi/bin/mochi", line 9, in
load_entry_point('mochi==0.2.1', 'console_scripts', 'mochi')()
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/core/main.py", line 192, in main
load_file(args.file, global_env)
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/core/main.py", line 49, in load_file
return exec(compile_file(path), env)
File "actor_example.mochi", line 63, in
wait_all()
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/actor/actor.py", line 262, in wait_all
_actor_pool.waitall()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/greenpool.py", line 120, in waitall
self.no_coros_running.wait()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/event.py", line 121, in wait
return hubs.get_hub().switch()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/hub.py", line 294, in switch
return self.greenlet.switch()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/hub.py", line 346, in run
self.wait(sleep_time)
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/poll.py", line 85, in wait
presult = self.do_poll(seconds)
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/epolls.py", line 62, in do_poll
return self.poll.poll(seconds)
KeyboardInterrupt
The text was updated successfully, but these errors were encountered:
Thank you for reporting.
This example program is finished by control-C.
It is as I intended, but it is not good for automated tests.
I will modify this example.
env: Ubuntu 14.04
(mochi)root@172904b170d5:/src/examples# mochi actor_example.mochi
<class 'main.Message'>
main
foo
actor1 (<eventlet.greenthread.GreenThread object at 0x7f34979422a8>,)
bar 2000
foo 1000
foo 1000
bar 2000
Message! mefafsg pvector(['value'])
remote! pvector([pvector([3000])])
remo Message(tag=3000, value=1000)
Unsupported message! pmap({'x': pvector([1, 2, 3])})
Unsupported message! pset([1, pvector([2, 1, 2, 3])])
Unsupported message! pbag([1, pvector([2, 1, 2, 3])])
aaa
Waited 3 mins, control-C gave this
^CTraceback (most recent call last):
File "/root/venv/mochi/bin/mochi", line 9, in
load_entry_point('mochi==0.2.1', 'console_scripts', 'mochi')()
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/core/main.py", line 192, in main
load_file(args.file, global_env)
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/core/main.py", line 49, in load_file
return exec(compile_file(path), env)
File "actor_example.mochi", line 63, in
wait_all()
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/actor/actor.py", line 262, in wait_all
_actor_pool.waitall()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/greenpool.py", line 120, in waitall
self.no_coros_running.wait()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/event.py", line 121, in wait
return hubs.get_hub().switch()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/hub.py", line 294, in switch
return self.greenlet.switch()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/hub.py", line 346, in run
self.wait(sleep_time)
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/poll.py", line 85, in wait
presult = self.do_poll(seconds)
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/epolls.py", line 62, in do_poll
return self.poll.poll(seconds)
KeyboardInterrupt
The text was updated successfully, but these errors were encountered: