Opened 11 years ago

Closed 11 years ago

#19485 closed Bug (fixed)

can't run default project in python3

Reported by: aliva Owned by: nobody
Component: Python 3 Version: dev
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

Description

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

This is What I do

python3 django-admin.py startproject djtest
cd djtest
python3 manage.py 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 by Simon Charette, 11 years ago

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/base.py", 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/base.py", 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/runserver.py", line 70, in handle
    self.run(*args, **options)
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/core/management/commands/runserver.py", 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/autoreload.py", 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/autoreload.py", line 141, in python_reloader
    reloader_thread()
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/utils/autoreload.py", line 122, in reloader_thread
    if code_changed():
  File "/home/simon/.virtualenvs/34057b31-241e-4e1d-b023-400bd276f426/lib/python3.2/site-packages/django/utils/autoreload.py", line 60, in code_changed
    for filename in filter(None, filenames) + _error_files:
TypeError: unsupported operand type(s) for +: 'filter' and 'list'
Version 0, edited 11 years ago by Simon Charette (next)

comment:2 by Simon Charette, 11 years ago

Severity: NormalRelease blocker

comment:3 by anonymous, 11 years ago

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

comment:4 by Simon Charette, 11 years ago

I reproduced on master.

comment:5 by Aymeric Augustin <aymeric.augustin@…>, 11 years ago

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