![]() '''An exception for a missing or invalid HTML.'''Īsyncio.get_event_loop().run_until_complete(self.build_page())Ĭontext = await browser.createIncognitoBrowserContext() Initializing the RenderHTML class in the following imported file, will cause the error to be outputted as an error to the Streamlit UI. What are the steps we should take to reproduce the bug:ġ. Whether I include nest_asyncio or not, I receive the error `RuntimeError: There is no current event loop in thread 'ScriptRunner.scriptThread'`. The issue was solved with this library (). ![]() The reason is that tornado was reworked with asyncio and there didn't seem to be a realistic workaround by the Jupyter developers. I experienced an error earlier with Jupyter, which depends on tornado, and where I received an error that `RuntimeError: This event loop is already running`. I am running pyppeteer, which depends on asyncio, to load data which … is only available in a rendered web page. Raise RuntimeError('There is no current event loop in thread %r.' Main_event_loop = asyncio.get_event_loop()įile "/usr/lib/python3.9/asyncio/events.py", line 642, in get_event_loop util import NO_VALUE, main_event_loopįile "/home/xxx/.local/lib/python3.9/site-packages/eventkit/util.py", line 18, in RuntimeError: There is no current event loop in thread 'ScriptRunner.scriptThread'.įile "/home/xxx/.local/lib/python3.9/site-packages/streamlit/script_runner.py", line 350, in _run_scriptįile "/home/xxx/stocks/streamlit/streamlit.py", line 1, in įile "/home/xxx/.local/lib/python3.9/site-packages/ib_insync/_init_.py", line 7, in įile "/home/xxx/.local/lib/python3.9/site-packages/eventkit/_init_.py", line 4, in įile "/home/xxx/.local/lib/python3.9/site-packages/eventkit/event.py", line 7, in įrom. I tried to import ib_insync, but it doesn`t work. I´m creating a streamlit app for stock trading.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |