<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18372">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>No, it's definitely related to 2.6.&nbsp; I get the 
same error running the rewrite branch under 2.6, but not under 2.5.&nbsp; I'm 
not sure why, just yet.&nbsp; As a work-around, you can try running your 
script(s) under Python 2.5 for now.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Russ</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=plinbox@gmail.com href="mailto:plinbox@gmail.com">Matias</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=pywikipedia-l@lists.wikimedia.org 
  href="mailto:pywikipedia-l@lists.wikimedia.org">Pywikipedia discussion 
  list</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, June 09, 2009 11:42 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Pywikipedia-l] Rewrite 
  pywikipedia out-of-the-boxerror(TypeError: a float is required in 
  http.py)</DIV>
  <DIV><BR></DIV>The only thing I think off is I used my old user-config.py 
  instead of copying config2.py to a fresh user-config.py and changing it's 
  values with username, family, etc.<BR><BR>Could that be the problem?.<BR><BR>
  <DIV class=gmail_quote>On Tue, Jun 9, 2009 at 12:36 PM, Russell Blau <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:russblau@imapmail.org">russblau@imapmail.org</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV bgcolor="#ffffff">
    <DIV><FONT size=2 face=Arial>Matias:&nbsp; I can tell you that the 
    DeprecationWarnings only happen under Python 2.6, not 2.5, and they are 
    harmless (although annoying); httplib2 needs to be updated for 2.6, but it 
    appears to be abandonware.</FONT></DIV>
    <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>I'm not sure about the TypeError; will 
    investigate further and see if I can reproduce it.&nbsp; It seems a very odd 
    error on the face of it; why would a "raise" statement cause an exception 
    saying "a float is required"?</FONT></DIV>
    <DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
    <DIV><FONT size=2 face=Arial>Russ</FONT></DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: rgb(0,0,0) 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
      <DIV>
      <DIV></DIV>
      <DIV class=h5>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal">----- 
      Original Message ----- </DIV>
      <DIV 
      style="FONT: 10pt arial; BACKGROUND: rgb(228,228,228); font-size-adjust: none; font-stretch: normal; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial"><B>From:</B> 
      <A title=plinbox@gmail.com href="mailto:plinbox@gmail.com" 
      target=_blank>Matias</A> </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>To:</B> 
      <A title=pywikipedia-l@lists.wikimedia.org 
      href="mailto:pywikipedia-l@lists.wikimedia.org" 
      target=_blank>pywikipedia-l@lists.wikimedia.org</A> </DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Sent:</B> 
      Monday, June 08, 2009 11:53 PM</DIV>
      <DIV 
      style="FONT: 10pt arial; font-size-adjust: none; font-stretch: normal"><B>Subject:</B> 
      [Pywikipedia-l] Rewrite pywikipedia out-of-the-box error(TypeError: a 
      float is required in http.py)</DIV>
      <DIV><BR></DIV>When running one of the scripts from "tests" folder or a 
      custom script I get:<BR>&lt;------------------------------------------CODE 
      BEGIN---------------------------------------------------------------&gt;<BR>E:\Workspaces\pybot\tests&gt;api_tests.py<BR>Configuration 
      variable 'retry_on_fail' is defined but unknown. 
      Misspelled?<BR>Configuration variable 'use_diskcache' is defined but 
      unknown. 
      Misspelled?<BR>EF:\Python26\lib\site-packages\httplib2-0.4.0-py2.6.egg\httplib2\__init__.py:29: 
      DeprecationWarning: the md5 module is deprecated; use hashlib 
      instead<BR>F:\Python26\lib\site-packages\httplib2-0.4.0-py2.6.egg\httplib2\__init__.py:44: 
      DeprecationWarning: the sha module is deprecated; use the hashlib module 
      instead<BR>Found 1 wikipedia:en processes running, including this 
      one.<BR>ERROR: Traceback (most recent call last):<BR>&nbsp; File 
      "E:\Workspaces\pybot\pywikibot\data\api.py", line 208, in 
      submit<BR>&nbsp;&nbsp;&nbsp; body=params)<BR>&nbsp; File 
      "E:\Workspaces\pybot\pywikibot\comms\http.py", line 112, in 
      request<BR>&nbsp;&nbsp;&nbsp; raise request.data<BR>TypeError: a float is 
      required<BR><BR>WARNING: Waiting 5 seconds before retrying.<BR>ERROR: 
      Traceback (most recent call last):<BR>&nbsp; File 
      "E:\Workspaces\pybot\pywikibot\data\api.py", line 208, in 
      submit<BR>&nbsp;&nbsp;&nbsp; body=params)<BR>&nbsp; File 
      "E:\Workspaces\pybot\pywikibot\comms\http.py", line 112, in 
      request<BR>&nbsp;&nbsp;&nbsp; raise request.data<BR>TypeError: a float is 
      required<BR><BR>WARNING: Waiting 10 seconds before 
      retrying.<BR><BR>&lt;------------------------------------------CODE 
      END---------------------------------------------------------------&gt;<BR><BR>Any 
      ideas why?<BR><BR>I'll try replace.py later and post back.<BR></DIV></DIV>
      <P></P>
      <HR>

      <P></P>_______________________________________________<BR>Pywikipedia-l 
      mailing list<BR><A href="mailto:Pywikipedia-l@lists.wikimedia.org" 
      target=_blank>Pywikipedia-l@lists.wikimedia.org</A><BR><A 
      href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l" 
      target=_blank>https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</A><BR></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>Pywikipedia-l 
    mailing list<BR><A 
    href="mailto:Pywikipedia-l@lists.wikimedia.org">Pywikipedia-l@lists.wikimedia.org</A><BR><A 
    href="https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l" 
    target=_blank>https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l</A><BR><BR></BLOCKQUOTE></DIV><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Pywikipedia-l 
  mailing 
  list<BR>Pywikipedia-l@lists.wikimedia.org<BR>https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l<BR></BLOCKQUOTE></BODY></HTML>