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

I installed 2.0.1 using easy_install and I get an error on import #151

Closed andytriboletti closed 7 years ago

andytriboletti commented 8 years ago

I am running the sample code and I get this error:

Traceback (most recent call last): File "apns.py", line 2, in from apns import apns, Frame, Payload File "/home/bitnami/yesorno-python/apns.py", line 2, in from apns import apns, Frame, Payload ImportError: cannot import name apns

ozgur commented 8 years ago

@andytriboletti you should change your file name apns.py to something else such as push.py.