0
votes

i get error when using urllib

python 2.6 django 1.4.1

when i using python

> import ssl

get

    Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xxx/lib/python2.6/ssl.py", line 60, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: libssl.so.6: cannot open shared object file: No such file or directory

i have openssl installed

openssl version -v
OpenSSL 1.0.1e-fips 11 Feb 2013
Neither Python 2.6 or Django 1.4.x are supported any longer. I would highly recommend using a current version, as neither is receiving security updates. In regards to your question, I use the requests package for all of my HTTP needs rather than Python's built-ins: docs.python-requests.org/en/master - FlipperPA