> > Problem is possibly with multiple interpreters and psycopg2 again,
>
> Why do you say that? The thread you refer to above doesn't talk about
> mod_python, so do you have any extra evidence that support this claim?
There was a bug in psycopg2 with Decimal data type that sometimes
caused
error like that:
unsupported operand type(s) for *: 'Decimal' and 'Decimal'

It was discussed on the list:
http://groups.google.com/group/django-users/browse_thread/thread/091aa6c088f6c090

Similarly to "can't adapt" it was raised sometimes, after apache was
running for few days, etc.. When error appears, restarting apache
causes everything to work fine but only for some time and then again,
errors are appearing. It was said that Decimal problem is caused by
running psycopg2 with multiple interpreters, so thats why I think
"can't adapt" might be the same thing.
Exactly same place, same data entered in the form and after submit
sometimes I get "can't adapt" and sometimes (after apache restart)
everything works.

Actually I found one thing in my code that shouldn't be there. I have
FloatField in model but in ModelForm it is changed (manually in
__init__) to DecimalField (in fact subclass that allows to use comma
as a decimal separator). I suppose this change from Float to Decimal
might be causing problems but it is strange that sometimes this works
and sometimes don't.

I have no full traceback because I can't reproduce "can't adapt" on
demand. I only have last line of traceback that was sent to me by
tester. I've already added logging of SQL yesterday but so far it
didn't happen again. Also I've turned off debug mode so I'll have
traceback e-mailed as soon as it strikes again.

Thanks for your answer!

--
Maciej Wisniowski
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to