desaiashu / apns-python-wrapper

Automatically exported from code.google.com/p/apns-python-wrapper
0 stars 0 forks source link

easy_install fails on Python 2.6.2 #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run easy_install APNSWrapper with Python 2.6.2

What is the expected output? What do you see instead?

The easy_install package should detect whether the native Python ssl module is 
present.

[root@domU-12-31-39-00-66-32 ~]# easy_install APNSWrapper
Searching for APNSWrapper
Reading http://pypi.python.org/simple/APNSWrapper/
Reading http://code.google.com/p/apns-python-wrapper/
Best match: APNSWrapper 0.3
Downloading http://apns-python-wrapper.googlecode.com/files/APNSWrapper-0.3.zip
Processing APNSWrapper-0.3.zip
Running setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-uo1Vbr/egg-dist-tmp-bJCqJu
zip_safe flag not set; analyzing archive contents...
Adding APNSWrapper 0.3 to easy-install.pth file

Installed /usr/local/lib/python2.6/site-packages/APNSWrapper-0.3-py2.6.egg
Processing dependencies for APNSWrapper
Searching for ssl
Reading http://pypi.python.org/simple/ssl/
Reading http://docs.python.org/dev/library/ssl.html
Best match: ssl 1.15
Downloading 
http://pypi.python.org/packages/source/s/ssl/ssl-1.15.tar.gz#md5=81ea8a1175e437b
4c769ae65b3290e0c
Processing ssl-1.15.tar.gz
Running ssl-1.15/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-oRdN75/ssl-1.15/egg-dist-tmp-ReIHb7
Traceback (most recent call last):
  File "/usr/local/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1671, in main
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 1675, in <lambda>
  File "/usr/local/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 211, in run
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 478, in install_item
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 522, in resolve
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 758, in best_match
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg_resources.py", line 770, in obtain
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 446, in easy_install
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 476, in install_item
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 655, in install_eggs
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 930, in build_and_install
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/command/easy_install.py", line 919, in run_setup
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 27, in run_setup
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 63, in run
  File "/usr/local/lib/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/setuptools/sandbox.py", line 29, in <lambda>
  File "setup.py", line 11, in <module>
ValueError: This extension should not be used with Python 2.6 or later (already 
built in), and has not been tested with Python 2.3.4 or earlier.

What version of the product are you using? On what operating system?
Python 2.6.2 on Fedora Core 8

Please provide any additional information below.

Original issue reported on code.google.com by eric.cha...@gmail.com on 19 Aug 2009 at 9:15

GoogleCodeExporter commented 9 years ago
The install works even though the ValueError is generated.

Original comment by eric.cha...@gmail.com on 24 Aug 2009 at 7:34

GoogleCodeExporter commented 9 years ago
Read carefully 
http://code.google.com/p/apns-python-wrapper/wiki/SSLInstallationIssue
It's easy to solve this issue.

Original comment by klymys...@gmail.com on 13 Nov 2009 at 12:21

GoogleCodeExporter commented 9 years ago
This issue have been fixed in 0.5 version of APNSWrapper

Original comment by klymys...@gmail.com on 24 Apr 2010 at 9:37