[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#972148: /usr/lib/python3/dist-packages/reportbug/debbugs.py: Crashes: TypeError: not all arguments converted during string formatting



Package: python3-reportbug
Version: 7.7.0
Severity: normal
File: /usr/lib/python3/dist-packages/reportbug/debbugs.py

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

reportbug crashes when I try to send a report to release.debian.org

$ reportbug release.debian.org
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Craig Small <csmall@debian.org>' as your from address.
Will send report to Debian (per lsb_release).
What sort of request is this? (If none of these things mean anything to you, or you are trying to report a bug in an existing package, please press Enter to exit reportbug.)

1 binnmu      binNMU requests
2 britney     testing migration script bugs
3 buster-pu   buster proposed updates requests
4 other       None of the other options
5 rm          Stable/Testing removal requests
6 stretch-pu  stretch proposed updates requests
7 transition  transition tracking
8 unblock     unblock requests

Choose the request type: 3
Please enter the name of the package: net-snmp
Checking status database...
Latest version seems to be 5.7.3+dfsg-5+deb10u1, is this the proper one ? [Y|n|?]? 
Traceback (most recent call last):
  File "/usr/bin/reportbug", line 2302, in <module>
    main()
  File "/usr/bin/reportbug", line 1107, in main
    return iface.user_interface()
  File "/usr/bin/reportbug", line 1709, in user_interface
    res = special_prompts(package, bts, ui, fromaddr,
  File "/usr/bin/reportbug", line 531, in special_prompts
    return pkgprompts(package, bts, ui, fromaddr, timeout, online, http_proxy)
  File "/usr/lib/python3/dist-packages/reportbug/debbugs.py", line 613, in handle_debian_release
    body = textwrap.dedent("""\
TypeError: not all arguments converted during string formatting

The issue is line 644 of /usr/lib/python3/dist-packages/reportbug/debbugs.py where there is:
                """ % (package, package, version))
This should be:
                """)
 
It seems to work with this change.

- -- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.8.0-3-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-reportbug depends on:
ii  apt                2.1.10
ii  file               1:5.38-5
ii  python3            3.8.2-3
ii  python3-apt        2.1.3
ii  python3-debian     0.1.38
ii  python3-debianbts  3.0.2
ii  python3-requests   2.23.0+dfsg-2
ii  sensible-utils     0.0.12+nmu1

python3-reportbug recommends no packages.

Versions of packages python3-reportbug suggests:
ii  reportbug  7.7.0

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEXT3w9TizJ8CqeneiAiFmwP88hOMFAl+FeU8SHGNzbWFsbEBk
ZWJpYW4ub3JnAAoJEAIhZsD/PITjb5IP/iSl0gn/oWoqYRVbZbS3EuZgEzJmnL45
lIMkmSoLNwvI8ZGDu9vJ5r9ssI93pY5saS7nbLMmDeQg94ekRZlLp+UdykmdbMia
Dav3FmJsFR8pa9oOnAPGgUi5OMAJLBAEEIUG4ZDO6bRNQUATc7atRCQ04jbZl9q4
gYps81UGTs7WEcuUO/ZpTBUMy4bkwV4h9dGdr4OAl1AyB/rTX5WZRDsn45PAExxu
yQGccfmBEeOg8OASwieJE2fvJs/mK5ZRCqfxgaeaEENIjSEuXdTKE7ZgTmbTPXBK
HQZ/dVlUnc2KUIR/n6/H6z3E+ur2wcZYDDcBgNRo9eZ5VFl6J8RkgeaD3Y0z6nsE
gFH56QyBpDyL4xH+tZvWM6yaZFPjb4NTyfuUyGQTVpOeKl8Xm8R1u47G84t+GBsx
/nfcTH77lLmN7Li48A+ERgY17887LeVfxALA9/uQaPBvy7MhjgRXKOLWjLqpY+Ce
8UfD/1ohkeDKDz8aIAWS1keXg7wwXN0FpDVO74N9J9azAPscCkxbGXbFcIA/PMaK
9Wm4bC8LQYA2G/Px+tAd/LHJUvJ0lzaSvf3wQVxqp+G8qKXFGLWKLRcwEPDIXW5O
KhMaS8MKAZFtjToh+Hcl74DfhjKbQU9pS6zMQrQOpYEJzjK7C1UN+/BaKXvEwhH9
KeXIjFG4uvYK
=zUGM
-----END PGP SIGNATURE-----


Reply to: