Opened 3 years ago

Closed 3 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

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 Changed 3 years ago by charettes

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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'

Regresssion introduced by c2a6b2a43fb8f32cff078c823054e2e65f325464.

Last edited 3 years ago by charettes (previous) (diff)

comment:2 Changed 3 years ago by charettes

  • Severity changed from Normal to Release blocker

comment:3 Changed 3 years ago by anonymous

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

comment:4 Changed 3 years ago by charettes

I reproduced on master.

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

  • Resolution set to fixed
  • Status changed from new to closed

In bbabfdcccee9ccd98fc140233dee748253bcb4a2:

Fixed #19485 -- Python 3 compatibility for c2a6b2a4.

Refs #9589.

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