----- Original Message -----From: MatiasSent: Monday, June 08, 2009 11:53 PMSubject: [Pywikipedia-l] Rewrite pywikipedia out-of-the-box error(TypeError: a float is required in http.py)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.
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l