mariostoev / finviz

Unofficial API for finviz.com
MIT License
1.06k stars 278 forks source link

RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-0_0'. #19

Closed fedseg closed 3 years ago

fedseg commented 5 years ago

Attempting to run finviz screener on Python 3.6.5 and tornado 4.5.3.

filters = ['exch_nasd','idx_sp500'] screener = finviz.screener.Screener(filters=filters, order= 'price')

Returns error: RuntimeError: There is no current event loop in thread 'ThreadPoolExecutor-0_0'.

Thoughts?

ArrrNeo commented 4 years ago

i am trying to run finviz api in django 3.1.1 and i get similar error:

File "/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'.