test_socket: similar problem

jaredu at its.caltech.edu.bbs jaredu at its.caltech.edu.bbs
Mon Jul 17 19:30:03 EDT 2000


I'm having the same problem, but on a Mac (Mac OS 9.0.4 G4 w/ Python
1.5.2) The solution is probably the similar, but how do I fix it on a
Mac?

--Jared

> Harry George wrote:
> >
> > [I looked in dejanews, but all the socket queries are way beyond
where
> > I'm stuck.]
> >
> > I have a win95 machine which is samba'd to a linux box.  I'm trying
to
> > learn to do python on win95 (COM et al).  First step is to get it
> > running.  py152.exe went ok; then win32all-128.exe.  python,
> > pythonwin, icons in the explorer all ok.  Able to edit and run
simple
> > hello, worlds.
> >
> > Then in the interpreter I tried:
> >  import test.autotest
> > It ran ok (with lots of skipped optionals), but test_socket crashed
> > with socket.error "host not found"
>
> I had the same error. As far as I understood my  computer didn't know
> about his name.. ;-) I made the  file "c:\windows\hosts" , that
> contained one row:
>
> 128.0.0.1 localhost
>
> and after reboot all worked fine..
> >
> > Of course this could be a non-python win95 setup issue, but with
> > tcp/ip running ok (samba, ftp, ping, etc.), I'm wondering if there
is
> > a python-specific issue.  Any ideas?
> >
> > --
> > Harry George
> > hgg9140 at seanet.com
>
> Alexei Kichkine (http://infocentr.r


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list