Skip to content

Instantly share code, notes, and snippets.

@thefourtheye
Created February 15, 2015 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefourtheye/2205fe8ff7974e2cebf6 to your computer and use it in GitHub Desktop.
Save thefourtheye/2205fe8ff7974e2cebf6 to your computer and use it in GitHub Desktop.
Python 3.5 - Django 1.7.4 Problem
Traceback (most recent call last):
File "/home/thefourtheye/Python/py3.5venv/bin/django-admin.py", line 5, in <module>
management.execute_from_command_line()
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/db/models/__init__.py", line 6, in <module>
from django.db.models.query import Q, QuerySet, Prefetch # NOQA
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/db/models/query.py", line 13, in <module>
from django.db.models.fields import AutoField, Empty
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/db/models/fields/__init__.py", line 18, in <module>
from django import forms
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/forms/__init__.py", line 6, in <module>
from django.forms.fields import * # NOQA
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/forms/fields.py", line 18, in <module>
from django.forms.utils import from_current_timezone, to_current_timezone
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/forms/utils.py", line 15, in <module>
from django.utils.html import format_html, format_html_join, escape
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/utils/html.py", line 16, in <module>
from .html_parser import HTMLParser, HTMLParseError
File "/home/thefourtheye/Python/py3.5venv/lib/python3.5/site-packages/django/utils/html_parser.py", line 12, in <module>
HTMLParseError = _html_parser.HTMLParseError
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
@thefourtheye
Copy link
Author

Okay, this issue is already raised in Django's bug tracking system https://code.djangoproject.com/ticket/23763 and the fix is already in github django/django@b07aa52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment