Your message dated Sat, 22 Mar 2025 06:05:17 +0000
with message-id <[email protected]>
and subject line Bug#940799: fixed in python-whisper 1.1.10-1
has caused the Debian Bug report #940799,
regarding whisper-resize: TypeError: object of type 'map' has no len()
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 [email protected]
immediately.)
--
940799: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940799
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-whisper
Version: 1.1.4-2
The whisper-resize script assumes Python 2, despite being in a python3-
package:
root@monitor:/var/lib/graphite/whisper/snmp# whisper-resize --nobackup
--aggregate
./escalabra/snmp/if_octets-Slot__0_Port__4_Gigabit_-_Level/rx.wsp 10s:1d
1m:7d 10m:1y
Retrieving all data from the archives
Creating new whisper database:
./escalabra/snmp/if_octets-Slot__0_Port__4_Gigabit_-_Level/rx.wsp.tmp
Created:
./escalabra/snmp/if_octets-Slot__0_Port__4_Gigabit_-_Level/rx.wsp.tmp
(855412 bytes)
Migrating data with aggregation...
oldtimestamps: <map object at 0x7fc7a06259e8>
(1568833216,1568919626,10)
timepoints_to_update: range(1568833216, 1568919626, 10)
Traceback (most recent call last):
File "/usr/bin/whisper-resize", line 147, in <module>
lefti = bisect.bisect_left(oldtimestamps, tinterval[0])
TypeError: object of type 'map' has no len()
A patch for these issues is attached.
ttfn/rjk
--- whisper-resize 2018-12-12 11:42:45.000000000 +0000
+++ whisper-resize.fixed 2019-09-19 20:06:27.867197176 +0100
@@ -110,7 +110,7 @@
for archive in old_archives:
# Loading all datapoints into memory for fast querying
timeinfo, values = archive['data']
- new_datapoints = zip(range(*timeinfo), values)
+ new_datapoints = list(zip(range(*timeinfo), values))
if all_datapoints:
last_timestamp = all_datapoints[-1][0]
slice_end = 0
@@ -122,8 +122,8 @@
else:
all_datapoints += new_datapoints
- oldtimestamps = map(lambda p: p[0], all_datapoints)
- oldvalues = map(lambda p: p[1], all_datapoints)
+ oldtimestamps = list(map(lambda p: p[0], all_datapoints))
+ oldvalues = list(map(lambda p: p[1], all_datapoints))
print("oldtimestamps: %s" % oldtimestamps)
# Simply cleaning up some used memory
@@ -148,7 +148,7 @@
righti = bisect.bisect_left(oldtimestamps, tinterval[1], lo=lefti)
newvalues = oldvalues[lefti:righti]
if newvalues:
- non_none = filter(lambda x: x is not None, newvalues)
+ non_none = list(filter(lambda x: x is not None, newvalues))
if 1.0 * len(non_none) / len(newvalues) >= xff:
newdatapoints.append([tinterval[0],
whisper.aggregate(aggregationMethod,
--- End Message ---
--- Begin Message ---
Source: python-whisper
Source-Version: 1.1.10-1
Done: Alexandre Rossi <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-whisper, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Alexandre Rossi <[email protected]> (supplier of updated python-whisper 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 21 Mar 2025 16:06:17 +0100
Source: python-whisper
Built-For-Profiles: noudeb
Architecture: source
Version: 1.1.10-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Graphite Group <[email protected]>
Changed-By: Alexandre Rossi <[email protected]>
Closes: 940799 1023747
Changes:
python-whisper (1.1.10-1) unstable; urgency=medium
.
* Team upload.
* include nmus for 1.1.4-2.1 and 1.1.4-2.2 (Closes: #1023747)
* New upstream version 1.1.10 (Closes: #940799)
* fix d/watch
* configure pristine-tar
* add myself as uploader
* fix groff warnings for manpages
* debhelper-compat 13
* suggest python3-rrdtool (rrd2whisper dependency)
* update d/copyright to 2025
* remove useless perl build dep
* add missing manpages
* do not install useless contrib scripts, fix-up script perms
* whisper-auto-resize: avoid usage of distutils (deprecated)
* d/copyright: use license short name
* declare compliance to policy 4.7.2 (no change)
* drop obsolete python2 package Conflicts
* enable salsa-ci
* run testsuite as autopkgtest
* override lintian notices of scripts in non-app package
Checksums-Sha1:
df7a070bcb46d7252c36e512d643ddc246f79037 2187 python-whisper_1.1.10-1.dsc
550ae1a87d3a585c8e5b8ffcf90e59f42c1d35cd 42835
python-whisper_1.1.10.orig.tar.gz
be1d8ca9c0adf2f5cd42b4f5fac66107bfd906a5 6648
python-whisper_1.1.10-1.debian.tar.xz
e1595b19fac59a9f23d12e88208505703ce06758 14998
python-whisper_1.1.10-1_source.buildinfo
Checksums-Sha256:
6b094b34d9dc929aca2df979e5ccdd649306a8d2503dee8491ec3e1c2ada9a62 2187
python-whisper_1.1.10-1.dsc
435b4fb843c4c752719bdf0511a652d5be710e9bb35ad9ebe3b133268ee31c44 42835
python-whisper_1.1.10.orig.tar.gz
226ed5189cb4f8622946d9506546d485b5fe70774379709025daa7327910ceda 6648
python-whisper_1.1.10-1.debian.tar.xz
e9a4328ef5cb8b12009be51892f724dd68086b52c1df18e4946ef488b552e0c0 14998
python-whisper_1.1.10-1_source.buildinfo
Files:
5f56c1cbbc3e3da959bbde53858cf156 2187 python optional
python-whisper_1.1.10-1.dsc
b58d43967ea86f19bdd4fa1261d350fe 42835 python optional
python-whisper_1.1.10.orig.tar.gz
e37ebaf3df3ca20891fd603d3705816f 6648 python optional
python-whisper_1.1.10-1.debian.tar.xz
6c47913f955d3d2f210df427d3e1a5eb 14998 python optional
python-whisper_1.1.10-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmfeTvIACgkQQoMEoXSN
zHr3Ow/9FHPSQ9IJlNr8uRhTdkOeUv/IW1ZcXy+32gcK8KUMWnnp9gbkgWJFlMd1
dLYb1EoRNvPfcUKMFuqPrV7scuRXnX///9G8O3yBds7Lg3ab3mMa25AKWcYg5bAY
PomIoM5/kKGt0hh4vq1o3RrdeDc9ugdHtbCi7v9eJCh/uX3uQawZQBAop3f9Fqp8
qh/70aoQvVE9eG3TfBjx4Q6VyKsCivqklB/1Ah9L58jpMFcULBgCeX2v8bRNhqb2
NM2rdpwJsCpZeo3Vaz6HKI5qaHlHiugPvy5r0WbG7VDGioAybwGx7LwlYGHvgSa5
67NKDqcAO1eYPS5heY8peKRkHXYjz56KVZzqMHRbBhHcigEDm9KmPGFTtRrchCxv
FUp1Xttbwx1Se8PBsGH6MD62oE4k/9K0lvVRlHElDydZlR+fuf4SVkU271ZyaP91
XyIWI/hLYdOl8Uvl6SLeiILu5V2rgEYxMHkfFGcAzjjgFj1em2FYfsTl+b00ZNF0
w5HyMx68wKbagcBjNE3vVUFQXRK7U8SC+iTxUbsC+fpJ3tFwssWy88OsAjsFbdU2
B8prY2k1aEyG5hvIZjJW64IimuZBUVw2ZWmFkMbd/Y6745P0A+l0sZ5TqMe+aQQv
71yjnlTlSThAed1DJGTNrH3VMAi502LU48En9K0yYbOHQz6Mz/M=
=EG0J
-----END PGP SIGNATURE-----
pgpTRwYkJr5A1.pgp
Description: PGP signature
--- End Message ---