Opened 10 years ago
Closed 10 years ago
#23119 closed Bug (duplicate)
IndexError: list index out of range (empty choices iterable)
Reported by: | anonymous | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.7-rc-2 |
Severity: | Release blocker | Keywords: | |
Cc: | lemuelf@…, cmawebsite@…, Jcuotpc@…, areski@… | Triage Stage: | Unreviewed |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I have just installed django 1.7rc2. When trying to run the development server with manage.py I get the following error:
TypeError: Error when calling the metaclass bases 'itertools.tee' object has no attribute '__getitem__'
Full traceback at: https://dpaste.de/8JS9.
Django 1.7rc1 works perfectly well.
Change History (14)
comment:1 by , 10 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:2 by , 10 years ago
Resolution: | duplicate |
---|---|
Status: | closed → new |
I ran https://github.com/django/django/pull/2990, but the problem is still there: http://pastebin.com/AX2t7YxT
comment:3 by , 10 years ago
Cc: | added |
---|
comment:4 by , 10 years ago
I have the same issue (similar traceback as the one in the ticket description; triggered by the same 3rd party library) but after using the branch in https://github.com/django/django/pull/2990 the development server worked for me. Let me know if there's any info I can add.
comment:5 by , 10 years ago
Good catch. Your new traceback actually shows a different error (IndexError: list index out of range
) that happens if the iterable is empty, which was fine on 1.6.
field = models.CharField(choices=(x for x in []), blank=True, max_length=1)
I've commented on the first ticket. https://code.djangoproject.com/ticket/23112#comment:16
comment:6 by , 10 years ago
Cc: | added |
---|
comment:7 by , 10 years ago
Summary: | itertools.tee' object has no attribute '__getitem__' after upgraded to Django 1.7rc2 → IndexError: list index out of range (empty choices iterable) |
---|
comment:8 by , 10 years ago
Severity: | Normal → Release blocker |
---|
comment:9 by , 10 years ago
Cc: | added |
---|
comment:10 by , 10 years ago
See the last commit that solve ticket #23112 (https://github.com/django/django/pull/2990), it should fix this issue too.
comment:11 by , 10 years ago
Cc: | added |
---|
comment:12 by , 10 years ago
The last commit that solved ticket #23112 (https://github.com/django/django/pull/2990) fixed the issue for me, too.
Hi,
This seems like a duplicate of #23112.
Can you confirm and reopen this ticket if that's not the case?
Thanks.