Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTMLParseError removed in Python 3.5 #52

Open
RESP3CT88 opened this issue Apr 18, 2019 · 1 comment
Open

HTMLParseError removed in Python 3.5 #52

RESP3CT88 opened this issue Apr 18, 2019 · 1 comment

Comments

@RESP3CT88
Copy link

RESP3CT88 commented Apr 18, 2019

Error below when running bots-webserver.py. Setup is Python 3.5 and Django 1.7:

File "/home/user/bots/bots-3.3.0/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'

Reason for Error:
HTMLParseError is deprecated from Python 3.3 onwards and removed in Python 3.5.
http://thefourtheye.in/2015/02/15/python-35-and-django-17s-htmlparseerror/

@xiaomiannvwang
Copy link

with django 1.8 it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants