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

SourceForge.net noreply at sourceforge.net
Fri Sep 26 13:21:23 EDT 2003


Bugs item #812376, was opened at 2003-09-25 12:10
Message generated for change (Comment added) made by rptownsend
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





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

>Comment By: Richard Townsend (rptownsend)
Date: 2003-09-26 18:21

Message:
Logged In: YES 
user_id=200117

I had already applied the workaround to my 2.3.1 build.



I don't think configure was broken with Python 2.3 - and it 

was with 2.3 that I first noticed the problem.





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

Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-09-26 18:04

Message:
Logged In: YES 
user_id=29957

Hm. I wonder if this is related to the configure broken-ness.

Can you apply the workaround from

http://www.python.org/2.3.1/bugs.html and see if the problem

is fixed?



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

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