On Mon, Mar 16, 2009 at 10:37 PM, Seth Vidal <skvidal@xxxxxxxxxxxxxxxxx> wrote: > > > On Mon, 16 Mar 2009, pranjal pandit wrote: > >> hello, >> I am encountering an error compiling yum source, 3.2.X Branch - yum-3_2_X. >> i used command in /yum: ./yummain install sip >> >> >> error: >> Setting up Install Process >> Parsing package install arguments >> Traceback (most recent call last): >> File "./yummain.py", line 236, in <module> >> user_main(sys.argv[1:], exit_code=True) >> File "./yummain.py", line 229, in user_main >> errcode = main(args) >> File "./yummain.py", line 104, in main >> result, resultmsgs = base.doCommands() >> File "/home/pranjal/yum/yum/cli.py", line 344, in doCommands >> return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, >> self.extcmds) >> File "/home/pranjal/yum/yum/yumcommands.py", line 175, in doCommand >> return base.installPkgs(extcmds) >> File "/home/pranjal/yum/yum/cli.py", line 576, in installPkgs >> self.install(pattern=arg) >> File "/home/pranjal/yum/yum/yum/__init__.py", line 2592, in install >> continue >> NameError: global name 'tx_return' is not defined > > > how are you getting this error? where tx_return is being extended is inside > the for loop that is immediately preceded by: > tx_return = [] > > > -sv This function in __init__.py has tx_return=[] just before the for loop wherein tx_return is extended, but there is no such for loop where tx_return is extended which just preceeds tx_return=[] Moreover the line number in which the error is encountered is in function install() in __init__.py in second last line where the function ends. line: tx_return.append(txmbr) def _at_groupinstall(self, pattern): " Do groupinstall via. leading @ on the cmd line, for install/update." assert pattern[0] == '@' group_string = pattern[1:] tx_return = [] for group in self.comps.return_groups(group_string): try: txmbrs = self.selectGroup(group.groupid) tx_return.extend(txmbrs) except yum.Errors.GroupsError: self.logger.critical(_('Warning: Group %s does not exist.'), group_string) continue return tx_return -- --Regards --Pranjal Pandit Computer Science Engineering Department NIT HAMIRPUR _______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum