Closed bobberb closed 10 years ago
$ sudo python setup.py install /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install running build running build_py running install_lib byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmq2.py to zmq2.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmq2.py", line 35 print "Connected to zmq server v2" ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zre.py to zre.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zre.py", line 99 print zre.parseBeacon(data) ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zrenode.py to zrenode.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zrenode.py", line 27 def datagramReceived(self, data, (host, port)): ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmq1.py to zmq1.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmq1.py", line 13 print "Incorrect server version" ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmq3.py to zmq3.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmq3.py", line 22 print "Connecting" ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmqsocket.py to zmqsocket.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmqsocket.py", line 31 print reason.getErrorMessage() ^ SyntaxError: invalid syntax
running install_egg_info Removing /usr/lib/python3.4/site-packages/zmqproto-0.1.0-py3.4.egg-info Writing /usr/lib/python3.4/site-packages/zmqproto-0.1.0-py3.4.egg-info
The code is Python 2, not Python3. Use python2 in shell everywhere you'd use python.
python2
python
$ sudo python setup.py install /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'install_requires' warnings.warn(msg) running install running build running build_py running install_lib byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmq2.py to zmq2.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmq2.py", line 35 print "Connected to zmq server v2" ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zre.py to zre.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zre.py", line 99 print zre.parseBeacon(data) ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zrenode.py to zrenode.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zrenode.py", line 27 def datagramReceived(self, data, (host, port)): ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmq1.py to zmq1.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmq1.py", line 13 print "Incorrect server version" ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmq3.py to zmq3.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmq3.py", line 22 print "Connecting" ^ SyntaxError: invalid syntax
byte-compiling /usr/lib/python3.4/site-packages/zmqproto/zmqsocket.py to zmqsocket.cpython-34.pyc File "/usr/lib/python3.4/site-packages/zmqproto/zmqsocket.py", line 31 print reason.getErrorMessage() ^ SyntaxError: invalid syntax
running install_egg_info Removing /usr/lib/python3.4/site-packages/zmqproto-0.1.0-py3.4.egg-info Writing /usr/lib/python3.4/site-packages/zmqproto-0.1.0-py3.4.egg-info