I have updated the cpm.py file on the repository just now.
Please let me know if this newer version has the same problem.
It was not clear to me how you got this error.
Did you run a specific python code, or is it during installation?
Here is a piece of code that I used to check the functionality of the
code. It works fine for me.