Opened 9 years ago

Closed 9 years ago

#11861 closed (fixed)

TypeError: object.__init__() takes no parameters

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I`m use revision: 11495

Traceback (most recent call last):
  File "./", line 16, in <module>
  File "/opt/backup/devel/elec/python/django/core/management/", line 362, in execute_manager
  File "/opt/backup/devel/elec/python/django/core/management/", line 303, in execute
  File "/opt/backup/devel/elec/python/django/core/management/", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/opt/backup/devel/elec/python/django/core/management/", line 213, in execute
  File "/opt/backup/devel/elec/python/django/utils/translation/", line 73, in activate
    return real_activate(language)
  File "/opt/backup/devel/elec/python/django/utils/translation/", line 43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File "/opt/backup/devel/elec/python/django/utils/translation/", line 205, in activate
    _active[currentThread()] = translation(language)
  File "/opt/backup/devel/elec/python/django/utils/translation/", line 194, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "/opt/backup/devel/elec/python/django/utils/translation/", line 180, in _fetch
    app = import_module(appname)
  File "/opt/backup/devel/elec/python/django/utils/", line 35, in import_module
  File "/opt/backup/devel/elec/python/django/contrib/admin/", line 1, in <module>
    from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME
  File "/opt/backup/devel/elec/python/django/contrib/admin/", line 13, in <module>
    class ActionForm(forms.Form):
  File "/opt/backup/devel/elec/python/django/contrib/admin/", line 14, in ActionForm
    action = forms.ChoiceField(label=_('Action:'))
  File "/opt/backup/devel/elec/python/django/forms/", line 630, in __init__
    help_text, *args, **kwargs)
  File "/opt/backup/devel/elec/python/django/forms/", line 87, in __init__
    widget = widget()
  File "/opt/backup/devel/elec/python/django/forms/", line 395, in __init__
    super(Select, self).__init__(attrs)
  File "/opt/backup/devel/elec/python/django/forms/", line 142, in __init__
    super(Widget, self).__init__(attrs)
TypeError: object.__init__() takes no parameters

Change History (1)

comment:1 Changed 9 years ago by Luke Plant

Resolution: fixed
Status: newclosed

This was fixed in r11496. It's specific to Python 2.6 and higher, sorry for problem.

Note: See TracTickets for help on using tickets.
Back to Top