[Django] #34228: Django 4.1.4 cannot import name 'force_unicode' from 'django.utils.encoding'

103 views
Skip to first unread message

Django

unread,
Dec 25, 2022, 9:25:40 PM12/25/22
to django-...@googlegroups.com
#34228: Django 4.1.4 cannot import name 'force_unicode' from
'django.utils.encoding'
---------------------------------------+------------------------
Reporter: JosephHo290 | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: 4.1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------+------------------------
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)

--
Ticket URL: <https://code.djangoproject.com/ticket/34228>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 25, 2022, 9:29:12 PM12/25/22
to django-...@googlegroups.com
#34228: Django 4.1.4 cannot import name 'force_unicode' from
'django.utils.encoding'
-----------------------------+--------------------------------------

Reporter: JosephHo290 | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: 4.1
Severity: Normal | Resolution:

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------

Comment (by JosephHo290):

Please help to resolve! Thanks a lot!

--
Ticket URL: <https://code.djangoproject.com/ticket/34228#comment:1>

Django

unread,
Dec 26, 2022, 2:25:55 AM12/26/22
to django-...@googlegroups.com
#34228: Django 4.1.4 cannot import name 'force_unicode' from
'django.utils.encoding'
---------------------------+--------------------------------------
Reporter: Joseph Ho | Owner: nobody
Type: Bug | Status: closed
Component: Utilities | Version: 4.1
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

`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
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels] if you have further questions. Trac is not a support
channel.

--
Ticket URL: <https://code.djangoproject.com/ticket/34228#comment:2>

Reply all
Reply to author
Forward
0 new messages