error message - help?
"Mahangu Weerasinghe" <[email protected]> Wed, 23 Aug 2006 16:52:34 +0530
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
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