#1013488 horizon: FTBFS: ImportError: cannot import name 'force_text' from 'django.utils.encoding' (/usr/lib/python3/dist-packages/django/utils/encoding.py)

Package:
src:horizon
Source:
horizon
Submitter:
Lucas Nussbaum
Date:
2022-06-29 14:45:10 UTC
Severity:
serious
Tags:
#1013488#5
Date:
2022-06-24 07:14:19 UTC
From:
To:
Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
The full build log is available from:
http://qa-logs.debian.net/2022/06/24/horizon_22.1.0-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220624&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

#1013488#10
Date:
2022-06-29 09:34:45 UTC
From:
To:
FYI, 51 out of 52 of the unit test failures were due to the lack of
Django 4.x support in python3-django-compressor, which I fixed by
uploading the latest django-compressor version.

Now trying to fix the remaining...

Cheers,

Thomas Goirand (zigo)

#1013488#15
Date:
2022-06-29 09:34:45 UTC
From:
To:
FYI, 51 out of 52 of the unit test failures were due to the lack of
Django 4.x support in python3-django-compressor, which I fixed by
uploading the latest django-compressor version.

Now trying to fix the remaining...

Cheers,

Thomas Goirand (zigo)

#1013488#18
Date:
2022-06-29 12:32:06 UTC
From:
To:
Hello,

Bug #1013488 in horizon reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/openstack-team/services/horizon/-/commit/5805f9eb8435ec0dccc6c8e447c3abb98f4fd839

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1013488

#1013488#25
Date:
2022-06-29 14:43:56 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
horizon, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1013488@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated horizon package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 29 Jun 2022 11:03:24 +0200
Source: horizon
Architecture: source
Version: 3:22.1.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1013488
Changes:
 horizon (3:22.1.0-2) unstable; urgency=medium
 .
   * Blacklist test_site_branding_tag() (Closes: #1013488).
   * Add django-4.x-csrf-reasons.patch.
   * Add django-4.x-is_safe_url-is-removed.patch.
Checksums-Sha1:
 529f7ec36648b2f2cdd83a4ece049d0a4d0a646a 4460 horizon_22.1.0-2.dsc
 3d798c17d352834a0daf2ab0b500fd429e778b96 32264 horizon_22.1.0-2.debian.tar.xz
 c2f83a944b01823eae12f7f23f7d68d3e0faf659 17337 horizon_22.1.0-2_amd64.buildinfo
Checksums-Sha256:
 43a34fd25f310741a78d76fa1e25a49cca2a43394835698b6c5a24c137625741 4460 horizon_22.1.0-2.dsc
 236e3e779a3ddfb32daa37e0f6a155ee9e3ed7d90eee450ce8999b9e99cef957 32264 horizon_22.1.0-2.debian.tar.xz
 4e13d382264db8b3d0b887d23a4afc87698c79f1029e30d41f2245207ea7130e 17337 horizon_22.1.0-2_amd64.buildinfo
Files:
 012c36bc52b886757c16ef44fa9ae9aa 4460 net optional horizon_22.1.0-2.dsc
 0ca92d2fc8785dc6ab5b720b201ab2ad 32264 net optional horizon_22.1.0-2.debian.tar.xz
 df422da0b2d1d1ce31f51ac235271a0e 17337 net optional horizon_22.1.0-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmK8XsMACgkQ1BatFaxr
Q/5afQ/+JzrEGxzbVKjyIdxDWg4pZrHzllEDPSXRnDCd+ptGjlBhZKFP7lLo2XPN
IOBgwEUzuBlOnAgfNlRCDnVlnlMs/AOehCuvut9mvMh5hZHjNmot5OR9ijMc57IL
COyeHY1TE92OjnEt09McL0bXgELYFsBmiiz4NcU88b4iAyPi/AUeppFhiaW6KEsn
8QZ3kRJhG9DRVqIqyVE3nYk9qRr1nw0fLaORAyN6Oh0Epmbt8dQcjqmJdfAg5mwu
s8uAeBzVN0X4Anuesuu/fAv4ixQZsdiBvtGE4ELVGrIJcKi5AdBbCyftPFpYQUSP
nhW173huvxvD3jMNo+IkPYf3LFXxSoAKEpXAS7sK2r8YjwOca/6bE0JUm9DW1qNX
Eqshbhwh5uQSeSlx87KxwKRYo+4t07Wa7OtARZxo1VwcuJwkVI8w+qHzpu5VCFMT
42byL7JplrqB9EG36sT0dfjz2rzDsdprvuJ6mVm6JzmvSujASFp44Uy2PhNoQs50
RRpNHia0l9ipbmUnKJZLMTdA1g9u1jLWPs5sBcNNlkqkaPO1BoQHs5TgfEcaLPEb
/CqYteABuuI3MnWm5Bv81ETIX610FCAXRwlsh49lQdHlvexut5eBjQEY8vFOSZAK
z5oVVb9nDB8vMYOzFuPKCH8mmLD5r8jWtyEPKtjUUISl0ZdiPr0=
=OZiY
-----END PGP SIGNATURE-----