How to fix Traceback (most recent call last):

     File "C:\Program
   
Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\socket.py",
   line 833, in create_connection

       sock.connect(sa)

   TimeoutError: [WinError 10060] A connection attempt failed because the
   connected party did not properly respond after a period of time, or
   established connection failed because connected host has failed to respond

    

   During handling of the above exception, another exception occurred:

    

   Traceback (most recent call last):

     File "C:\Users\i9shu\Downloads\python email bot\email bot.py", line 25,
   in <module>

       server = smtplib.SMTP('smtp.gmail.com',2525)

     File "C:\Program
   
Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\smtplib.py",
   line 255, in __init__

       (code, msg) = self.connect(host, port)

     File "C:\Program
   
Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\smtplib.py",
   line 341, in connect

       self.sock = self._get_socket(host, port, self.timeout)

     File "C:\Program
   
Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\smtplib.py",
   line 312, in _get_socket

       return socket.create_connection((host, port), timeout,

     File "C:\Program
   
Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\socket.py",
   line 833, in create_connection

       sock.connect(sa)

   KeyboardInterrupt

    

   Process finished with exit code -1073741510 (0xC000013A: interrupted by
   Ctrl+C)

   eorr

    

   Sent from [1]Mail for Windows

    

References

   Visible links
   1. https://go.microsoft.com/fwlink/?LinkId=550986
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to