I'm assuming this was related to the fixes for #232 / #251; fedpkg 1.35-1 as packaged in Fedora 29 currently fails to start, complaining that there is no pagure config section.
~ % fedpkg Traceback (most recent call last): File "/bin/fedpkg", line 11, in <module> load_entry_point('fedpkg==1.35', 'console_scripts', 'fedpkg')() File "/usr/lib/python3.7/site-packages/fedpkg/__main__.py", line 58, in main client = fedpkg.cli.fedpkgClient(config, name=cli_name) File "/usr/lib/python3.7/site-packages/fedpkg/cli.py", line 92, in __init__ self.setup_fed_subparsers() File "/usr/lib/python3.7/site-packages/fedpkg/cli.py", line 112, in setup_fed_subparsers self.register_request_repo() File "/usr/lib/python3.7/site-packages/fedpkg/cli.py", line 267, in register_request_repo '{0}.pagure'.format(self.name), 'url')).netloc) File "/usr/lib64/python3.7/configparser.py", line 780, in get d = self._unify_values(section, vars) File "/usr/lib64/python3.7/configparser.py", line 1146, in _unify_values raise NoSectionError(section) from None configparser.NoSectionError: No section: 'fedpkg.pagure'
This is the code it's choking on:
description = '''Request a new dist-git repository Before requesting a new dist-git repository for a new package, you need to [...] fedpkg request-repo --namespace modules foo '''.format(self.name, urlparse(self.config.get( '{0}.pagure'.format(self.name), 'url')).netloc)
fedpkg.pagure is part of fedpkg.conf which is installed to users system. What is your use case of fedpkg that causes fedpkg.pagure is not present in the config?
fedpkg.pagure
fedpkg.conf
If you upgrade fedpkg recently, please check if there is .rpmnew or .rpmsave in /etc/rpkg/.
.rpmnew
.rpmsave
/etc/rpkg/
It seems it is not a problem anymore so just to summarize:
Section 'fedpkg.pagure' in config is present in all supported versions of fedpkg. If there is not such a version currently installed, it can be added manually:
[fedpkg.pagure] url = https://pagure.io/
or use backup files as it was mentioned above. Example: upcoming fedpkg version 1.38 will contain config change and therefore there is a warning during installation about config change.
$ yum install fedpkg Downloading Packages: Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : fedpkg-1.38-1.fc31.noarch 1/2 warning: /etc/rpkg/fedpkg.conf created as /etc/rpkg/fedpkg.conf.rpmnew Cleanup : fedpkg-1.37-9.fc31.noarch 2/2 Running scriptlet: fedpkg-1.37-9.fc31.noarch 2/2 Verifying : fedpkg-1.38-1.fc31.noarch 1/2 Verifying : fedpkg-1.37-9.fc31.noarch 2/2 Upgraded: fedpkg-1.38-1.fc31.noarch Complete! $
Metadata Update from @onosek: - Issue close_status updated to: Fixed - Issue status updated to: Closed (was: Open)