Re: Unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2009-07-29 Thread Dave MacFarlane
On 28-Jul-09, at 8:40 PM, Karen Tracey wrote: > > I don't know if it's still an issue but I have a vague recollection > of seeing a similar problem mentioned fairly recently, and reported > as fixed by upgrading psycopg2. I'm not up on psycopg2 levels -- is > 2.0.7 the latest? > > You can s

Re: Unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2009-07-28 Thread Karen Tracey
On Tue, Jul 28, 2009 at 4:14 PM, Dave MacFarlane < dave.macfarl...@ecometrica.ca> wrote: > > Hello, > > I'm experiencing an unusual problem with django where it's sometimes > throwing a TypeError exception with the exception value "unsupported > operan

Unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2009-07-28 Thread Dave MacFarlane
Hello, I'm experiencing an unusual problem with django where it's sometimes throwing a TypeError exception with the exception value "unsupported operand type(s) for *: 'Decimal' and 'Decimal'" when multiplying a DecimalField by a Decimal. This seems

Re: unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2007-09-20 Thread Landlord Bulfleet
Thanks :) Looks like this is the solution to our problem. We haven't tested it yet but will try soon. Thanks again On 9/20/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 9/19/07, Landlord Bulfleet <[EMAIL PROTECTED]> wrote: > ... > > > > sum is property of a model object in our database > >

Re: unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2007-09-19 Thread Jeremy Dunck
On 9/19/07, Landlord Bulfleet <[EMAIL PROTECTED]> wrote: ... > > sum is property of a model object in our database > (models.DecimalField(max_digits=7, decimal_places=2)) & f_c.rate is a > Decimal constructed using Decimal(string) construction (Decimal is imported > with "from decimal import Decima

Re: unsupported operand type(s) for *: 'Decimal' and 'Decimal'

2007-09-19 Thread Landlord Bulfleet
We have the following weird problem, that we are unable to deliberately replicate no matter what we try... It seems to appears only when our server (running python2.5.1, daily updated django svn, mod_python 3.3.1) has been running for at least maybe 4-5 hours... After an apache restart there is no