Re: error message - help?
"Mahangu Weerasinghe" <[email protected]> Thu, 24 Aug 2006 05:25:45 +0530
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Sorry, found the problem. It was an omission of mine. On 8/23/06, Dan Gass <[email protected]> wrote: > If you want people to analyze your code you will also need to include a link > to the configuration file. > > > On 8/23/06, Mahangu Weerasinghe < [email protected]> wrote: > > > 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 > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > optik-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/optik-users > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642