Open valveca-ai opened 5 years ago
I am also seeing this problem. Ran it on Windows 10 debug Flask hosting. Thanks for reporting!
same issue, MAC Mojave. Cufflinks 0.15 and 0.16 @valveca-ai your workaround works THANKS. could it be submitted as as pull-request. modifiying modules files in different systems is not good.
I am also seeing these errors pop up randomly. Is this going to be fixed?
I am seeing this much more since I added flask Cache to my Dash app. Evironment: cufflinks-py 0.17.0 py_1 conda-forge dash 1.8.0 py_0 conda-forge dash-core-components 1.7.0 py_0 conda-forge dash-html-components 1.0.2 py_0 conda-forge dash-renderer 1.2.3 py_0 conda-forge dash-table 4.6.0 py_0 conda-forge flask 1.1.1 py_1 conda-forge flask-caching 1.7.1 py_0 conda-forge flask-compress 1.4.0 py_0 conda-forge plotly 4.5.0 py_0 conda-forge
This still seems to be broken, I just bumped into the same issue. Any chance to get it fixed ?
Running version cufflinks 0.17.3 and plotly 4.8.0 and having the same issue. @valveca-ai workaround works. Any chance getting it integrated into a new release?
Same issue here. @valveca-ai workaround works. I hope to fix this issue in the future release.
hard code the get_config_file
func, and it works.
# auth.py 180
def get_config_file(*args):
"""
Return specified args from `~/.config`. as dict.
Returns all if no arguments are specified.
Example:
get_config_file('sharing')
"""
return {'sharing': 'private', 'theme': 'pearl', 'colorscale': 'dflt', 'offline': True, 'offline_connected': True,
'offline_url': '', 'offline_show_link': True, 'offline_link_text': 'Export to plot.ly',
'datagen_mode': 'stocks', 'dimensions': None, 'margin': None, 'offline_config': None}
# if _file_permissions:
# ensure_local_files()
# return load_json_dict(CONFIG_FILE, *args)
# else:
# return _FILE_CONTENT[CONFIG_FILE]
in my case, I use Plotly Dash and cufflinks. When a variable change, I use cufflinks to create 3 Figures in 3 callbacks.
I think there is a race condition in
auth.py
functionget_config_file(*args)
when called from multiple threads.I'm running a dash application with multiple cufflink plots and it causes random exceptions like:
as well as with other keys.
I was able to debug this and noticed that dash is refreshing more than one cufflink chart in parallel over multiple threads causing a race condition in
get_config_file(*args)
. A workaround is to add this toauth.py
to cache previous results:A better solution would be to serialize access to this method over multiple threads.
I'm running from cufflinks' github master branch, Python 3.7.3 and my project uses these packages: