X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.7 required=5.0 tests=AWL,BAYES_00,BOTNET,J_CHICKENPOX_12,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Date: Mon, 02 Feb 2009 08:38:13 -0500 From: Jason Tishler To: cygwin AT cygwin DOT com Subject: Re: The error of *import socket* within python. Message-id: <20090202133813.GA1060@tishler.net> Mail-followup-to: cygwin AT cygwin DOT com References: <20090130222427 DOT GE11828 AT tishler DOT net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline In-reply-to: User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hongyi, On Sat, Jan 31, 2009 at 12:19:04PM +0800, Hongyi Zhao wrote: > On Fri, 30 Jan 2009 17:24:27 -0500, Jason Tishler > wrote: Please see the following: http://cygwin.com/acronyms#PCYMTNQREAIYR > >cygcheck -c python > > Please see the following infomation. Note, this time, I use the > python 2.5.1-2 which is the default one installed by cygwin, i.e., > instead of Python 2.5.2: No, the default is 2.5.2-1 -- the previous version is 2.5.1-2. > werner AT 6bfcc76be8b548c ~ > $ cygcheck -c python > Cygwin Package Information > Package Version Status > python 2.5.1-2 OK cygcheck indicates your Python installation is OK. > werner AT 6bfcc76be8b548c ~ > $ python > 'import site' failed; use -v for traceback > Python 2.5.1 (r251:54863, May 18 2007, 16:56:43) > [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import socket > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named socket However, your Python installation seems to be severely broken. Sorry, but I don't know why. AFAICT, no one else has reported a problem like this before. Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/