<!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>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: #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-l@lists.wikimedia.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 08, 2009 11:53 
PM</DIV>
  <DIV style="FONT: 10pt arial"><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>
  <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>