Export to GitHub

apns-python-wrapper - issue #6

to openssl or not


Posted on May 19, 2010 by Quick Wombat

since version 0.5, apns seems to try always openssl, even if the ssl module is available

I do not want to use openssl, as there seem to be problems with apple negotiation some times and I get hanging openssl porcesses

if I deinstall openssl on my debian, I get a APNSWrapper.apnsexceptions.APNSNoCommandFound exception

any hints?

Comment #1

Posted on May 19, 2010 by Happy Cat

Please, doublecheck that force_ssl_command argument is set to False.

Also please try

import ssl as ssl_module from your python console and show me what you got

Comment #2

Posted on May 19, 2010 by Quick Wombat

Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole)

import ssl import ssl as ssl_module

ended with no error

and I am creating the objects like this: wrapper = APNSNotificationWrapper(settings.APNS_CERT, False) feedback = APNSFeedbackWrapper(settings.APNS_CERT, sandbox = False)

Comment #3

Posted on May 19, 2010 by Quick Wombat

I installed / upgraded using: easy_install --upgrade APNSWrapper

Comment #4

Posted on May 19, 2010 by Happy Cat

Try to use: wrapper = APNSNotificationWrapper(certificate = settings.APNS_CERT, sandbox = False) feedback = APNSFeedbackWrapper(certificate = settings.APNS_CERT, sandbox = False)

I've just tested it - it works fine. Next thing - do you able to contact me via skype (my skype id is max.gabonsky)? It will be helpful for both us.

Comment #5

Posted on May 19, 2010 by Quick Wombat

as expected, no changes... I am not on skype, sorry, but we could use jabber as you have jabber-account, too, here at google.

Comment #6

Posted on May 19, 2010 by Happy Cat

This issue fixed in 0.6.1

Status: Fixed

Labels:
Type-Defect Priority-Medium