[Pywikipedia-l] Rewrite pywikipedia out-of-the-box error (TypeError: a float is required in http.py)

Matias plinbox at gmail.com
Tue Jun 9 03:53:41 UTC 2009


When running one of the scripts from "tests" folder or a custom script I
get:
<------------------------------------------CODE
BEGIN--------------------------------------------------------------->
E:\Workspaces\pybot\tests>api_tests.py
Configuration variable 'retry_on_fail' is defined but unknown. Misspelled?
Configuration variable 'use_diskcache' is defined but unknown. Misspelled?
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
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
Found 1 wikipedia:en processes running, including this one.
ERROR: Traceback (most recent call last):
  File "E:\Workspaces\pybot\pywikibot\data\api.py", line 208, in submit
    body=params)
  File "E:\Workspaces\pybot\pywikibot\comms\http.py", line 112, in request
    raise request.data
TypeError: a float is required

WARNING: Waiting 5 seconds before retrying.
ERROR: Traceback (most recent call last):
  File "E:\Workspaces\pybot\pywikibot\data\api.py", line 208, in submit
    body=params)
  File "E:\Workspaces\pybot\pywikibot\comms\http.py", line 112, in request
    raise request.data
TypeError: a float is required

WARNING: Waiting 10 seconds before retrying.

<------------------------------------------CODE
END--------------------------------------------------------------->

Any ideas why?

I'll try replace.py later and post back.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikimedia.org/pipermail/pywikipedia-l/attachments/20090609/42896e4f/attachment.htm 


More information about the Pywikipedia-l mailing list