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

Make balanced-python compatible with python 3 #75

Open
foxwoods369 opened this issue Jan 2, 2014 · 7 comments
Open

Make balanced-python compatible with python 3 #75

foxwoods369 opened this issue Jan 2, 2014 · 7 comments

Comments

@foxwoods369
Copy link

Hi all,

I recently started looking into developing a django website using python 3.3, but when looking at django-balanced, I found it isn't compatible with python 3, in part because balanced-python isn't compatible. I'm opening this issue to help gauge interest in updating balanced-python to python 3.

@mjallday
Copy link
Contributor

mjallday commented Jan 2, 2014

I think we're definitely open to doing this. I actually attempted this about a year ago but gave up because one of the underlying libraries didn't support it at that time.

Here's a list of the requirements for the 1.1 branch of balanced-python, the first step would be to make sure all the libraries are compatible with python3.

  • certifi==0.0.8
  • chardet==2.2.1
  • iso8601==0.1.4
  • mock==1.0.1
  • nose==1.3.0
  • requests==2.1.0
  • simplejson==3.3.1
  • unittest2==0.5.1
  • uritemplate==0.6
  • wac==0.22
  • wsgiref==0.1.2

It appears they are all at least installable since running pip install -r requirements.txt worked as expected.

@mjallday
Copy link
Contributor

mjallday commented Jan 2, 2014

It's failing installing unittest2. There is an alternative package called unittest2py3k.

After working around that, it appears that wac uses some libraries (httplib for a start) which do not exist in python3. We're currently using an outdated version of wac so I think we're going to block on #74 before this can continue.

@icook
Copy link
Contributor

icook commented Jan 30, 2014

I'm interested in this as well. I've done the minor patching to wac and balanced python needed to get imports working, but unable to run the test suite because of a few other incompatibilities. Would you accept a pull request that adds a dependency of six?

@mahmoudimus
Copy link
Contributor

@mjallday unittest2 is not required because it has been merged in python2.7 +

@mahmoudimus
Copy link
Contributor

@icook have you looked at using http://python-future.org/index.html ?

@icook
Copy link
Contributor

icook commented Feb 3, 2014

I've heard of it but hadn't looked into it much. I'll look into using it instead of six since it looks like the more modern replacement.

@mjallday
Copy link
Contributor

There's a great attempt happening over in #106

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

No branches or pull requests

4 participants