#10727: Exception Raised: TypeError: Initialization arguments are not supported
---------------------------------------------------+------------------------
Reporter: dejones | Owner: nobody
Status: closed | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: invalid | Keywords: TypeError:
Initialization arguments are not supported
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by andialbrecht):
The appengine helpers DB backend is fine.
Actually it's a Python bug (http://bugs.python.org/issue1522237) in
_threading_local. It came up here, because the App Engine environment uses
_threading_local.local and not thread._local as Django would do in a
normal setup (e.g. the thread module is available).
I'm not sure if there are other Django setups, that use the
_threading_local implementation too. At least there is some potential as
the thread module is marked as optional in the Python docs. If so, all
backends should fail in that case (according to Guido's comment on the
Python tracker, the fix for this bug will not go into Python version < 2.6
and ATM it's even not applied in trunk).
It's pretty easy to "reproduce" this behavior for Django's builtin
backends by monkey patching threading.local somewhere at the top of
manage.py, for example:
{{{
#!python
# manage.py
import threading
import _threading_local
threading.local = _threading_local.local
[...]
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/10727#comment:3>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---