I have the following circular callback function where the elements of type op-data-store are used both as States and ServersideOutputs in the callback:
The callback function throws the error: UnboundLocalError: local variable 'bkey_hash' referenced before assignment. However, the error goes away when ServersideOutput is changed to just Output. I need it be a ServersideOutput because elements of type op-data-store store images and ServersideOutput seems to be more efficient for image processing/rendering.
@Emil I think I was actually having a similar issue with dash-extensions if I remember correctly (wanted to use the MultiplexerTransform) that went away when I shifted over to vanilla Dash. Both were likely on the latest version as this was two weeks ago, but I’ll try to see if I can create an MRE for you to take a look at some time.
Update: Just saw the post directly beneath this one in my feed about likely the same issue that I faced, so I’ll try out DashBlueprints and see if that solves things.
I am asking about the version as this error is known to happen for paticular older dash-extensions versions and/or caches created with them. To resolve the issue, update to the latest versions of Dash and dash-extensions, and clear any old cache (e.g. folders on disk).
The issue is related to a 3rd party libary doing the caching. Hence, it will go away if you switch to vanilla Dash, as caching won’t be used in this case.
Hi @Emil, I did not delete any files. The only files I deleted were temporary files on my disk, but I get the error regardless of whether I do the disk cleanup.
It is not the temp files, which needs to be deleted, it is the folder that I was talking about in the previous post. Hence, until you delete it, you might see the error due to old, corrupt caching data.