RuntimeError at startup
ArchLinux 64 bits, Python 3.8, Sakia 0.50.1
I have this error immediately after starting sakia via commandline:
DEBUG:meta:prepare:Initializing meta database
DEBUG:meta:upgrade_database:Begin upgrade of database...
DEBUG:meta:upgrade_database:End upgrade of database...
DEBUG:network:add_connector:5cnvo connected
DEBUG:network:add_connector:38MEA connected
DEBUG:network:add_connector:8iVdp connected
DEBUG:network:add_connector:38MEA connected
DEBUG:network:add_connector:5cnvo connected
DEBUG:network:add_connector:8iVdp connected
ERROR:root:Task exception was never retrieved
future: <Task finished name='Task-4' coro=<NetworkService.discovery_loop() done, defined at /usr/lib/python3.8/site-packages/sakia/services/network.py:222> exception=RuntimeError('no running event loop')>
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sakia/services/network.py", line 229, in discovery_loop
await asyncio.sleep(1)
File "/usr/lib/python3.8/asyncio/tasks.py", line 637, in sleep
loop = events.get_running_loop()
RuntimeError: no running event loop
ERROR:root:Task exception was never retrieved
future: <Task finished name='Task-5' coro=<NetworkService.refresh_once() done, defined at /usr/lib/python3.8/site-packages/sakia/services/network.py:175> exception=RuntimeError('no running event loop')>
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/sakia/services/network.py", line 178, in refresh_once
await asyncio.sleep(1)
File "/usr/lib/python3.8/asyncio/tasks.py", line 637, in sleep
loop = events.get_running_loop()
RuntimeError: no running event loop
ERROR:root:An unhandled exception occured
Traceback (most recent call last):
File "/usr/bin/sakia", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/sakia/main.py", line 160, in main
loop.run_until_complete(app.initialize_blockchain())
File "/usr/lib/python3.8/site-packages/quamash/__init__.py", line 289, in run_until_complete
return future.result()
File "/usr/lib/python3.8/site-packages/sakia/app.py", line 225, in initialize_blockchain
await asyncio.sleep(2) # Give time for the network to connect to nodes
File "/usr/lib/python3.8/asyncio/tasks.py", line 637, in sleep
loop = events.get_running_loop()
RuntimeError: no running event loop
Edited by Pascal Engélibert