No module named _socket, on windows

Discussion in 'Python' started by louisJ, Jan 4, 2010.

  1. louisJ

    louisJ Guest

    Hi

    I installed python 2.6 (from python.org) for windows XP, and then
    Pylab.
    When I type "import pylab" in a python shell it shows the error:

    ImportError: No module named _socket


    Any idea what can I do to make this work?

    thank you
    louisJ, Jan 4, 2010
    #1
    1. Advertising

  2. En Mon, 04 Jan 2010 14:24:22 -0300, louisJ <> escribió:

    > I installed python 2.6 (from python.org) for windows XP, and then
    > Pylab.
    > When I type "import pylab" in a python shell it shows the error:
    >
    > ImportError: No module named _socket


    Open the Python command line, type the following lines, and tell us what
    happens:

    Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
    (Intel)] on
    win32
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import socket
    >>> socket._socket

    <module '_socket' from 'd:\apps\python26\DLLs\_socket.pyd'>


    --
    Gabriel Genellina
    Gabriel Genellina, Jan 4, 2010
    #2
    1. Advertising

  3. louisJ

    louisJ Guest

    I don't know what happened or what I did in the meantime but it works
    now...no more errors.

    Gabriel, for information now I have:
    >>> import socket
    >>> socket._socket

    <module '_socket' from 'C:\Python26\DLLs\_socket.pyd'>

    Thank you anyway.
    louisJ, Jan 4, 2010
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Barry Sprajc
    Replies:
    1
    Views:
    384
    Skip Montanaro
    Aug 3, 2003
  2. Arend Sluis

    No model named _socket

    Arend Sluis, Oct 28, 2003, in forum: Python
    Replies:
    2
    Views:
    497
    Arend Sluis
    Oct 28, 2003
  3. Stephen Williams
    Replies:
    2
    Views:
    372
    Dieter Maurer
    May 2, 2004
  4. =?ISO-8859-1?Q?Michael_Str=F6der?=
    Replies:
    3
    Views:
    404
    Dieter Maurer
    Dec 5, 2004
  5. Huzaifa Tapal
    Replies:
    0
    Views:
    415
    Huzaifa Tapal
    Apr 26, 2005
Loading...

Share This Page