6

YUM Problem on Fedora 8

view full story
linux-howto

http://forums.fedoraforum.org – HI all, I have a prblem with YUM. when ever I want to install any rpm package by clicking it, I get the following error Component: pirut Summary: TB29ec97ad ini.py:563:readfp:UnboundLocalError: local variable 'line' referenced before assignment Traceback (most recent call last): File "/usr/sbin/pirut", line 476, in <module> main() File "/usr/sbin/pirut", line 469, in main pm = PackageManager(options.config, options.onlyrepo) File "/usr/sbin/pirut", line 63, in __init__ GraphicalYumBase.__init__(self, False, config) File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 129, in __init__ plugin_types=(yum.plugins.TYPE_CORE,)) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 140, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 198, in _getConfig self.getReposFromConfig() File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 300, in getReposFromConfig self.getReposFromConfigFile(repofn, repo_age=thisrepo_age) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 233, in getReposFromConfigFile parser.readfp(confpp_obj) File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp self.data.readfp(fp) File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 563, in readfp if line and line[-1]=='\n': UnboundLocalError: local variable 'line' referenced before assignment Local variables in innermost frame: pending_lines: [] fp: <yum.parser.ConfigPreProcessor instance at 0xa24248c> exc: None self: cur_section_name: None linecount: 0 cur_option_name: None fname: file://///etc/yum.repos.d/google.repo cur_option: None cur_section: None and when I type yum in the shell, I get the following error. [rehman@localhost ~]$ su Password: [root@localhost rehman]# yum Traceback (most recent call last): File "/usr/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 229, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 84, in main base.getOptionsConfig(args) File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig enabled_plugins=self.optparser._splitArg(opts.enab leplugins)) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 198, in _getConfig self.getReposFromConfig() File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 300, in getReposFromConfig self.getReposFromConfigFile(repofn, repo_age=thisrepo_age) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 233, in getReposFromConfigFile parser.readfp(confpp_obj) File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp self.data.readfp(fp) File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 563, in readfp if line and line[-1]=='\n': UnboundLocalError: local variable 'line' referenced before assignment [root@localhost rehman]# Please help me fixing this problem (HowTos)