Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mwapi fails on import in Python 2.7.11 #25

Open
ResidentMario opened this issue Jan 4, 2016 · 6 comments
Open

mwapi fails on import in Python 2.7.11 #25

ResidentMario opened this issue Jan 4, 2016 · 6 comments
Labels

Comments

@ResidentMario
Copy link

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

cmp_prmt_error

@halfak
Copy link
Member

halfak commented Jan 15, 2016

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

@halfak halfak added the invalid label Jan 15, 2016
@ResidentMario
Copy link
Author

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
Copy link
Member

halfak commented Jan 15, 2016

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
Copy link
Contributor

I think @bd808 got uwsgi + py3 working on tools?

On Thu, Jan 14, 2016 at 5:44 PM, Aaron Halfaker [email protected]
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
#25 (comment)
.

Yuvi Panda T
http://yuvi.in/blog

@bd808
Copy link

bd808 commented Jan 15, 2016

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

@ResidentMario
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants