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> &lt;<a href="mailto:[email protected]">
[email protected]</a>&gt; 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>&lt;paste&gt;<br>Traceback (most recent call last):<br>&nbsp;&nbsp;File &quot;./upstream.py&quot;, line 37, in ?<br>&nbsp;&nbsp;&nbsp;&nbsp;(options, args) = parser.parse_args()<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 1278, in parse_args
<br>&nbsp;&nbsp;&nbsp;&nbsp;stop = self._process_args(largs, rargs, values)<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 1322, in _process_args<br>&nbsp;&nbsp;&nbsp;&nbsp;self._process_short_opts(rargs, values)<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 1429, in _process_short_opts
<br>&nbsp;&nbsp;&nbsp;&nbsp;option.process(opt, value, values, self)<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 710, in process<br>&nbsp;&nbsp;&nbsp;&nbsp;return self.take_action(<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 731, in take_action
<br>&nbsp;&nbsp;&nbsp;&nbsp;parser.print_help()<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 1536, in print_help<br>&nbsp;&nbsp;&nbsp;&nbsp;file.write(self.format_help())<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 1525, in format_help
<br>&nbsp;&nbsp;&nbsp;&nbsp;result.append(self.format_option_help(formatter))<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 1508, in format_option_help<br>&nbsp;&nbsp;&nbsp;&nbsp;result.append(OptionContainer.format_option_help(self, formatter))<br>
&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 992, in format_option_help<br>&nbsp;&nbsp;&nbsp;&nbsp;result.append(formatter.format_option(option))<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 273, in format_option<br>
&nbsp;&nbsp;&nbsp;&nbsp;help_text = self.expand_default(option)<br>&nbsp;&nbsp;File &quot;/usr/lib/python2.4/optparse.py&quot;, line 245, in expand_default<br>&nbsp;&nbsp;&nbsp;&nbsp;return option.help.replace(self.default_tag, str(default_value))<br>AttributeError: '_Helper' object has no attribute 'replace'
<br>&lt;/paste&gt;<br><br>This is after running script -h.&nbsp;&nbsp;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&amp;view=markup">
http://svn.sourceforge.net/viewvc/upstream/upstream-base/upstream.py?revision=9&amp;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&amp;kid=120709&amp;bid=263057&amp;dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=120709&amp;bid=263057&amp;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==--