I'm using Python Requests. All works great but today I get this strange error:
[...]
File "/usr/local/Cellar/python/2.7.2/lib/python2.7/site-packages/requests/models.py", line 321, in full_url
netloc = netloc.encode('idna').decode('utf-8')
LookupError: unknown encoding: idna
Any ideas what could be wrong? I'm using Python 2.7.2 from brew.
import encodings.idna
and see if that works. – Overstateencodings.idna
was not included before Python 2.3. – Overstate