runtime error
Exit code: 1. Reason: ronize_async return fsspec.asyn.sync(fsspec.asyn.get_loop(), func, *args, **kwargs) File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync raise return_result File "/usr/local/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner result[0] = await coro File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 273, in create await self.cache() File "/usr/local/lib/python3.10/site-packages/gradio/helpers.py", line 308, in cache prediction = await Context.root_block.process_api( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 1017, in process_api result = await self.call_function( File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 835, in call_function prediction = await anyio.to_thread.run_sync( File "/usr/local/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync return await get_async_backend().run_sync_in_worker_thread( File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2177, in run_sync_in_worker_thread return await future File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 859, in run result = context.run(func, *args) File "/home/user/app/app.py", line 153, in opt_process opt_output_img = Draw.MolsToGridImage( File "/usr/local/lib/python3.10/site-packages/rdkit/Chem/Draw/__init__.py", line 821, in MolsToGridImage return _MolsToGridImage(mols, molsPerRow=molsPerRow, subImgSize=subImgSize, legends=legends, File "/usr/local/lib/python3.10/site-packages/rdkit/Chem/Draw/__init__.py", line 571, in _MolsToGridImage res = _drawerToImage(d2d) File "/usr/local/lib/python3.10/site-packages/rdkit/Chem/Draw/__init__.py", line 445, in _drawerToImage sio = BytesIO(d2d.GetDrawingText()) RuntimeError: Pre-condition Violation no draw context Violation occurred on line 211 in file Code/GraphMol/MolDraw2D/MolDraw2DCairo.cpp Failed Expression: dp_cr RDKIT: 2024.03.5 BOOST: 1_85
Container logs:
Fetching error logs...