Hello,
I was wondering about the python requirements for pywikibot.
I tried to run a script on the toolserver (nightshade and wolsbane) and from the error messages I get there I understand that it requires python 2.6 (won't work with 2.5) and (at least) httplib2. Is this correct?
Thanks,
N.
From: "Nakor" nakor.wp@gmail.com
I tried to run a script on the toolserver (nightshade and wolsbane) and from the error messages I get there I understand that it requires python 2.6 (won't work with 2.5) and (at least) httplib2. Is this correct?
It is supposed to work with 2.5, although I admit I haven't tested it lately. It does need httplib2, which can be installed using "pip install httplib2"
Russ
i'm using rewrite branch in the Toolserver without problems. What errors do you get?
On Tue, May 25, 2010 at 12:21 PM, Russell Blau russblau@imapmail.orgwrote:
From: "Nakor" nakor.wp@gmail.com
I tried to run a script on the toolserver (nightshade and wolsbane) and from the error messages I get there I understand that it requires python 2.6 (won't work with 2.5) and (at least) httplib2. Is this correct?
It is supposed to work with 2.5, although I admit I haven't tested it lately. It does need httplib2, which can be installed using "pip install httplib2"
Russ
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On Tue, May 25, 2010 at 11:17:48AM -0400, Nakor wrote:
Hello,
I was wondering about the python requirements for pywikibot.
I tried to run a script on the toolserver (nightshade and wolsbane) and from the error messages I get there I understand that it requires python 2.6 (won't work with 2.5) and (at least) httplib2. Is this correct?
From my experience on my own box, 'rewrite' works perfectly well with python 2.5.2
Maybe you could send the complete error message, or even try 'willow' which uses 2.6 to see if you get the same error.
stan.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10-05-25 12:33 PM, stanlekub wrote:
On Tue, May 25, 2010 at 11:17:48AM -0400, Nakor wrote:
Hello,
I was wondering about the python requirements for pywikibot.
I tried to run a script on the toolserver (nightshade and wolsbane) and from the error messages I get there I understand that it requires python 2.6 (won't work with 2.5) and (at least) httplib2. Is this correct?
From my experience on my own box, 'rewrite' works perfectly well with python 2.5.2
Maybe you could send the complete error message, or even try 'willow' which uses 2.6 to see if you get the same error.
I'm pretty sure both 2.5 and 2.6 are available on both nightshade and willow. You just need to specify which one you want to use, the default being 2.5:
lifeguard@nightshade:/usr/bin$ ls -l | grep python - -rwxr-xr-x 1 root root 7835 2008-07-09 20:16 dh_python - -rwxr-xr-x 1 root root 982 2008-06-09 21:13 ipython - -rwxr-xr-x 1 root root 331 2008-06-09 21:13 ipython2.4 lrwxrwxrwx 1 root root 10 2008-06-20 14:00 ipython2.5 -> ipython2.4 lrwxrwxrwx 1 root root 23 2010-01-27 21:12 pdb2.4 -> ../lib/python2.4/pdb.py lrwxrwxrwx 1 root root 23 2010-01-27 21:12 pdb2.5 -> ../lib/python2.5/pdb.py lrwxrwxrwx 1 root root 23 2010-03-20 23:07 pdb2.6 -> ../lib/python2.6/pdb.py lrwxrwxrwx 1 root root 9 2008-11-25 06:13 python -> python2.5 - -rwxr-xr-x 1 root root 1229080 2010-01-24 12:21 python2.4 - -rwxr-xr-x 1 root root 1276 2010-01-24 12:20 python2.4-config - -rwxr-xr-x 1 root root 1400984 2010-01-24 19:13 python2.5 - -rwxr-xr-x 1 root root 1419 2010-01-24 19:13 python2.5-config - -rwxr-xr-x 1 root root 2588816 2010-02-16 06:03 python2.6 lrwxrwxrwx 1 root root 16 2008-11-25 06:13 python-config -> python2.5-config lrwxrwxrwx 1 root root 29 2008-11-25 06:13 pyversions -> ../share/python/pyversions.py - -rwxr-xr-x 1 root root 3179 2010-01-25 03:28 xmlproc_parse.python-xml - -rwxr-xr-x 1 root root 4211 2010-01-25 03:28 xmlproc_val.python-xml
- -Mike
On Tue, May 25, 2010 at 12:38:08PM -0300, Mike.lifeguard wrote:
I'm pretty sure both 2.5 and 2.6 are available on both nightshade and willow. You just need to specify which one you want to use, the default being 2.5:
Right, seems it was installed on nightsade last march... never noticed that.
stan.
On nightshade (where I am getting 2.5 by default):
File "/home/nakor/junior/pywikibot/pywikibot/comms/http.py", line 61, in <module> proc = threadedhttp.HttpProcessor(http_queue, cookie_jar, connection_pool) File "/home/nakor/junior/pywikibot/pywikibot/comms/threadedhttp.py", line 334, in __init__ self.http = Http(cookiejar=cookiejar, connection_pool=connection_pool) File "/home/nakor/junior/pywikibot/pywikibot/comms/threadedhttp.py", line 162, in __init__ httplib2.Http.__init__(self, *args, **kwargs) TypeError: __init__() got an unexpected keyword argument 'proxy_info'
On willow (where I am getting 2.6 by default):
File "/home/nakor/junior/pywikibot/pywikibot/comms/threadedhttp.py", line 50, in <module> pkg_resources.require("httplib2") File "/opt/ts/python/2.6/lib/python2.6/site-packages/pkg_resources.py", line 626, in require needed = self.resolve(parse_requirements(requirements)) File "/opt/ts/python/2.6/lib/python2.6/site-packages/pkg_resources.py", line 524, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: httplib2
It works fine on my own box running under Fedora 12.
Thanks,
N.
From: "Nakor" nakor.wp@gmail.com
On willow (where I am getting 2.6 by default):
File "/home/nakor/junior/pywikibot/pywikibot/comms/threadedhttp.py", line 50, in <module> pkg_resources.require("httplib2") File "/opt/ts/python/2.6/lib/python2.6/site-packages/pkg_resources.py", line 626, in require needed = self.resolve(parse_requirements(requirements)) File "/opt/ts/python/2.6/lib/python2.6/site-packages/pkg_resources.py", line 524, in resolve raise DistributionNotFound(req) # XXX put more info here pkg_resources.DistributionNotFound: httplib2
Willow does not have httplib2 installed by default; do you have "externals" in /home/nakor/junior/pywikibot? (If you did a full svn install, you should.) Then you should edit ~/.bash_profile to add a line like:
PYTHONPATH=$HOME/junior/pywikibot/externals/httplib2:$HOME/junior/pywikibot; export PYTHONPATH
Russ