djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 377 forks source link

Cannot start app.py #126

Closed alexrv0922 closed 8 years ago

alexrv0922 commented 9 years ago

Hi there I'm trying to run the example from the main page and I keep getting this error:

from apns import * File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/apns.py", line 218 except ssl.SSLError, err: ^ SyntaxError: invalid syntax

Process finished with exit code 1

jimhorng commented 9 years ago

Hi @alexrv0922 , not yet support python 3, #85 , FYR.

hyunsoogo commented 8 years ago

@alexrv0922 You can start script by changing ssl.SSLError, err to ssl.SSLError as err

ghost commented 8 years ago

that is python2 and python3 uncompitable problems

ExplodingCabbage commented 8 years ago

The syntax error described here has been fixed. I'm going to close this and try to channel any further discussion about Python 3 compatibility into this issue: https://github.com/djacobs/PyAPNs/issues/85