benjaminws/python-stomp

Got toroubles installing stompy using pip

jpjoubert opened this issue · 1 comments

Hello, I hope you are the right person to help me.
I am not sure, but I think that I have an issue when installing the library using pip.

I work under Windows 10 using Python 3.6.3, as well as
Cygwin NT-10.0 xxxxxxxxx 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 using Python 2.7.14

I look for and need a Python library which allows me to work at low level (frame). I just found stompy as being convenient for my purpose. I tried to install it but I am facing the same problem in both environment.
Installation of stompy v0.2.8 or v0.2.9 failed for the same reason:

File "C:\Users\JPJOUB~1\AppData\Local\Temp\pip-install-u3gwp4kw\stompy\stompy\stomp.py", line 49
except socket.timeout, exc:
^
SyntaxError: invalid syntax

Can you provide me with instructions on how to proceed?
Attached some traces I got using pip -vvv install stompy or pip -vvv install stompy==0.2.8

Windows10_python_v360_stompy_v0.2.9.txt
Cygwin_python_v2.7.14_stomp_v0.2.8.txt
Cygwin_python_v2.7.14_stomp_v0.2.9.txt
Windows10_python_v363_stompy_v0.2.8.txt

node commented

Hi @jpjoubert , the current python-stomp version does not support python 3 . You'd better update the python3 (actually from python 2.6) style try-except-as to handle exception like this :

try .... except SomeEception as e: print(.....)