lava-dashboard fails with can't adapt type 'Decimal' deserialization error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dashboard (deprecated) |
Fix Released
|
Critical
|
Zygmunt Krynicki |
Bug Description
lava-dashboard fails with can't adapt type 'Decimal' deserialization error
Here is the error traceback:
Cause
can't adapt type 'Decimal'
Deserialization failure traceback
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
helper.
File "/usr/lib/
importer(
File "/usr/lib/
self.
File "/usr/lib/
res = func(*args, **kw)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
) VALUES """ + sequel, data)
File "/usr/lib/
return self.cursor.
DatabaseError: can't adapt type 'Decimal'
The above error occurred for the job: http://
Changed in lava-dashboard: | |
status: | In Progress → Fix Committed |
Changed in lava-dashboard: | |
status: | Fix Committed → Fix Released |
I cannot reproduce this locally on natty (although I may have made a mistake so I'm checking again). From my reading of the code the only suspect is a bit of magic Django _may_ (I'm not certain this is true) be putting between us and postgresql in the adapter classes. From my naive checking postgresql adapter supports decimals just fine so something else must be at play.