Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > No module named _socket, on windows

Reply
Thread Tools

No module named _socket, on windows

 
 
louisJ
Guest
Posts: n/a
 
      01-04-2010
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
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      01-04-2010
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

 
Reply With Quote
 
 
 
 
louisJ
Guest
Posts: n/a
 
      01-04-2010
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python 2.6.6 on Windows 7 problem - "ImportError: No module named site" Mark Ohrboot Python 0 07-15-2011 03:51 PM
Trying to install module, No module named scipy_distutils.core (but ihave scipy) process Python 1 10-17-2008 06:19 PM
Re: module docstring, documentation,anything? please note is the module type/object NOT some module Maric Michaud Python 0 06-24-2006 12:42 PM
Using JYTHON inside ANT : access os module -> "ImportError: no module named javaos" eric_bellard Python 1 10-07-2004 05:41 AM
Newbie - No module named stdwin K Python 8 07-11-2003 04:41 AM



Advertisments