[Idle-dev] Import _socket error

Kurt B. Kaiser kbk at shore.net
Wed Jun 30 02:35:29 EDT 2004

"Vines, John  (Civ,ARL/CISD)" <jvines at arl.army.mil> writes:

> 	I have installed Python 2.3.2 on Irix64 and am trying to run the
> "idle" but keep getting an error stating "no module named _socket".  I
> believe I have my PYTHONPATH correct but am not sure.  Any help would be
> appreciated, thanx

Without using IDLE, run Python:

hydra /home/kbk$ python
Python 2.2.1 (#1, Oct 17 2003, 16:36:36) 
[GCC 2.95.3 20010125 (prerelease, propolice)] on openbsd3
Type "help", "copyright", "credits" or "license" for more information.
>>> import _socket
>>> dir(_socket)

If you can't get that, Python isn't fully installed on your platform.  This doesn't
sound like an IDLE bug.

Check the output of the configure run when you built Python, look for a problem
with the socket module.

More information about the IDLE-dev mailing list