The yum fails with "TypeError: getLoginInfo() takes no arguments (1 given)"
Issue
- On RHEL 5/6
yum updatefails with below error,
# yum update
Loaded plugins: aliases, changelog, downloadonly, fastestmirror, filter-data,
: keys, kmod, list-data, protect-packages, protectbase, rhnplugin,
: security, tmprepo, verify, versionlock
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 187, in getOptionsConfig
self.conf
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 665, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 254, in _getConf ig
self.plugins.run('init')
File "/usr/lib/python2.4/site-packages/yum/plugins.py", line 179, in run
func(conduitcls(self, self.base, conf, **kwargs))
File "/usr/lib/yum-plugins/rhnplugin.py", line 125, in init_hook
login_info = up2dateAuth.getLoginInfo(timeout=timeout)
TypeError: getLoginInfo() takes no arguments (1 given)
Environment
- Red Hat Enterprise Linux 5 with below packages,
- yum-rhn-plugin-0.5.4.1-7.el5.noarch or newer
- rhn-client-tools-0.4.20-33.el5.noarch or older
- Red Hat Enterprise Linux 6 with below packages,
- yum-rhn-plugin-0.9.1-49.el6.noarch or newer
- rhn-client-tools-1.0.0.1-4.el6.noarch or older
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
