Opened 2 years ago

Closed 2 years ago

#34228 closed Bug (invalid)

Django 4.1.4 cannot import name 'force_unicode' from 'django.utils.encoding'

Reported by: Joseph Ho Owned by: nobody
Component: Utilities Version: 4.1
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

Description

Traceback (most recent call last):

File "/home/josephho/django-fly/.venv/lib64/python3.9/site-packages/django/template/utils.py", line 69, in getitem

return self._engines[alias]

KeyError: 'Django'

raise InvalidTemplateLibrary(

django.template.library.InvalidTemplateLibrary: Invalid template library specified. ImportError raised when trying to load 'markdown_deux.templatetags.markdown_deux_tags': cannot import name 'force_unicode' from 'django.utils.encoding' (/home/josephho/django-fly/.venv/lib64/python3.9/site-packages/django/utils/encoding.py)

Change History (2)

comment:1 by Joseph Ho, 2 years ago

Please help to resolve! Thanks a lot!

comment:2 by Mariusz Felisiak, 2 years ago

Resolution: invalid
Status: newclosed

force_unicode was a private alias removed in Django 2.0. It seems that markdown_deux doesn't support Django 2.0+. Please use one of support channels if you have further questions. Trac is not a support channel.

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