I do not agree this behavior should be occurring in master branch

Installing requests from pip gives me the following error:

```
Unpacking ./requests/requests-1.0.4.zip
  Running setup.py egg_info for package from file:///home/fclbot/requests/requests-1.0.4.zip
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/tmp/pip-a6e6xF-build/setup.py", line 6, in <module>
        import requests
      File "requests/__init__.py", line 52, in <module>
        from . import utils
      File "requests/utils.py", line 22, in <module>
        from .compat import parse_http_list as _parse_list_header
      File "requests/compat.py", line 7, in <module>
        from .packages import charade as chardet
      File "requests/packages/__init__.py", line 3, in <module>
        from . import urllib3
      File "requests/packages/urllib3/__init__.py", line 16, in <module>
        from .connectionpool import (
      File "requests/packages/urllib3/connectionpool.py", line 45, in <module>
        from .util import get_host, is_connection_dropped, ssl_wrap_socket
      File "requests/packages/urllib3/util.py", line 293, in <module>
        def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=CERT_NONE,
    NameError: name 'CERT_NONE' is not defined
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/tmp/pip-a6e6xF-build/setup.py", line 6, in <module>

    import requests

  File "requests/__init__.py", line 52, in <module>

    from . import utils

  File "requests/utils.py", line 22, in <module>

    from .compat import parse_http_list as _parse_list_header

  File "requests/compat.py", line 7, in <module>

    from .packages import charade as chardet

  File "requests/packages/__init__.py", line 3, in <module>

    from . import urllib3

  File "requests/packages/urllib3/__init__.py", line 16, in <module>

    from .connectionpool import (

  File "requests/packages/urllib3/connectionpool.py", line 45, in <module>

    from .util import get_host, is_connection_dropped, ssl_wrap_socket

  File "requests/packages/urllib3/util.py", line 293, in <module>

    def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=CERT_NONE,

NameError: name 'CERT_NONE' is not defined
```

---

This fix is a simple comment over buggy code, so this error would not happen again until you fix it in a proper way.

It is exactly the same as discussed in: http://stackoverflow.com/questions/14919557/how-to-get-urllib3-and-requests-working-with-jython-2-7-beta-1

Important: It does not applies only to jython users, but python users are being affected by this error too.


You need to take a better look at your problem. The `NameError` caused in your example is not in the code you just commented out: CERT_NONE is not in any of that code. This bug cannot possibly be fixed by this PR.


Ugh, ignore the above, that was a lousy reason. However, this bug is in urllib3, so we aren't able to make the fix. There is an open bug report: shazow/urllib3#150. Until that is resolved, Requests continues to work correctly on all platforms except for Jython and CPython without SSL. Better to wait for the bug than to break SSL support on _all_ platforms.


Still getting this error when trying to install requests on RHEL


@dalanmiller what version are you trying to install?


I'm also still getting this problem with trying to install requests 1.2.0 in a virtualenv (created with 1.8.4) (Ubuntu 10).


Could you post your exact error? The code in question has been fixed and restructured in general. So it's quite unlikely it's the same error.


Command: `bash pip install requests`

```
Downloading/unpacking requests
  Running setup.py egg_info for package requests
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/var/lib/jenkins/jobs/lingware-build-resources/workspace/.env/build/requests/setup.py", line 6, in <module>
        import requests
      File "requests/__init__.py", line 52, in <module>
        from . import utils
      File "requests/utils.py", line 23, in <module>
        from .compat import parse_http_list as _parse_list_header
      File "requests/compat.py", line 7, in <module>
        from .packages import charade as chardet
      File "requests/packages/__init__.py", line 3, in <module>
        from . import urllib3
      File "requests/packages/urllib3/__init__.py", line 16, in <module>
        from .connectionpool import (
      File "requests/packages/urllib3/connectionpool.py", line 45, in <module>
        from .util import get_host, is_connection_dropped, ssl_wrap_socket
      File "requests/packages/urllib3/util.py", line 293, in <module>
        def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=CERT_NONE,
    NameError: name 'CERT_NONE' is not defined
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/var/lib/jenkins/jobs/lingware-build-resources/workspace/.env/build/requests/setup.py", line 6, in <module>

    import requests

  File "requests/__init__.py", line 52, in <module>

    from . import utils

  File "requests/utils.py", line 23, in <module>

    from .compat import parse_http_list as _parse_list_header

  File "requests/compat.py", line 7, in <module>

    from .packages import charade as chardet

  File "requests/packages/__init__.py", line 3, in <module>

    from . import urllib3

  File "requests/packages/urllib3/__init__.py", line 16, in <module>

    from .connectionpool import (

  File "requests/packages/urllib3/connectionpool.py", line 45, in <module>

    from .util import get_host, is_connection_dropped, ssl_wrap_socket

  File "requests/packages/urllib3/util.py", line 293, in <module>

    def ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=CERT_NONE,

NameError: name 'CERT_NONE' is not defined

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /var/lib/jenkins/jobs/lingware-build-resources/workspace/.env/build/requests
Storing complete log in /var/lib/jenkins/.pip/pip.log
```


OK - it looks like an old version was still hanging round, and that it is indeed solved.  But thanks for looking at it!