[Tutor] FW: Problem with ftplib

Valone, Toren W. TValone at DMV.CA.gov
Tue Nov 21 17:32:18 CET 2006


 

 

 

I am attempting to design a basic program to FTP files to and from a
server here is the message I am getting

 

 

Traceback (most recent call last):

  File "C:/Python24/ftpdmv.py", line 2, in -toplevel-

    x = FTP(host='mvs.teale.ca.gov',user='mvtwv',passwd='xxxxx')

  File "C:\Python24\lib\ftplib.py", line 107, in __init__

    self.connect(host)

  File "C:\Python24\lib\ftplib.py", line 129, in connect

    raise socket.error, msg

error: (10053, 'Software caused connection abort')

 

Here is the code ran in IDLE

 

IDLE 1.1.2      

>>> from ftplib import *

>>> x = FTP(host='mvs.teale.ca.gov',user='mvtwv',passwd='xxxxx')

 

I traced it down to the socket.py web but could not find 10053 in the
error codes. 

 

Debug stops here

def __init__(self, family=AF_INET, type=SOCK_STREAM, proto=0,
_sock=None):

        if _sock is None:

            _sock = _realsocket(family, type, proto)

        self._sock = _sock

        self.send = self._sock.send

        self.recv = self._sock.recv

        self.sendto = self._sock.sendto

        self.recvfrom = self._sock.recvfrom   <-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061121/c4ee09da/attachment.htm 


More information about the Tutor mailing list