AD5241 Digital Potentiometer 1M problem


I just received this product and it does not work as expected, it delivers only about 220 K, instead of 1M as ordered. I measured this value from a manual ohmmeter, and check it by comparing with a manual potentiometer.

Using this python script, it gives me a value of 10K, but its simplistic code looks like a fake.

Can anybody help ?