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

pip install riak fails on python3 [JIRA: CLIENTS-51] #284

Closed
shuhaowu opened this issue Nov 13, 2013 · 13 comments
Closed

pip install riak fails on python3 [JIRA: CLIENTS-51] #284

shuhaowu opened this issue Nov 13, 2013 · 13 comments
Milestone

Comments

@shuhaowu
Copy link
Contributor

Python 3.3.1

Downloading/unpacking riak
  Downloading riak-2.0.1.tar.gz (106kB): 106kB downloaded
  Running setup.py egg_info for package riak

Downloading/unpacking riak-pb>=1.4.0,<1.5.0 (from riak)
  Downloading riak_pb-1.4.1.1.tar.gz
  Running setup.py egg_info for package riak-pb

Downloading/unpacking protobuf==2.4.1 (from riak-pb>=1.4.0,<1.5.0->riak)
  Downloading protobuf-2.4.1.tar.gz (56kB): 56kB downloaded
  Running setup.py egg_info for package protobuf
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/home/shuhao/.virtualenvs/kvkit3/build/protobuf/setup.py", line 50
        print "Generating %s..." % output
                               ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/home/shuhao/.virtualenvs/kvkit3/build/protobuf/setup.py", line 50

    print "Generating %s..." % output

                           ^

SyntaxError: invalid syntax
@seancribbs
Copy link

We don't support python3 yet (also, protobuf is out of our control!)

@sedletsky
Copy link

But is there some wip-branch or plans or nothing abot pthon3 rightnow?

@seancribbs
Copy link

@mikhailsedletsky I intend to look at it after the Riak 2.0 features are landed, probably in early January. Any assistance in the meantime is appreciated, but I really want compatibility with both 2.6/2.7 and 3 if possible. We have customers using 2.x.

@shuhaowu
Copy link
Contributor Author

Since google's protobuf does not support python 3 yet... the only compatible fork is https://github.com/openx/python3-protobuf

I can use that to see if there is anything in the riak-python-client code base that fails py3 requirements. This is probably the last library that I need to port to python3 for projects I'm doing.

@sedletsky
Copy link

Okay, using python3-protobuf (with tens patches over riak & riak_pb) I built it for python3, but even ping doesn't work (who would doubt). At this point it looks far from production state for python3 (maybe as much as python3 itself).

@shuhaowu
Copy link
Contributor Author

Does Python 3 work with the http client?

Shuhao
Sent from my phone.
On Nov 27, 2013 8:37 AM, "mikhailsedletsky" [email protected]
wrote:

Okay, using python3-protobuf (with tens patches over riak & riak_pb) I
built it for python3, but even ping doesn't work. At this point it looks
far from production state for python3 (maybe as much as python3 itself).


Reply to this email directly or view it on GitHubhttps://github.com//issues/284#issuecomment-29384536
.

@sedletsky
Copy link

No, but there is no big troubles with, I think. Just need to be ported & moved to http.client.

@seancribbs seancribbs added this to the 2.1 milestone Jun 26, 2014
@yvsong
Copy link

yvsong commented Nov 9, 2014

Protocol Buffers v2.6 supports python 3.

@Basho-JIRA Basho-JIRA changed the title pip install riak fails on python3 pip install riak fails on python3 [JIRA: CLIENTS-51] Nov 9, 2014
@hazen
Copy link

hazen commented Nov 10, 2014

@yvsong That's great news! I was wrapping up work on on porting the Python client to use https://pypi.python.org/pypi/python3-protobuf, but if the official client supports Python 3, that would be much better. I'll investigate.

@hazen
Copy link

hazen commented Nov 10, 2014

Sadly it looks like Google's 2.6.1 still isn't Python 3 friendly, so we'll stick with python3-protobuf for the time being

@yvsong
Copy link

yvsong commented Nov 10, 2014

I don't know the details but doesn't the last line in the following page say "Support for Python 3"?
https://github.com/google/protobuf/releases

@hazen
Copy link

hazen commented Nov 10, 2014

@yvsong It sure does. I tried to install 2.6.1 both from PyPI and from source, but the installer is still 2.x-based. It looks like Python 3.x support is not quite ready yet: protocolbuffers/protobuf#7

@hazen
Copy link

hazen commented Dec 17, 2014

The Python 3 issue has been addressed by #379 and will be featured in a forthcoming release

@hazen hazen closed this as completed Dec 17, 2014
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

6 participants