I try to do some requests using Python over Tor with
import socks
import socket
socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 9150)
socket.socket = socks.socksocket
import requests
print(requests.get('http://icanhazip.com')).content
but I have an error
raise SOCKS5Error("{0:#04x}: {1}".format(status, error))
How can I fix that?