Dash Extensions ServsideOutput throwing bkey_hash error

Hi all,

I’m facing this issue using Dash plotly with Dash Extensions:

Traceback (most recent call last):
File “/opt/anaconda3/envs/sigma-sealevel3/lib/python3.10/site-packages/dash_extensions/enrich.py”, line 554, in decorated_function
args[i] = serverside_output.backend.get(args[i], ignore_expired=True)
File “/opt/anaconda3/envs/sigma-sealevel3/lib/python3.10/site-packages/dash_extensions/enrich.py”, line 662, in get
filename = self._get_filename(key)
File “/opt/anaconda3/envs/sigma-sealevel3/lib/python3.10/site-packages/cachelib/file.py”, line 202, in _get_filename
return os.path.join(self._path, bkey_hash)
UnboundLocalError: local variable ‘bkey_hash’ referenced before assignment

The issue arises in storing data in the ServersideOutput, it arises for some user local dev environments but not others. I think it might be due to some dependency issues but unsure how to resolve.

What version are you on? Try updating to the latest version, and clear any existing cache (e.g. delete files on disk)

dash 2.0.0
dash-bootstrap-components 1.0.2
dash-core-components 2.0.0
dash-daq 0.5.0
dash-extensions 0.0.67

There is no cache, we have code that automatically deletes it after a run, so we know its not an issue there

Updating to the latest version (currently 0.1.6) should solve the issue.