Traceback (most recent call last):


 "/usr/local/lib/python3.8/dist-packages/evdev/device.py", line 159, in __del__

self.close()


 "/usr/local/lib/python3.8/dist-packages/evdev/device.py", line 304, in close

super().close()


 "/usr/local/lib/python3.8/dist-packages/evdev/eventio_async.py", line 54, in close

loop = asyncio.get_event_loop()


 "/usr/lib/python3.8/asyncio/events.py", line 639, in get_event_loop

raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'Thread-1'.

Traceback (most recent call last):


 "Intro_Tutorial_3.py", line 45, in <module>

train_marginals = load_marginals(session, split=0)


 "/home/mldl/ub16_prj/snorkel/snorkel/annotations.py", line 567, in load_marginals

cardinality = session.query(Candidate).get(marginal_tuples[0][0]).cardinality
IndexError: list index out of range
