Bug#1013493: python-django-jsonfield: FTBFS: ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist-packages/django/utils/translation/__init__.py)

2022-07-30 Thread Raphael Hertzog
Hello,

On Fri, 24 Jun 2022, Lucas Nussbaum wrote:
> During a rebuild of all packages in sid, your package failed to build
> on amd64.

Thanks but I will not fix this bug. Intsead I have asked to remove
this package from unstable since it has been superseded by a native
field provided by Django:
https://docs.djangoproject.com/en/3.2/ref/models/fields/#jsonfield

Removal bug: https://bugs.debian.org/1016370

Cheers,
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS



Bug#1013493: python-django-jsonfield: FTBFS: ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/lib/python3/dist-packages/django/utils/translation/__init__.py)

2022-06-24 Thread Lucas Nussbaum
Source: python-django-jsonfield
Version: 1.4.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220624 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[1]: Entering directory '/<>'
> dh_auto_test -- --system=custom --test-args="{interpreter} 
> debian/run_tests.py"
> I: pybuild base:239: python3.9 debian/run_tests.py
> Traceback (most recent call last):
>   File "/<>/debian/run_tests.py", line 23, in 
> django.setup()
>   File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in 
> populate
> app_config = AppConfig.create(entry)
>   File "/usr/lib/python3/dist-packages/django/apps/config.py", line 228, in 
> create
> import_module(entry)
>   File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1030, in _gcd_import
>   File "", line 1007, in _find_and_load
>   File "", line 986, in _find_and_load_unlocked
>   File "", line 680, in _load_unlocked
>   File "", line 850, in exec_module
>   File "", line 228, in _call_with_frames_removed
>   File "/<>/jsonfield/__init__.py", line 3, in 
> from .fields import JSONField
>   File "/<>/jsonfield/fields.py", line 9, in 
> from django.utils.translation import ugettext_lazy as _
> ImportError: cannot import name 'ugettext_lazy' from 
> 'django.utils.translation' 
> (/usr/lib/python3/dist-packages/django/utils/translation/__init__.py)
> E: pybuild pybuild:369: test: plugin custom failed with: exit code=1: 
> python3.9 debian/run_tests.py
> I: pybuild base:239: python3.10 debian/run_tests.py
> Traceback (most recent call last):
>   File "/<>/debian/run_tests.py", line 23, in 
> django.setup()
>   File "/usr/lib/python3/dist-packages/django/__init__.py", line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File "/usr/lib/python3/dist-packages/django/apps/registry.py", line 91, in 
> populate
> app_config = AppConfig.create(entry)
>   File "/usr/lib/python3/dist-packages/django/apps/config.py", line 228, in 
> create
> import_module(entry)
>   File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1050, in _gcd_import
>   File "", line 1027, in _find_and_load
>   File "", line 1006, in _find_and_load_unlocked
>   File "", line 688, in _load_unlocked
>   File "", line 883, in exec_module
>   File "", line 241, in _call_with_frames_removed
>   File "/<>/jsonfield/__init__.py", line 3, in 
> from .fields import JSONField
>   File "/<>/jsonfield/fields.py", line 9, in 
> from django.utils.translation import ugettext_lazy as _
> ImportError: cannot import name 'ugettext_lazy' from 
> 'django.utils.translation' 
> (/usr/lib/python3/dist-packages/django/utils/translation/__init__.py)
> E: pybuild pybuild:369: test: plugin custom failed with: exit code=1: 
> python3.10 debian/run_tests.py
> dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.10" 
> --system=custom "--test-args={interpreter} debian/run_tests.py" returned exit 
> code 13


The full build log is available from:
http://qa-logs.debian.net/2022/06/24/python-django-jsonfield_1.4.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na=ign=7=7=only=ftbfs-20220624=lu...@debian.org=1=1=1=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.