ftbfs against python3-django 3:4.2.4-1

Bug #2034629 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
senlin-dashboard (Ubuntu)
New
Undecided
Unassigned

Bug Description

senlin-dashboard is failing to build after a minor Debian update. The update performs a more aggressive cleanup, to address a prior ftbfs in Debian; however it isn't clear that is the cause of this failure.

Of note, Debian builds against the older 3.2.20 version of python3-django, whereas we build against the newer 4.2.4. It is not obvious if that is the cause of the failure either, but seems more plausible.

Debian:
  Get:172 https://deb.debian.org/debian unstable/main amd64 python3-django all 3:3.2.20-1.1 [2827 kB]
  https://buildd.debian.org/status/fetch.php?pkg=senlin-dashboard&arch=all&ver=7.0.0-3&stamp=1692632402&raw=0

Ubuntu:
  Get:151 http://ftpmaster.internal/ubuntu mantic-proposed/main amd64 python3-django all 3:4.2.4-1 [2912 kB]
  https://launchpadlibrarian.net/685577281/buildlog_ubuntu-mantic-amd64.senlin-dashboard_7.0.0-3_BUILDING.txt.gz

======================================================================
ERROR: test_index_cluster_list_exception (senlin_dashboard.cluster.clusters.tests.ClustersTest.test_index_cluster_list_exception)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openstack_dashboard/test/helpers.py", line 134, in wrapped
    retval = function(inst, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/senlin_dashboard/cluster/clusters/tests.py", line 54, in test_index_cluster_list_exception
    self.assertMessageCount(res, error=1)
  File "/usr/lib/python3/dist-packages/horizon/test/helpers.py", line 203, in assertMessageCount
    temp_req = self.client.request(**{'wsgi.input': None})
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 886, in request
    response = self.handler(environ)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/test/client.py", line 168, in __call__
    request = WSGIRequest(environ)
              ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/core/handlers/wsgi.py", line 78, in __init__
    self._stream = LimitedStream(self.environ["wsgi.input"], content_length)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/django/core/handlers/wsgi.py", line 24, in __init__
    self._read = stream.read
                 ^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'read'

Revision history for this message
Bryce Harrington (bryce) wrote :

As a note, masakari-dashboard appears to be a similar situation. Different error messages, but also started failing after a seemingly minor cleanup change, and Debian doesn't build the package against the newer Django.

https://launchpadlibrarian.net/685577052/buildlog_ubuntu-mantic-amd64.masakari-dashboard_8.0.0-4_BUILDING.txt.gz

py3versions: no X-Python3-Version in control file, using supported versions
for i in 3.11 ; do \
 PYTHONPATH=/<<PKGBUILDDIR>>/debian/tmp/usr/lib/python3/dist-packages \
  python$i /<<PKGBUILDDIR>>/manage.py test masakaridashboard.test -v 2 --settings=masakaridashboard.test.settings --exclude-tag integration ; \
done
Excluding test tag(s): integration.
Found 0 test(s).
Skipping setup of unused database(s): default.
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/manage.py", line 25, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  [...]
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/<<PKGBUILDDIR>>/masakaridashboard/dashboard.py", line 18, in <module>
    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)
make[1]: *** [debian/rules:45: override_dh_auto_test] Error 1

Bryce Harrington (bryce)
summary: - ftbfs gainst python3-django 3:4.2.4-1
+ ftbfs against python3-django 3:4.2.4-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.