-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
st.cache error #2409
Labels
feature:cache
Related to st.cache_data and st.cache_resource
feature:cache-hash-func
type:bug
Something isn't working
Comments
I'm experiencing the same issue -- has there been a solution? |
hello , Maybe you need Chrome. I forgot how I solved the problem.
…------------------ 原始邮件 ------------------
发件人: "streamlit/streamlit" <notifications@github.com>;
发送时间: 2021年2月25日(星期四) 中午11:49
收件人: "streamlit/streamlit"<streamlit@noreply.github.com>;
抄送: "happy_boy"<756745172@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [streamlit/streamlit] st.cache error (#2409)
I'm experiencing the same issue -- has there been a solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Facing the same issue. Please help! |
from cachetools import cached |
from cachetools import cached |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
feature:cache
Related to st.cache_data and st.cache_resource
feature:cache-hash-func
type:bug
Something isn't working
AttributeError: 'QueuePool' object has no attribute '_pool'
Traceback:
File "c:\python3.6.5\lib\site-packages\streamlit\script_runner.py", line 332, in _run_script
exec(code, module.dict)
File "D:\pycharm_workspace\weather_test\study_clode.py", line 105, in
df=get_data(farm_id, start_time, end_time, engine)
File "c:\python3.6.5\lib\site-packages\streamlit\caching.py", line 604, in wrapped_func
return get_or_create_cached_value()
File "c:\python3.6.5\lib\site-packages\streamlit\caching.py", line 586, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "D:\pycharm_workspace\weather_test\study_clode.py", line 29, in get_data
power_data = load_train.get_power_data()
File "D:\pycharm_workspace\weather_test\Data_Process.py", line 55, in get_power_data
mysql_power = pd.read_sql_query(sql_power, self.engine)
File "c:\python3.6.5\lib\site-packages\pandas\io\sql.py", line 332, in read_sql_query
chunksize=chunksize,
File "c:\python3.6.5\lib\site-packages\pandas\io\sql.py", line 1218, in read_query
result = self.execute(*args)
File "c:\python3.6.5\lib\site-packages\pandas\io\sql.py", line 1087, in execute
return self.connectable.execute(*args, **kwargs)
File "c:\python3.6.5\lib\site-packages\sqlalchemy\engine\base.py", line 2236, in execute
connection = self._contextual_connect(close_with_result=True)
File "c:\python3.6.5\lib\site-packages\sqlalchemy\engine\base.py", line 2304, in _contextual_connect
self._wrap_pool_connect(self.pool.connect, None),
File "c:\python3.6.5\lib\site-packages\sqlalchemy\engine\base.py", line 2338, in _wrap_pool_connect
return fn()
File "c:\python3.6.5\lib\site-packages\sqlalchemy\pool\base.py", line 364, in connect
return _ConnectionFairy._checkout(self)
File "c:\python3.6.5\lib\site-packages\sqlalchemy\pool\base.py", line 778, in _checkout
fairy = _ConnectionRecord.checkout(pool)
File "c:\python3.6.5\lib\site-packages\sqlalchemy\pool\base.py", line 495, in checkout
rec = pool._do_get()
File "c:\python3.6.5\lib\site-packages\sqlalchemy\pool\impl.py", line 118, in _do_get
return self._pool.get(wait, self._timeout)
The text was updated successfully, but these errors were encountered: