Your message dated Sat, 12 Jul 2025 10:49:02 +0000
with message-id <e1uaxmw-0090yb...@fasolo.debian.org>
and subject line Bug#1101140: fixed in blurhash-python 1.1.4+ds-1
has caused the Debian Bug report #1101140,
regarding blurhash-python: upstream metadata is wrong and confusing
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
1101140: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1101140
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: blurhash-python
Version: 1.1.4-4
Severity: normal
python-mastodon Build-Depends on python3-blurhash. Currently its tests
aren't run at build time, but I added a direct build-dependency on
python3-pytest to fix that, only to find that a blurhash-related test
failed as follows:
___________________________ test_blurhash_decode ___________________________
api = <mastodon.Mastodon.Mastodon object at 0x7f7b059e5350>
def test_blurhash_decode(api):
fake_media_dict = {
'width': 320,
'height': 240,
'blurhash': '=~NdOWof1PbIPUXSvgbI$f'
}
> decoded_image = api.decode_blurhash(fake_media_dict)
tests/test_blurhash.py:13:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <mastodon.Mastodon.Mastodon object at 0x7f7b059e5350>, media_dict =
{'blurhash': '=~NdOWof1PbIPUXSvgbI$f', 'height': 240, 'width': 320}, out_size =
(16, 16)
size_per_component = True, return_linear = True
def decode_blurhash(self, media_dict, out_size=(16, 16),
size_per_component=True, return_linear=True):
"""
Basic media-dict blurhash decoding.
out_size is the desired result size in pixels, either absolute or per
blurhash
component (this is the default).
By default, this function will return the image as linear RGB, ready
for further
scaling operations. If you want to display the image directly, set
return_linear
to False.
Returns the decoded blurhash image as a three-dimensional list:
[height][width][3],
with the last dimension being RGB colours.
For further info and tips for advanced usage, refer to the
documentation for the
blurhash module: https://github.com/halcy/blurhash-python
"""
if not IMPL_HAS_BLURHASH:
raise NotImplementedError(
'To use the blurhash functions, please install the blurhash
Python module.')
# Figure out what size to decode to
> decode_components_x, decode_components_y =
blurhash.components(media_dict["blurhash"])
E AttributeError: module 'blurhash' has no attribute 'components'
mastodon/utility.py:104: AttributeError
I then investigated the blurhash-python source package. In the process,
I found that:
* Both https://pypi.org/project/blurhash/ (=
https://github.com/halcy/blurhash-python) and
https://pypi.org/project/blurhash-python/ exist, and are entirely
different packages
* The Debian package incorrectly claims to be related to
https://github.com/halcy/blurhash-python (in debian/control Homepage
and debian/upstream/metadata) and of the "blurhash" package on PyPI
(in debian/watch)
* The Debian package claims to be at upstream version 1.1.4, which is
the current version of the "blurhash" package on PyPI but is not a
version that has ever been released of the "blurhash-python" package
on PyPI (which went from 1.1.3 to 1.2.0)
* Debian's "blurhash-python_1.1.4.orig.tar.gz" is in fact identical to
blurhash-python 1.1.3 from PyPI, i.e.
https://files.pythonhosted.org/packages/d3/3d/311668b9bad012d83f48c2f41e31cacd97730df2155d1f92a2834fca0f9c/blurhash-python-1.1.3.tar.gz
Given that the only reverse-dependency (actually a reverse-recommends)
on python3-blurhash in Debian is python3-mastodon, and that's
demonstrably incompatible with the version that's actually packaged, I'm
inclined to suggest that the best fix might be to change the package to
match its claimed upstream metadata rather than the other way round: in
other words, replace the current blurhash-python package contents with
blurhash 1.1.4 from PyPI, versioning it as
1.1.4+ds-1 or similar. (Keeping the current source package name doesn't
seem too unreasonable, since it matches upstream's GitHub repository
name even if it doesn't match the PyPI package name.)
But I don't know if this was originally packaged for the benefit of
python-mastodon, or for some other reason. CCing Edward in case he
remembers.
Thanks,
--
Colin Watson (he/him) [cjwat...@debian.org]
--- End Message ---
--- Begin Message ---
Source: blurhash-python
Source-Version: 1.1.4+ds-1
Done: Edward Betts <edw...@4angle.com>
We believe that the bug you reported is fixed in the latest version of
blurhash-python, 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 1101...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Edward Betts <edw...@4angle.com> (supplier of updated blurhash-python 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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Sat, 12 Jul 2025 11:19:46 +0200
Source: blurhash-python
Architecture: source
Version: 1.1.4+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Edward Betts <edw...@4angle.com>
Closes: 1101140
Changes:
blurhash-python (1.1.4+ds-1) unstable; urgency=medium
.
* Switch to correct upstream source. (Closes: #1101140)
* Drop patch to remove python-six, no longer needed.
* Remove unused Build-Depends.
* Package is now Architecture: all.
* Simplify debian/rules.
* Update Standards-Version.
Checksums-Sha1:
93417d9df3938e253659d333a37b46fd1829bd04 2104 blurhash-python_1.1.4+ds-1.dsc
46206172af27f670ee22f5340b27dcc1d0d93076 4738
blurhash-python_1.1.4+ds.orig.tar.gz
7242231fc29c38fabef3534a11f1f646acf601e4 2532
blurhash-python_1.1.4+ds-1.debian.tar.xz
405b796c144124ce5c65186bff625ae561adba73 7225
blurhash-python_1.1.4+ds-1_source.buildinfo
Checksums-Sha256:
d7de27fb33fe3bef1569bcc78d056b5193c9cba701c785478fde13212964281c 2104
blurhash-python_1.1.4+ds-1.dsc
da56b163e5a816e4ad07172f5639287698e09d7f3dc38d18d9726d9c1dbc4cee 4738
blurhash-python_1.1.4+ds.orig.tar.gz
a94e0b6c5661ddce2880f3f93ca28bab4364199908b78052334ed6035bf0d6c3 2532
blurhash-python_1.1.4+ds-1.debian.tar.xz
a11337fe2d0eb4eb657f0328254c95231f67c8f0bd60445f71715c84c3761777 7225
blurhash-python_1.1.4+ds-1_source.buildinfo
Files:
5a65c2806e19c7b90a86450a46e213b3 2104 python optional
blurhash-python_1.1.4+ds-1.dsc
96a189ee4a45dc0c7cebafe10de6f377 4738 python optional
blurhash-python_1.1.4+ds.orig.tar.gz
0e7338698a6cc9110fd3c0ea3ec26e88 2532 python optional
blurhash-python_1.1.4+ds-1.debian.tar.xz
2881bab6bb2d3e57e788fe9f004b72f9 7225 python optional
blurhash-python_1.1.4+ds-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE+4rPp4xyYInDitAmlgWhCYxjuSoFAmhyOkMACgkQlgWhCYxj
uSrFzw/+ISzdYkGoULW3rLPV7qRDKk84fa/G8gZlQ2rYkJQj6LgaHD9+KGZEp13N
WZmoOR1THz2vIsQCVnIgupQiwN3D8qVFzhaVbLMXhnXAaIFIUTedWqLXEKXD8kz7
NHzzJCN3SBwzKeHtqKu5wzP09aX/PeYC6Vn4TNEkFXXnMxdJVEDJ+M5n9skMBzZy
xLrhS6FlvcNvvliQJng1ZUP65BlVGpnzDZg04A0Bgw7yxq3lETc+8atbH/Ey5Ung
FzC7Rbi9dj9OmuX3YhWOEWB6i4qCrRVm8fQdPnGwwUzJuyyTkVz3Wu0sYRDCI+Ij
YxPUTBA8gLu+/yX8tuqzJa+uFx1eyed2dTTeWli7SQoTMUfPvmdLQ1fujCjcwgTB
4WVfvwalxOZnzTcP4s1s3wsFu3tfx0WZcwuzbXJixBIM54an/Uk5PeXqy0+bF7NA
flJxCM07cdxTLHoRfsolLjjct72DU6dwQEK5iGwYA/J3KXtHmSHRRtvaIR5Ble5c
MKDnr9F0Bzw19ZjPyCFwOM3YexF08dMyEXQ9Z0VIc8uaSJVrqjkhcKURNAgXr8rg
554WWB59GsmoX5by8VPwooECOzOBmXqE8q6bgAnIqO+wYSFYOS/nsVWsfhVGHiny
1UChXSCyAFeahrTWl9SVjv455b5OaoD88p/2auRXC+ISpEha40I=
=hx1d
-----END PGP SIGNATURE-----
pgpuJpu8ay0Zr.pgp
Description: PGP signature
--- End Message ---