Re: error message - help?
"Dan Gass" <[email protected]> Wed, 23 Aug 2006 09:04:10 -0500
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1869119140== Content-Type: multipart/alternative; boundary="----=_Part_81444_10866738.1156341850829" ------=_Part_81444_10866738.1156341850829 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 > ------=_Part_81444_10866738.1156341850829 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline If you want people to analyze your code you will also need to include a link to the configuration file.<br><br><div><span class="gmail_quote">On 8/23/06, <b class="gmail_sendername">Mahangu Weerasinghe</b> <<a href="mailto:[email protected]"> [email protected]</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello All,<br>I was just wondering if anyone would be able to help me with this message - <br><br><paste><br>Traceback (most recent call last):<br> File "./upstream.py", line 37, in ?<br> (options, args) = parser.parse_args()<br> File "/usr/lib/python2.4/optparse.py", line 1278, in parse_args <br> stop = self._process_args(largs, rargs, values)<br> File "/usr/lib/python2.4/optparse.py", line 1322, in _process_args<br> self._process_short_opts(rargs, values)<br> File "/usr/lib/python2.4/optparse.py", line 1429, in _process_short_opts <br> option.process(opt, value, values, self)<br> File "/usr/lib/python2.4/optparse.py", line 710, in process<br> return self.take_action(<br> File "/usr/lib/python2.4/optparse.py", line 731, in take_action <br> parser.print_help()<br> File "/usr/lib/python2.4/optparse.py", line 1536, in print_help<br> file.write(self.format_help())<br> File "/usr/lib/python2.4/optparse.py", line 1525, in format_help <br> result.append(self.format_option_help(formatter))<br> File "/usr/lib/python2.4/optparse.py", line 1508, in format_option_help<br> result.append(OptionContainer.format_option_help(self, formatter))<br> File "/usr/lib/python2.4/optparse.py", line 992, in format_option_help<br> result.append(formatter.format_option(option))<br> File "/usr/lib/python2.4/optparse.py", line 273, in format_option<br> help_text = self.expand_default(option)<br> File "/usr/lib/python2.4/optparse.py", line 245, in expand_default<br> return option.help.replace(self.default_tag, str(default_value))<br>AttributeError: '_Helper' object has no attribute 'replace' <br></paste><br><br>This is after running script -h. It's kind of wierd because the<br>script doesn't break when executed with another option. :s If<br>interested, you can have a look at the source -<br><a href="http://svn.sourceforge.net/viewvc/upstream/upstream-base/upstream.py?revision=9&view=markup"> http://svn.sourceforge.net/viewvc/upstream/upstream-base/upstream.py?revision=9&view=markup</a><br><br>Thanks in advance for any help.<br><br>Regards,<br>Mahangu<br><br>------------------------------------------------------------------------- <br>Using Tomcat but need to do more? Need to support web services, security?<br>Get stuff done quickly with pre-integrated technology to make your job easier<br>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo <br><a href="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</a><br>_______________________________________________ <br>optik-users mailing list<br><a href="mailto:[email protected]">[email protected]</a><br><a href="https://lists.sourceforge.net/lists/listinfo/optik-users">https://lists.sourceforge.net/lists/listinfo/optik-users </a><br></blockquote></div><br> ------=_Part_81444_10866738.1156341850829-- --===============1869119140== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============1869119140== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ optik-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/optik-users --===============1869119140==--