i was writing a small IRC bot when much to my dismay, i got an error that i cannot seem to understand or fix. the code i used worked before but now windows seems to not be happy with it.
Error:
socket.error: [Errno 10013] An attempt was made to access a socket in a way forbidden by its access permissions
This is the quick code i knocked up:
import socket
s = socket.socket().connect(("irc.cryto.net", 6667))
s.send("NICK kNij\r\n")
s.send("USER kNij 0 0 kNij :derp :3\r\n")
inputfile = s.makefile()
while 1:
line = inputfile.readline()
print line
Edit: it seems to be an all over problem with some sockets