Error using "Join two datasets" tool on galaxy installed locally.

I am running galaxy locally. I am trying to use “Join two datasets tool”, I am unable to use this tool on my local server. However, this tool still works on galaxy server.

I’d highly appreciate your help.

Traceback (most recent call last):
File “/galaxy/tools/filters/”, line 19, in
from galaxy.util import stringify_dictionary_keys
ModuleNotFoundError: No module named ‘galaxy’

Cross-topic post Error in Join two datasets in Galaxy Docker 20.05