Error Loading Classifier Model


I am using CP and CPA to classify my images, however after I do the training of the classifier model I am unable to load the classifier model to classify other set of images.
It says just: ‘Error loading classifier model’
I am using a Random Forest classifier model, and I am using SQlite.

Thanks in advance for your help



Currently, we are also experiencing the same problem. I will come back to with more detail information soon.


Hi Habbasi

I tired running CPA from the source with Python 2 but i get the following error: AttributeError: type object ‘str’ has no attribute ‘maketrans’.
Do you know what is the problem?


Hi Susana,

What were you doing when you got that error? Was it right when you opened the program, doing a particular task, etc?

Hi Beth

Regarding the ‘Error loading classifier model’, that happens when I have loaded the properties file and I try to load an existing Random Forest classifier model that I have trained previously.

To attempt to sort this out I saw in the forum that you advice to download the latest CPA from source. In that case I run ‘python py2app’ I get the following error: "TypeError: ‘NoneType’ object has no attribute ‘getitem’.
I am using OS and python 2.7.

Thanks in advance for you help