BAC0 icon indicating copy to clipboard operation
BAC0 copied to clipboard

RuntimeError: no running event loop

Open leaf188 opened this issue 5 months ago • 5 comments

The following error message appears when you run BAC0.lite() ` root@vm01:~# python Python 3.12.0 (main, Oct 21 2023, 17:42:12) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import BAC0 bacnet=BAC0.lite() [09/11/24 07:54:41] INFO 2024-09-11 07:54:41,724 - INFO | Starting Asynchronous BAC0 version 2024.09.10 (Lite) notes.py:267 INFO 2024-09-11 07:54:41,728 - INFO | Using bacpypes3 version 0.0.98 notes.py:267 INFO 2024-09-11 07:54:41,729 - INFO | Use BAC0.log_level to adjust verbosity of the app. notes.py:267 INFO 2024-09-11 07:54:41,730 - INFO | Ex. BAC0.log_level('silence') or BAC0.log_level('error') notes.py:267 Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.12/dist-packages/BAC0/scripts/Lite.py", line 141, in init self._ping_task.start() File "/usr/local/lib/python3.12/dist-packages/BAC0/tasks/TaskManager.py", line 143, in start self.aio_task = asyncio.create_task(self.execute(), name=f"aio{self.name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/asyncio/tasks.py", line 407, in create_task loop = events.get_running_loop() ^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: no running event loop `

leaf188 avatar Sep 11 '24 08:09 leaf188