Matias wrote: > 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 > ... snip > Any ideas why?
Solution that appears to work: 1) svn update your 'rewrite' installation 2) svn checkout http://httplib2.googlecode.com/svn/trunk/httplib2 into your python2.6 site-packages directory, or to some other directory on your python path (you'll want to delete any existing python2.6 httplib2 installation first) This should allow the rewrite branch to work under Python 2.6 with no warnings (but let me know if you still have problems). Russ _______________________________________________ Pywikipedia-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
