Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Python 2.7 import socket urllib fails to load, module not found

Received: by 10.68.228.227 with SMTP id sl3mr2274468pbc.5.1345491808944;
        Mon, 20 Aug 2012 12:43:28 -0700 (PDT)
Path: t10ni2961791pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!novia!news-peer1!btnet!zen.net.uk!hamilton.zen.co.uk!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border6.a.newsrouter.astraweb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!plix.pl!newsfeed2.plix.pl!news.mi.ras.ru!goblin2!goblin1!goblin.stu.neva.ru!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From: wdt...@comcast.net
Newsgroups: comp.lang.python
Subject: Re: Python 2.7 import socket urllib fails to load, module not found
Date: Fri, 17 Aug 2012 13:41:37 -0700 (PDT)
Organization: http://groups.google.com
Lines: 40
Message-ID: <1726c197-b2bb-47d8-982f-9f26af1e310d@googlegroups.com>
References: <22db6f61-180c-47ce-a0c3-3315b40b8315@googlegroups.com> <mailman.3429.1345232370.4697.python-list@python.org>
NNTP-Posting-Host: 50.136.9.168
Mime-Version: 1.0
X-Trace: posting.google.com 1345236098 23468 127.0.0.1 (17 Aug 2012 20:41:38 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 17 Aug 2012 20:41:38 +0000 (UTC)
Cc: python-l...@python.org
In-Reply-To: <mailman.3429.1345232370.4697.python-list@python.org>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.136.9.168; posting-account=hINqSwoAAACa9BnfUo4SmDvMl4mWdwot
User-Agent: G2/1.0
Bytes: 2422
X-Original-Bytes: 2298
Content-Type: text/plain; charset=ISO-8859-1

> 
> So, on my system I get:
> 
> ActivePython 2.7.0.2 (ActiveState Software Inc.) based on
> 
> Python 2.7 (r27:82500, Aug 23 2010, 17:18:21) [MSC v.1500 32 bit 
> 
> (Intel)] on win32
> 
> Type "help", "copyright", "credits" or "license" for more information.
> 
>  >>> import urllib
> 
>  >>> import socket
> 
>  >>>
> 
> 
> 
> What does your system show?
> 
> 
> 
> Emile
> 
From cmd prompt - I get this:
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\urllib.py", line 26, in <module>
    import socket
  File "C:\Python27\lib\socket.py", line 47, in <module>
    import _socket
ImportError: DLL load failed: The specified module could not be found

I also get that if I attempt to import socket.

NOTE this does not happen when I'm in the pythonwin IDE.