Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27264

Re: Python 2.7 import socket urllib fails to load, module not found

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <wdtate@comcast.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'subject:Python': 0.05; 'importerror:': 0.05; 'socket': 0.05; 'python': 0.09; 'cmd': 0.09; 'failed:': 0.09; 'subject:2.7': 0.09; 'subject:module': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; 'subject:not': 0.11; '2.7': 0.13; 'aug': 0.13; '2.7.3': 0.16; '_socket': 0.16; 'from:addr:comcast.net': 0.16; 'inc.)': 0.16; 'pythonwin': 0.16; 'socket.': 0.16; 'subject:fails': 0.16; 'subject:import': 0.16; 'subject:urllib': 0.16; 'urllib': 0.16; '>>>': 0.18; 'load': 0.19; 'module': 0.19; 'bit': 0.21; 'import': 0.21; '"",': 0.22; 'cc:2**0': 0.23; 'specified': 0.23; 'this:': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'skip:" 20': 0.26; '(most': 0.27; 'dll': 0.27; 'received:209.85.212': 0.28; "i'm": 0.29; 'file': 0.32; 'could': 0.32; 'traceback': 0.33; 'received:google.com': 0.34; 'so,': 0.35; 'received:209.85': 0.35; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; '2010,': 0.38; 'your': 0.60; 'from:no real name:2**0': 0.60; 'subject:, ': 0.61; 'more': 0.63; '26,': 0.65; 'prompt': 0.78; 'received:209.85.212.56': 0.91; 'subject:found': 0.91
Newsgroups comp.lang.python
Date Fri, 17 Aug 2012 13:41:37 -0700 (PDT)
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
References <22db6f61-180c-47ce-a0c3-3315b40b8315@googlegroups.com> <mailman.3429.1345232370.4697.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 50.136.9.168
MIME-Version 1.0
Subject Re: Python 2.7 import socket urllib fails to load, module not found
From wdtate@comcast.net
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.3430.1345236100.4697.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1345236100 news.xs4all.nl 6867 [2001:888:2000:d::a6]:60582
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:27264

Show key headers only | View raw


> 
> 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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 12:20 -0700
  Re: Python 2.7 import socket urllib fails to load, module not found Emile van Sebille <emile@fenx.com> - 2012-08-17 12:39 -0700
    Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 13:41 -0700
      Re: Python 2.7 import socket urllib fails to load, module not found Emile van Sebille <emile@fenx.com> - 2012-08-17 13:57 -0700
        Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:15 -0700
          Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:22 -0700
            Re: Python 2.7 import socket urllib fails to load, module not found Emile van Sebille <emile@fenx.com> - 2012-08-17 15:40 -0700
          Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:22 -0700
        Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:15 -0700
    Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 13:41 -0700
  Re: Python 2.7 import socket urllib fails to load, module not found wdtate@comcast.net - 2012-08-17 14:21 -0700
  Re: Python 2.7 import socket urllib fails to load, module not found Christian Heimes <lists@cheimes.de> - 2012-08-18 00:58 +0200

csiph-web