Skip to content

RuntimeError: There is no current event loop in thread 'ScriptRunner.scriptThread'. #12

@xuyunlong123

Description

@xuyunlong123

Traceback (most recent call last):
File "/data/anaconda3/envs/py391/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
result = func()
File "/data/anaconda3/envs/py391/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
exec(code, module.dict)
File "/data/big_model/app.py", line 10, in
from frontend.state import init_state
File "/data/big_model/frontend/state.py", line 7, in
from server.index import IndexManager
File "/data/big_model/server/index.py", line 8, in
from server.ingestion import AdvancedIngestionPipeline
File "/data/big_model/server/ingestion.py", line 9, in
from server.stores.ingestion_cache import INGESTION_CACHE
File "/data/big_model/server/stores/ingestion_cache.py", line 6, in
cache=RedisCache(redis_uri=REDIS_URI),
File "/data/anaconda3/envs/py391/lib/python3.9/site-packages/llama_index/storage/kvstore/redis/base.py", line 65, in init
self._async_redis_client = AsyncRedis.from_url(redis_uri, **kwargs)
File "/data/anaconda3/envs/py391/lib/python3.9/site-packages/redis/asyncio/client.py", line 163, in from_url
client = cls(
File "/data/anaconda3/envs/py391/lib/python3.9/site-packages/redis/asyncio/client.py", line 341, in init
self._single_conn_lock = asyncio.Lock()
File "/data/anaconda3/envs/py391/lib/python3.9/asyncio/locks.py", line 81, in init
self._loop = events.get_event_loop()
File "/data/anaconda3/envs/py391/lib/python3.9/asyncio/events.py", line 642, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'ScriptRunner.scriptThread'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions