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.
Could that be the problem?.
On Tue, Jun 9, 2009 at 12:36 PM, Russell Blau <russblau(a)imapmail.org> wrote:
Matias: 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.
I'm not sure about the TypeError; will investigate further and see if I can
reproduce it. It seems a very odd error on the face of it; why would a
"raise" statement cause an exception saying "a float is required"?
Russ
----- Original Message -----
*From:* Matias <plinbox(a)gmail.com>
*To:* pywikipedia-l(a)lists.wikimedia.org
*Sent:* Monday, June 08, 2009 11:53 PM
*Subject:* [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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l