kidok / protobuf

Automatically exported from code.google.com/p/protobuf
0 stars 0 forks source link

Python library does not run setup.py under a Python 3.x interpreter #621

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run setup.py with a Python 3.x interpreter

What is the expected output? What do you see instead?

setup.py should run without any errors. Instead, I see:

``
$ python3.4 setup.py 
  File "setup.py", line 52
    print "Generating %s..." % output
                           ^
SyntaxError: invalid syntax

What version of the product are you using? On what operating system?

protobuf 2.5.0. Ubuntu Linux 12.0.4

Please provide any additional information below.

Attach are fixes to setup.py and ez_setup.py so that protobuf can be installed 
with a Python 3.x interpreter. ez_setup.py was updated from: 
https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py

Original issue reported on code.google.com by sta...@gmail.com on 25 Mar 2014 at 9:56

Attachments:

GoogleCodeExporter commented 9 years ago
I didn't notice you already had a patch.
Please pull ASAP.

Original comment by Omer.d...@gmail.com on 19 Apr 2014 at 8:03

GoogleCodeExporter commented 9 years ago
Is there a way around this? I need to use Python3.4, can I install Protobuf 2.5 
somehow manually?

Original comment by sebast...@lurado.de on 20 Jul 2014 at 8:38

GoogleCodeExporter commented 9 years ago
Never mind, I found the python3-protobuf package.

Original comment by sebast...@lurado.de on 20 Jul 2014 at 8:51