Opened 4 years ago

Closed 4 years ago

#22953 closed Bug (worksforme)

ImportError: cannot import name html_entities

Reported by: omcdr7@… Owned by: nobody
Component: HTTP handling Version: 1.6
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Tested by Python 3.3 and Django 1.6.5

Traceback (most recent call last):
  File "", line 10, in <module>
  File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
\", line 399, in execute_from_command_line
  File "C:\Program Files (x86)\Python33\lib\site-packages\django\core\management
\", line 392, in execute
    from django.utils.html import format_html, format_html_join
  File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\", line 12, in <module>
    from django.utils.text import normalize_newlines
  File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\", line 11, in <module>
    from django.utils.six.moves import html_entities
ImportError: cannot import name html_entities

    from .html_parser import HTMLParser, HTMLParseError
  File "C:\Program Files (x86)\Python33\lib\site-packages\django\utils\", line 1, in <module>
    from django.utils.six.moves import html_parser as _html_parser
ImportError: cannot import name html_parser

Change History (2)

comment:1 Changed 4 years ago by Claude Paroz

Can you check that you have no or html directory in your project that Python would use to override the standard html.* package from Python 3?

comment:2 Changed 4 years ago by Tim Graham

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top