python - PyAPNs version 1.1.2 doesn’t have enhanced keyword? -
i’m sure obvious, i’m missing it. i’ve installed pyapns via pip:
# pip install apns
then when try use “enhanced” flag in apns, it’s not there.
# python python 2.7.6 (default, nov 11 2013, 18:34:29) [gcc 4.4.7 20120313 (red hat 4.4.7-3)] on linux2 type "help", "copyright", "credits" or "license" more information. >>> apns import apns >>> server = apns(use_sandbox=true, cert_file=“/mydir/apns-dev-cert.pem", key_file=“/mydir/apns-dev-key.pem", enhanced=true) traceback (most recent call last): file "<stdin>", line 1, in <module> typeerror: __init__() got unexpected keyword argument 'enhanced' >>>
and sure enough 1.1.2 version pip installed doesn’t have keyword. thought latest released version in pyapns repository https://github.com/djacobs/pyapns.
i want use ‘enhanced’ keyword, error checking. ideas?
version 1.1.2 available on pypi doesn't provide enhanced
argument apns
class (see source).
if want functionality, install module directly github (master branch):
pip install git+https://github.com/djacobs/pyapns.git
note haven't updated package version in setup.py
, so, if have module installed already, uninstall first, install github:
pip uninstall apns pip install git+https://github.com/djacobs/pyapns.git
Comments
Post a Comment