Opened 15 years ago
Closed 15 years ago
#11861 closed (fixed)
TypeError: object.__init__() takes no parameters
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
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 |
Description
I`m use revision: 11495
Traceback (most recent call last): File "./manage.py", line 16, in <module> execute_manager(elec.conf.settings) File "/opt/backup/devel/elec/python/django/core/management/__init__.py", line 362, in execute_manager utility.execute() File "/opt/backup/devel/elec/python/django/core/management/__init__.py", line 303, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/backup/devel/elec/python/django/core/management/base.py", line 195, in run_from_argv self.execute(*args, **options.__dict__) File "/opt/backup/devel/elec/python/django/core/management/base.py", line 213, in execute translation.activate('en-us') File "/opt/backup/devel/elec/python/django/utils/translation/__init__.py", line 73, in activate return real_activate(language) File "/opt/backup/devel/elec/python/django/utils/translation/__init__.py", line 43, in delayed_loader return g['real_%s' % caller](*args, **kwargs) File "/opt/backup/devel/elec/python/django/utils/translation/trans_real.py", line 205, in activate _active[currentThread()] = translation(language) File "/opt/backup/devel/elec/python/django/utils/translation/trans_real.py", line 194, in translation default_translation = _fetch(settings.LANGUAGE_CODE) File "/opt/backup/devel/elec/python/django/utils/translation/trans_real.py", line 180, in _fetch app = import_module(appname) File "/opt/backup/devel/elec/python/django/utils/importlib.py", line 35, in import_module __import__(name) File "/opt/backup/devel/elec/python/django/contrib/admin/__init__.py", line 1, in <module> from django.contrib.admin.helpers import ACTION_CHECKBOX_NAME File "/opt/backup/devel/elec/python/django/contrib/admin/helpers.py", line 13, in <module> class ActionForm(forms.Form): File "/opt/backup/devel/elec/python/django/contrib/admin/helpers.py", line 14, in ActionForm action = forms.ChoiceField(label=_('Action:')) File "/opt/backup/devel/elec/python/django/forms/fields.py", line 630, in __init__ help_text, *args, **kwargs) File "/opt/backup/devel/elec/python/django/forms/fields.py", line 87, in __init__ widget = widget() File "/opt/backup/devel/elec/python/django/forms/widgets.py", line 395, in __init__ super(Select, self).__init__(attrs) File "/opt/backup/devel/elec/python/django/forms/widgets.py", line 142, in __init__ super(Widget, self).__init__(attrs) TypeError: object.__init__() takes no parameters
Note:
See TracTickets
for help on using tickets.
This was fixed in r11496. It's specific to Python 2.6 and higher, sorry for problem.