Export to GitHub

apns-python-wrapper - SSLInstallationIssue.wiki


The Problem

If you don't have ssl module into your environment (Python 2.5) than probably you not be able to install APNSWrapper via easy_install.

The Solution

The solution is download and install ssl module by hand. You should make following: 1. download ssl .tar.gz file from ssl module page on PyPI 1. unarchive and run $ tar -xzf ssl-1.14.tar.gz && python setup.py build && python setup.py install 1. check the installation: ``` % python Python 2.5.2 (r252:60911, May 24 2008, 20:08:55) [GCC 3.4.6] on sunos5 Type "help", "copyright", "credits" or "license" for more information.

import ssl Traceback (most recent call last): File "", line 1, in File "ssl/init.py", line 60, in import _ssl2 # if we can't import it, let the error propagate ImportError: No module named _ssl2 ```

If you get ImportError exception you should do something like in this article - Go to ${PYTHON_HOME}/lib/python2.4/site-packages/ssl and delete the init.pyc file.

The ssl module should work.

Next step

Installation of APNSWrapper via easy_install should be complete. $ easy_install APNSWrapper