#29347: InternalError at /admin/foo/bar/taz/change/ Error in python: TypeError
DETAIL: a float is required
-------------------------------+--------------------------------------
Reporter: rvernica | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 2.0
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Comment (by rvernica):
You are correct the exception was coming from PostgreSQL Foreign Data
Wrapper which is also written in Python. Django was just propagating the
error. It confused me quite a bit since I had not idea where it was
braking from Django's trace. Upon seeing the PostgreSQL log, it was all
clear. Just for completeness, this is the error trace in PostgreSQL. Sorry
for the hassle.
{{{
2018-04-23 18:19:17.913 UTC [30] ERROR: Error in python: TypeError
2018-04-23 18:19:17.913 UTC [30] DETAIL: Traceback (most recent call
last):
File "/usr/local/lib/python2.7/dist-
packages/multicorn-1.3.4.dev0-py2.7-linux-
x86_64.egg/multicorn/fsfdw/__init__.py", line 272, in execute
return self.items_to_dicts(self.get_items(quals, columns),
columns)
File "/usr/local/lib/python2.7/dist-
packages/multicorn-1.3.4.dev0-py2.7-linux-
x86_64.egg/multicorn/fsfdw/__init__.py", line 279, in get_items
unicode_(qual.value))
File "/usr/local/lib/python2.7/dist-
packages/multicorn-1.3.4.dev0-py2.7-linux-
x86_64.egg/multicorn/fsfdw/structuredfs.py", line 373, in from_filename
return Item(self, values)
File "/usr/local/lib/python2.7/dist-
packages/multicorn-1.3.4.dev0-py2.7-linux-
x86_64.egg/multicorn/fsfdw/structuredfs.py", line 195, in __init__
self.mtime = datetime.datetime.fromtimestamp(mtime)
TypeError: a float is required
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29347#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.58642b1f4aa8dacb4d15c8c6394d02e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.