Make a Python function available in Calc, run it against the open spreadsheet, and troubleshoot missing macros or imports ...
The import statement for mpmath is incorrect, as noted, but it is a common mistake because of the way NumPy is usually (correctly) imported. The programmer thought they were setting the dps (decimal ...