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

3
  • 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. Commented Jun 12, 2021 at 22:57
  • 2
    Also, please post console output as TEXT. Commented Jun 12, 2021 at 22:58
  • 2
    Does this answer your question? WebSocket server in Python: 'module' object has no attribute 'AF_INET' Commented Jun 12, 2021 at 23:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.