Dear Maintainer,
dput is throwing a traceback when I try to upload a package:
```
dput ../golang-github-protonmail-gopenpgp-v3_3.5.2-2_source.changes
Trying to upload package to
Traceback (most recent call last):
File "/usr/bin/dput", line 8, in <module>
sys.exit(main())
~~~~^^
File "/usr/share/dput/dput/dput.py", line 923, in main
fqdn = get_fqdn_for_host(config, host)
File "/usr/share/dput/dput/dput.py", line 194, in get_fqdn_for_host
if config.get(host, 'method') == "local":
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/configparser.py", line 839, in get
d = self._unify_values(section, vars)
File "/usr/lib/python3.14/configparser.py", line 1214, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: ''
```
Best regards,
Martin
Control: retitle -1 dput: NoSectionError when determined host name empty
Control: tags -1 moreinfo
Thank you for including the traceback, and the various DPut configuration
files.
Can you please run the command again the same way, except this time with
the ‘--debug’ option:
$ dput --debug ../golang-github-protonmail-gopenpgp-v3_3.5.2-2_source.changes
and report the full output here.
Howdy Martin,
Are you able to build and try a work-in-progress branch, to see how it
changes this behaviour?
The branch is in my personal fork at Salsa,
<URL: https://salsa.debian.org/bignose/dput/-/commits/wip/issue/1150096/host-empty-raises-nosectionerror>.
If you can build and install that package, please run the command again
with debug messages:
$ dput --version
dput 1.2.6~pre1
$ dput --debug ../golang-github-protonmail-gopenpgp-v3_3.5.2-2_source.changes
Dear Ben, thank you for the fast reply. Yes, of course: Best regards, Martin
Dear Ben, thank you very much, this fixes it! Best regards, Martin
Control: tags -1 - moreinfo + pending Great to know. Thank you for reporting here the full debug output, that has helped confirm what the new behaviour is doing. The new behaviour will be part of the upcoming release of this package.
We believe that the bug you reported is fixed in the latest version of
dput, 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 1150096@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ben Finney <bignose@debian.org> (supplier of updated dput 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 07 Oct 2026 22:05:22 +1100
Source: dput
Architecture: source
Version: 1.2.6
Distribution: unstable
Urgency: medium
Maintainer: Ben Finney <bignose@debian.org>
Changed-By: Ben Finney <bignose@debian.org>
Closes: 1150096
Changes:
dput (1.2.6) unstable; urgency=medium
.
* The “Deborah Jin” release.
.
[ Guillem Jover ]
* docs/FAQ:
* Update FAQ to more accurately compare with ‘dupload’ features.
* docs/*:
* Use “OpenPGP” when referring to the standard.
.
[ Ben Finney ]
* debian/README.source:
* Update documentation of pre-release development convention.
* debian/dput.install:
* Explicitly install files needed for this package.
* debian/rules:
* Explicitly disable legacy “single-binary” DebHelper behaviour.
* Better diagnostic messages when determining upload host name.
* Interpret empty `default_host_main` config parameter as missing.
Closes: bug#1150096. Thanks to Martin Dosch for the report.
Checksums-Sha1:
4f2808ffaea69dabd085e0e50f22faa613a2a728 1902 dput_1.2.6.dsc
57beafd667029f0fd999cd8b75d1ce960c998d70 2780716 dput_1.2.6.tar.xz
838a9438062cc2ae691417a54ec93f6a9a07f28d 8100 dput_1.2.6_amd64.buildinfo
Checksums-Sha256:
8a475da0d7b20f601349f805ddc2625e04f02649dccefba68bc30d7d9d4f9a2d 1902 dput_1.2.6.dsc
fa6daa3fe08ff2332330ac44236bc405850fc9d001870bc24caa47ba8a122be0 2780716 dput_1.2.6.tar.xz
6b94d671ac9f3f52671a36ab330f32818d58749767c543d53d845b03ace7ce53 8100 dput_1.2.6_amd64.buildinfo
Files:
a3348d5829c6bd7d12a583d024c68508 1902 devel optional dput_1.2.6.dsc
e74aec16bcfd5a2c9bb246e1e30c9132 2780716 devel optional dput_1.2.6.tar.xz
094dda77fd2d6ac9af22cb9d4021cd0a 8100 devel optional dput_1.2.6_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEXfQ3Ydd+6BMR2Ur+B+hY8vqvVjgFAmrGKZMACgkQB+hY8vqv
VjgcQg//X/63N3+JxnlXk/J5BdAcBcnreg5hbA+KexRTlRIJIHg/IpyUXx61aU/u
HUu5we4t1oHGuUJp5kOgTi/cGnihB/fVlu/CEiBwgr5v/jc82QFBX/fKUO0iFtgE
QAevEd61pI1sAD3fLGRCdW3AtgmT0bFjPZgo1MTRar2m4OLUxenj9CpkMDl+0ltE
Zhn6gx8lSBPTRR5G7XSssC5CU1vZSUMFVNyaVhfqMJcPDB8GJm7Y9SpmQW1v5rmd
HBuLbvzOuBCr0P+TB0UubcKcSutFdzSBlIiLWFFrVwwW0V1frMYUVcabjDzk/QEh
yoLejQQ+8xa/W+nyw6i4sfAXYcIisKNUh3ZlPcRTJfoscL29MM3IqjWStALUHVli
TAcxw0x+ieEL3W68flUP4XD/cHIX1y162pojsee2Upt5cN6XBtbRo3TKeTly3Yoc
WlDIgeOW091kE4rgTf4Z8GA4ge9OA63NJ789sA1i+w5pR7N++pwHDWQ64JGAQ3op
lFuiVfm8y1QqZxFqksFSKROvmIjLuAUtEhTbIP9Z9bjNfGalbLuuqmEG+5FOF5WS
LGMfkFX3NNBbMBSKPv3InC5I0c4S6u1y8v83mV/9N0b0p4vDySuzqNGXDDGxjwu0
2Z3tmR87Pkp9oajpenuuaPbNXkZpdd+WVcD7Wk0AZuWef6cjvFA=
=fSN9
-----END PGP SIGNATURE-----