0

I don't know why when I try to import and use the requests module it gives me an error. I don't understand why the problem talks about the socket module.

This is the error: this is the error

Parzival
  • 2,051
  • 4
  • 14
  • 32
  • Rename your socket.py file to something else. Part of the code of the requests module is trying to import the built-in socket module, but is importing yours instead. – Gino Mempin Jun 12 '21 at 22:57
  • 2
    Also, please post console output as **TEXT**. – Gino Mempin Jun 12 '21 at 22:58
  • 2
    Does this answer your question? [WebSocket server in Python: 'module' object has no attribute 'AF\_INET'](https://stackoverflow.com/questions/14755963/websocket-server-in-python-module-object-has-no-attribute-af-inet) – Gino Mempin Jun 12 '21 at 23:00

0 Answers0