[Python-bugs-list] [ python-Bugs-812376 ] Problem with ftplib on HP-UX11i

SourceForge.net noreply at sourceforge.net
Thu Sep 25 07:10:46 EDT 2003


Bugs item #812376, was opened at 2003-09-25 12:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=812376&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Richard Townsend (rptownsend)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with ftplib on HP-UX11i

Initial Comment:
The following code fails on Python 2.3 (and 2.3.1).



import ftplib

f = ftplib.FTP()

f.connect('hostname', 21)



this raises:



socket.gaierror: (8, 'host nor service provided, or not 

known')



In FTP.connect() it is the call to socket.getaddrinfo() 

that is raising the exception.



The same code works OK on Python 2.2.1



If I pass an IP address instead of a hostname, the code 

runs OK on Python 2.3





----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=812376&group_id=5470



More information about the Python-bugs-list mailing list