Re: Strange error in django

2015-04-22 Thread Vijay Khemlani
What specific version of Python are you using (2.7...x?) On Wed, Apr 22, 2015 at 8:26 PM, John DeRosa wrote: > Oh, sorry. > > Well, you’re using joblib. The joblib.load() call loads something and > return a Python object into the symbol clf. > > It would seem you need to look at the object that

Re: Strange error in django

2015-04-22 Thread John DeRosa
Oh, sorry. Well, you’re using joblib. The joblib.load() call loads something and return a Python object into the symbol clf. It would seem you need to look at the object that joblib.load is reconstituting. This code snippet doesn’t give enough information to diagnose this, but if I were you, I

Re: Strange error in django

2015-04-22 Thread Cristian Javier Martinez
Thanks for your reply John DeRosa but the question is about what is causing the exception because I'm not using threads at all and the error says "*'Thread' object has no attribute '_children'"*. I'm catching the error and printing it out before the return as you can see in the log. El miércol

Re: Strange error in django

2015-04-22 Thread John DeRosa
If you get an exception, the “except” clause will drop down into the “return” statement, and classification_serializer will be referenced before it’s assigned to. (Because it never was assigned to.) John > On Apr 22, 2015, at 2:36 PM, Cristian Javier Martinez > wrote: > > Hi! I'm using the d

Strange error in django

2015-04-22 Thread Cristian Javier Martinez
Hi! I'm using the django rest framework and successfully deployed an application in a production environment but I'm having an strange error related to threads when I call a method that performs a simple classification task (using a scikit learn classifier) and I have no idea what is causing th