Open ResidentMario opened 8 years ago
We only support python 3. Is there some reason that you need to use python 2.7?
Dang, that's what I get for not reading the docs closely enough.
I was experimenting with wrapping queries used for a labs tool using this API, but the tool environment is 2
, not 3
: pending some updates to infrastructure that were (are) still needed Labs won't/can't run Python 3
via uWSGI
. Looking at the Phab ticket it looks like a frozen issue, unfortunately.
Addendum: here is the cross-posted Phab issue.
Ping @yuvipanda. What do you think about this ticket? Is it easier to get uwsgi/python3 working on labs or to make this library backwards compatible with python 2.7?
I think @bd808 got uwsgi + py3 working on tools?
On Thu, Jan 14, 2016 at 5:44 PM, Aaron Halfaker notifications@github.com wrote:
Ping @yuvipanda https://github.com/yuvipanda. What do you think about this ticket? Is it easier to get uwsgi/python3 working on labs or to make this library backwards compatible with python 2.7?
— Reply to this email directly or view it on GitHub https://github.com/mediawiki-utilities/python-mwapi/issues/25#issuecomment-171841754 .
Yuvi Panda T http://yuvi.in/blog
I was at least in the irc channel and helping when this solution was found: https://phabricator.wikimedia.org/T104374#1911373
Cool! Didn't read that earlier. Unfortunately I can't quite do that yet because of a compounding issue, but that isn't an issue from this end.
I get the following import error when using
mwapi
onPython 2.7.11
.