Urgent. ImportError: No module named _socket

Laura Creighton lac at strakt.com
Fri Jan 10 11:24:15 EST 2003


First of all, can you please not send html mail, but plain ascii to
the list.  Thank you.

Secondly, this is often a permissions problem which you can get if
you install Python with a restrictive umask.  You are looking for
a file called _socketmodule.so in a file called (I think)
/usr/local/lib/python2.1/lib-dynaload/

The file is probably there, but you need to make the file readable
by everybody.  

Laura Creighton



> This is a multi-part message in MIME format.
> 
> ------=_NextPart_000_006A_01C2B8BB.14AAACC0
> Content-Type: text/plain;
> 	charset="iso-8859-7"
> Content-Transfer-Encoding: quoted-printable
> 
> Hi,
> 
> I am trying to set up an application developped in python (Cyberchair) =
> but i have a problem that seems serious.
> 
> When trying to import socket module an importError is occured as =
> follows.
> 
>     ImportError: No module named _socket
> 
> I have read some suggestions on how to solve the problem but they do not =
> apply to my occasion, or I have something done wrong.
> 
> I use python 2.1 on Solaris 8
> 
> Plz if anyone knows how to solve the problem mail me=20
> 
> thanks,
> 
> - Manos Papagelis
> 
> ------=_NextPart_000_006A_01C2B8BB.14AAACC0
> Content-Type: text/html;
> 	charset="iso-8859-7"
> Content-Transfer-Encoding: quoted-printable
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=3DContent-Type content=3D"text/html; =
> charset=3Diso-8859-7">
> <META content=3D"MSHTML 6.00.2722.900" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>
> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>I am trying to set up an application =
> developped in=20
> python (Cyberchair) but i have a problem that seems =
> serious.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>When trying to import socket module an =
> importError=20
> is occured as follows.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>    ImportError: No =
> module named=20
> _socket</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>I have read some suggestions on how to =
> solve the=20
> problem but they do not apply to my occasion, or I have =
> something done=20
> wrong.</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>I use python 2.1 on Solaris =
> 8</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>Plz if anyone knows how to solve the =
> problem mail=20
> me </FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>thanks,</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
> <DIV><FONT face=3DArial size=3D2>- Manos=20
> Papagelis</FONT></DIV></FONT></DIV></BODY></HTML>
> 
> ------=_NextPart_000_006A_01C2B8BB.14AAACC0--
> 
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list