Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: 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; 'subject:Python': 0.05; 'sys': 0.05; 'next,': 0.07; 'python': 0.09; 'interpreter,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'restarted': 0.09; 'subject:2.7': 0.09; 'subject:module': 0.09; 'subject:not': 0.11; 'email addr:comcast.net': 0.16; 'outputs': 0.16; 'received:173.11': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'rogue': 0.16; 'socket.': 0.16; 'subject:fails': 0.16; 'subject:import': 0.16; 'subject:urllib': 0.16; 'sys.path': 0.16; 'versions': 0.20; 'import': 0.21; "i'd": 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'tail': 0.29; 'worked': 0.30; 'file': 0.32; 'print': 0.32; 'to:addr:python-list': 0.33; 'done': 0.34; 'thanks': 0.34; 'path': 0.35; 'received:org': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'end': 0.40; 'subject:, ': 0.61; 'first': 0.61; 'within': 0.64; 'subject:found': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: Python 2.7 import socket urllib fails to load, module not found Date: Fri, 17 Aug 2012 15:40:51 -0700 References: <22db6f61-180c-47ce-a0c3-3315b40b8315@googlegroups.com> <1726c197-b2bb-47d8-982f-9f26af1e310d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 173-11-108-137-sfba.hfc.comcastbusiness.net User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345243280 news.xs4all.nl 6899 [2001:888:2000:d::a6]:41444 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27273 On 8/17/2012 2:22 PM wdtate@comcast.net said... >> Done - tail end of the python path had a missing bit...grrrrr... thanks so much > > Well it's bizarre - now it doesn't. did an import sys from within interpreter, then did import socket. Worked the first time. Restarted and it happened again. The sys.path outputs are identical. The print socket.__file__ reveals a file that is in the sys.path...grrrr. > Next, I'd check for rogue versions of _socket.pyd in directories occuring in sys.path. Emile