mediawiki-utilities / python-mwapi

Simple Python Wrapper around MediaWiki API
http://pythonhosted.org/mwapi
MIT License
31 stars 11 forks source link

mwapi fails on import in Python 2.7.11 #25

Open ResidentMario opened 8 years ago

ResidentMario commented 8 years ago

I get the following import error when using mwapi on Python 2.7.11.

cmp_prmt_error

halfak commented 8 years ago

We only support python 3. Is there some reason that you need to use python 2.7?

ResidentMario commented 8 years ago

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.

halfak commented 8 years ago

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?

yuvipanda commented 8 years ago

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

bd808 commented 8 years ago

I was at least in the irc channel and helping when this solution was found: https://phabricator.wikimedia.org/T104374#1911373

ResidentMario commented 8 years ago

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.