From: Mahangu W. <ma...@gm...> - 2006-08-23 11:22:36
|
Hello All, I was just wondering if anyone would be able to help me with this message - <paste> Traceback (most recent call last): File "./upstream.py", line 37, in ? (options, args) = parser.parse_args() File "/usr/lib/python2.4/optparse.py", line 1278, in parse_args stop = self._process_args(largs, rargs, values) File "/usr/lib/python2.4/optparse.py", line 1322, in _process_args self._process_short_opts(rargs, values) File "/usr/lib/python2.4/optparse.py", line 1429, in _process_short_opts option.process(opt, value, values, self) File "/usr/lib/python2.4/optparse.py", line 710, in process return self.take_action( File "/usr/lib/python2.4/optparse.py", line 731, in take_action parser.print_help() File "/usr/lib/python2.4/optparse.py", line 1536, in print_help file.write(self.format_help()) File "/usr/lib/python2.4/optparse.py", line 1525, in format_help result.append(self.format_option_help(formatter)) File "/usr/lib/python2.4/optparse.py", line 1508, in format_option_help result.append(OptionContainer.format_option_help(self, formatter)) File "/usr/lib/python2.4/optparse.py", line 992, in format_option_help result.append(formatter.format_option(option)) File "/usr/lib/python2.4/optparse.py", line 273, in format_option help_text = self.expand_default(option) File "/usr/lib/python2.4/optparse.py", line 245, in expand_default return option.help.replace(self.default_tag, str(default_value)) AttributeError: '_Helper' object has no attribute 'replace' </paste> This is after running script -h. It's kind of wierd because the script doesn't break when executed with another option. :s If interested, you can have a look at the source - http://svn.sourceforge.net/viewvc/upstream/upstream-base/upstream.py?revision=9&view=markup Thanks in advance for any help. Regards, Mahangu |