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.
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 To: pywikipedia-l@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
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@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@gmail.com *To:* pywikipedia-l@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
No, it's definitely related to 2.6. I get the same error running the rewrite branch under 2.6, but not under 2.5. I'm not sure why, just yet. As a work-around, you can try running your script(s) under Python 2.5 for now.
Russ ----- Original Message ----- From: Matias To: Pywikipedia discussion list Sent: Tuesday, June 09, 2009 11:42 AM Subject: Re: [Pywikipedia-l] Rewrite pywikipedia out-of-the-boxerror(TypeError: a float is required in http.py)
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@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 To: pywikipedia-l@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
------------------------------------------------------------------------------
_______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Thanks. I'll try that.
On Tue, Jun 9, 2009 at 12:50 PM, Russell Blau russblau@imapmail.org wrote:
No, it's definitely related to 2.6. I get the same error running the rewrite branch under 2.6, but not under 2.5. I'm not sure why, just yet. As a work-around, you can try running your script(s) under Python 2.5 for now.
Russ
----- Original Message ----- *From:* Matias plinbox@gmail.com *To:* Pywikipedia discussion list pywikipedia-l@lists.wikimedia.org *Sent:* Tuesday, June 09, 2009 11:42 AM *Subject:* Re: [Pywikipedia-l] Rewrite pywikipedia out-of-the-boxerror(TypeError: a float is required in http.py)
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@imapmail.orgwrote:
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@gmail.com *To:* pywikipedia-l@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@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
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
I've tryed with previous version of python. Worked fine. I'll try this with 2.6 and post back.
On Thu, Jun 11, 2009 at 3:41 PM, Russell Blau russblau@imapmail.org wrote:
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:
- svn update your 'rewrite' installation
- 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 Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
pywikipedia-l@lists.wikimedia.org