Esc calibration-- compass motor calibration gives error

esc calibration-- compass motor calibration gives error, latest 4.1.5 works fine when i install old versions. Help?. I’m using Cuav Nora

You really want to use Magfit to generate the compass motor coefficients. Also for the Compass offsets (both at the same time actually). It’s easily done using MAVExplorer:
Magfit
Don’t be intimidated by the the fact it’s a Python utility. MAVExplorer makes this mostly transparent.

Why can’t we calibrate the compass motor in the new version? I can’t calibrate PWM Range esc in new version. How can we come up with a solution?

You can but it’s inferior, and a general hassle, compared to using Magfit.