From: "Tim Williams" <[EMAIL PROTECTED]>
To: "Eric Price" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED], python-list@python.org
Subject: Re: Can't Get Email Interface Working
Date: Sat, 7 Apr 2007 17:53:28 +0100

On 07/04/07, Eric Price <[EMAIL PROTECTED]> wrote:
Good grief! And they call a 722-line program "simple"?! LOL!
I did what I need to do with a __one_line_shell_script__ LOL!
Naw, if I have to go through all that, I'll skip on python this time around,
thank you very much!
Eric

Yup, its not so simple

Your problem is :

File "/usr/local/lib/python2.4/mimetools.py", line 130, in choose_boundary
  hostid = socket.gethostbyname(socket.gethostname())
socket.gaierror: (8, 'hostname nor servname provided, or not known')

What do you get if you do the following in your interpreter?


import socket
socket.gethostname()
'twilliams'
socket.gethostbyname(socket.gethostname())
'194.129.107.254'


import socket
socket.gethostname()
'server312.example.com'
socket.gethostbyname(socket.gethostname())
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
socket.gaierror: (8, 'hostname nor servname provided, or not known')


Obviously, I substituted "example.com" above; however, the host that comes back no longer exists, so it may as well be "example.com"! And the server # is courtesy of the server farm. In fact, the whole thing is. What do?
TIA,
Eric

_________________________________________________________________
Can’t afford to quit your job? – Earn your AS, BS, or MS degree online in 1 year. http://www.classesusa.com/clickcount.cfm?id=866145&goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866143

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to