X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: Python does not import ctypes.wintypes
Date:  Wed, 24 Dec 2008 15:54:21 +0100
Lines: 25
Message-ID: <gitif7$5cm$1@ger.gmane.org>
References:  <4701634bc4e0901264ec8208ec3ce466@www1.mail.volny.cz>
Mime-Version:  1.0
Content-Type:  text/plain; charset="us-ascii"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.71.4
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

* hrmp@volny.cz (Wed, 24 Dec 2008 11:53:40 +0100 (CET))> 
> 
> I've got the following problem (both on Windows 2000 and Windows XP):
> 
> rol> python
> 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 ctypes
> >>> import ctypes.wintypes
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "/tmp/python.6884/usr/lib/python2.5/ctypes/wintypes.py", line 21,
> in <module>
> ValueError: _type_ 'v' not supported
> >>>
> Python from python.org works OK, wintypes.py for cygwin is exactly the
> same as the one from python.org

I googled for the error[1] (you should have done that, too). Looks like 
the "wintypes" means exactly that: it's only supported on Windows - 
running Windows Python.

Thorsten
[1] http://osdir.com/ml/python.windows-ce/2007-02/msg00009.html


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

