Opened 6 years ago

Closed 6 years ago

#19485 closed Bug (fixed)

can't run default project in python3

Reported by: aliva Owned by: nobody
Component: Python 3 Version: master
Severity: Release blocker Keywords:
Cc: aliva Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I have updated to master. now I can't run the default project :)

This is What I do

python3 startproject djtest
cd djtest
python3 runserver

TypeError: unsupported operand type(s) for +: 'filter' and 'list'
Validating models...

Unhandled exception in thread started by <function wrapper at 0x92224ac>

python2 works fine.

Change History (5)

comment:1 Changed 6 years ago by Simon Charette

Triage Stage: UnreviewedAccepted

The full traceback:

Traceback (most recent call last):
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/core/management/", line 222, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/core/management/", line 252, in execute
    output = self.handle(*args, **options)
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/core/management/commands/", line 70, in handle*args, **options)
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/core/management/commands/", line 79, in run
    autoreload.main(self.inner_run, args, options)
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/utils/", line 174, in main
    reloader(wrapped_main_func, args, kwargs)
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/utils/", line 141, in python_reloader
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/utils/", line 122, in reloader_thread
    if code_changed():
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/utils/", line 60, in code_changed
    for filename in filter(None, filenames) + _error_files:
TypeError: unsupported operand type(s) for +: 'filter' and 'list'

Regresssion introduced by c2a6b2a43fb8f32cff078c823054e2e65f325464.

Last edited 6 years ago by Simon Charette (previous) (diff)

comment:2 Changed 6 years ago by Simon Charette

Severity: NormalRelease blocker

comment:3 Changed 6 years ago by anonymous

aliva, Python 3.0 it is not compatible with Django 1.4 yet.

comment:4 Changed 6 years ago by Simon Charette

I reproduced on master.

comment:5 Changed 6 years ago by Aymeric Augustin <aymeric.augustin@…>

Resolution: fixed
Status: newclosed

In bbabfdcccee9ccd98fc140233dee748253bcb4a2:

Fixed #19485 -- Python 3 compatibility for c2a6b2a4.

Refs #9589.

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