Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1
Title: Message I use the 'pyserial' package, and it stopped working after upgrading from python-2.2.1-1 to python-2.2.2-1. Python gives this traceback: Traceback (most recent call last): File "./upgrade.py", line 2, in ? import serial, sys, os File "/usr/lib/python2.2/site-packages/serial/__init__.py", line 15, in ? from serialposix import * File "/usr/lib/python2.2/site-packages/serial/serialposix.py", line 107, in ? TIOCMBIS = TERMIOS.TIOCMBISAttributeError: 'module' object has no attribute 'TIOCMBIS' I tried going back to python-2.2.1-1, and everything started working again. I've attached a cygcheck. I have also submitted a bug report to the pyserial project at sourceforge, but the projects looks a little dead there. I don't know if this is really a problem with the cygwin version of python or not. The "TIOCMBI[SC]" attributes of the termios module seem to have disappeared. I really don't know what these are, or what they are used for, but if anyone knows what I can change them to, to make it work, I'd be appreciative. -Rolf Campbell [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1 From: Jason Tishler To: cygwin at cygwin dot com Date: Fri, 15 Nov 2002 12:44:53 -0500 (EST) Subject: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1 Reply-to: cygwin at cygwin dot com New News: === I have updated the version of Python to 2.2.2-1. The tarballs should be available on a Cygwin mirror near you shortly. The _socket module is still being built static instead of shared to workaround a fork() issue with DLL base address conflicts. See the README for more details. Cygwin Win95/NT Configuration Diagnostics Current System Time: Mon Nov 18 13:10:52 2002 Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 3 Path: C:\cygwin\usr\local\bin C:\cygwin\bin C:\cygwin\bin C:\Program Files\ActivePython\ C:\WINNT\SYSTEM32 C:\WINNT C:\WINNT\SYSTEM32\WBEM C:\PERFORCE C:\cygwin\bin C:\WINNT\system32 C:\WINNT C:\WINNT\System32\Wbem C:\Perforce C:\cygwin\usr\local\bin C:\cygwin\bin C:\Program Files\SSH C:\cygwin\usr\X11R6\bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT HOME = `C:\cygwin\home\rcampbell' MAKE_MODE = `unix' PWD = `/home/rcampbell' USER = `rcampbell' ALLUSERSPROFILE = `C:\Documents and Settings\All Users' APPDATA = `C:\Documents and Settings\rcampbell\Application Data' COLORFGBG = `0;default;15' COLORTERM = `rxvt-xpm' COMMONPROGRAMFILES = `C:\Program Files\Common Files' COMPUTERNAME = `PCRCAMPBELL2' COMSPEC = `C:\WINNT\system32\cmd.exe' COSMIC = `c:/node.beta1/COSMIC' DISPLAY = `:0' HOMEDRIVE = `C:' HOMEPATH = `\' LOGONSERVER = `\\OTTDC2' MANPATH = `:/usr/ssl/man' NUMBER_OF_PROCESSORS = `1' OLDPWD = `/c/node/node/comp/hc12' OS2LIBPATH = `C:\WINNT\system32\os2\dll;' OS = `Windows_NT' P4CONFIG = `.p4config' PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyc;.pyo;.pyw;.pys' PROCESSOR_ARCHITECTURE = `x86' PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 6, GenuineIntel' PROCESSOR_LEVEL = `6' PROCESSOR_REVISION = `0806' PROGRAMFILES = `C:\Program Files' PS1 = `\[[02;34m\]$PWD\[[02;33m\]>\[[0m\] ' SHLVL = `1' SYSTEMDRIVE = `C:' SYSTEMROOT = `C:\WINNT' TEMP = `C:\Temp' TERM = `xterm' USERDNSDOMAIN = `tropicnetworks.com' USERDOMAIN = `TROPICNETWORKS' USERNAME = `rcampbell' USERPROFILE = `C:\Documents and Settings\rcampbell' USE_GCC3_FOR_DEPENDANCIES = `yes' WINDIR = `C:\WINNT' WINDOWID = `168035096' _ = `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags = 0x0022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/c (default) = `C:' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/e (default) = `E:' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/f (default) = `F:' flags = 0x HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/g (default) = `G:' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/p (default) = `P:' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/w (default) = `W:' flags = 0x0002 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions (default) = (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = `/cygdrive' cygdrive flags
Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1
Rolf, On Mon, Nov 18, 2002 at 01:23:13PM -0500, Rolf Campbell wrote: > I tried going back to python-2.2.1-1, and everything started working > again. Really? I just tried the following: $ ./python Python 2.2.1 (#1, Jun 25 2002, 10:55:46) ^ * [GCC 2.95.3-5 (cygwin special)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import TERMIOS /home/jt/src/python-2.2.1-1/Lib/TERMIOS.py:7: DeprecationWarning: the TERMIOS module is deprecated; please use termios DeprecationWarning) >>> >>> TERMIOS.TIOCMBIS Traceback (most recent call last): File "", line 1, in ? AttributeError: 'module' object has no attribute 'TIOCMBIS' So, python-2.2.1-1 does not seem to work either. I also tried 2.2-1 and 2.1.1-1 -- they don't seem to define TERMIOS.TIOCMBIS either. Upon reading Modules/termios.c, we see the following: #ifdef TIOCMBIC {"TIOCMBIC", TIOCMBIC}, #endif #ifdef TIOCMBIS {"TIOCMBIS", TIOCMBIS}, #endif Hence, TIOCMBI[CS] will only be defined if a header files (e.g., sys/termios.h) defines the corresponding constants. > I don't know if this is really a problem with the cygwin version of > python or not. The "TIOCMBI[SC]" attributes of the termios module > seem to have disappeared. I really don't know what these are, or what > they are used for, but if anyone knows what I can change them to, to > make it work, I'd be appreciative. I'm sorry but if this is important to you, then you will have to debug this corner case further yourself. AFAICT, there have not been any changes to Cygwin Python is this area for sometime (i.e., for over 1 year). 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 Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1
Thanks Jason, The problem was actually a combination of some strange code in the pyserial package, and the termios.TIOCMGET attribute being added in python 2.2.2. Python 2.2.1 (#1, Jun 25 2002, 10:55:46) [GCC 2.95.3-5 (cygwin special)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import termios >>> hasattr(termios, 'TIOCMGET') 0 Python 2.2.2 (#1, Nov 15 2002, 07:49:04) [GCC 2.95.3-5 (cygwin special)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> import termios >>> hasattr(termios, 'TIOCMGET') 1 The pyserial code was assuming if TIOCMGET was defined, then a bunch of other things would be too (which was a bad assumption). I have patched pyserial (locally) and it seems to work fine now. Thanks for your quick response. -Rolf > -Original Message- > From: Jason Tishler [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 18, 2002 3:24 PM > To: [EMAIL PROTECTED] > Subject: Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1 > > > Rolf, > > On Mon, Nov 18, 2002 at 01:23:13PM -0500, Rolf Campbell wrote: > > I tried going back to python-2.2.1-1, and everything > started working > > again. > > Really? I just tried the following: > > > $ ./python > Python 2.2.1 (#1, Jun 25 2002, 10:55:46) >^ >* > [GCC 2.95.3-5 (cygwin special)] on cygwin > Type "help", "copyright", "credits" or "license" for more > information. > >>> import TERMIOS > /home/jt/src/python-2.2.1-1/Lib/TERMIOS.py:7: > DeprecationWarning: the TERMIOS module is deprecated; please > use termios > DeprecationWarning) > >>> > >>> TERMIOS.TIOCMBIS > Traceback (most recent call last): > File "", line 1, in ? > AttributeError: 'module' object has no attribute 'TIOCMBIS' > > So, python-2.2.1-1 does not seem to work either. I also > tried 2.2-1 and 2.1.1-1 -- they don't seem to define > TERMIOS.TIOCMBIS either. > > Upon reading Modules/termios.c, we see the following: > > #ifdef TIOCMBIC > {"TIOCMBIC", TIOCMBIC}, > #endif > #ifdef TIOCMBIS > {"TIOCMBIS", TIOCMBIS}, > #endif > > Hence, TIOCMBI[CS] will only be defined if a header files (e.g., > sys/termios.h) defines the corresponding constants. > > > I don't know if this is really a problem with the cygwin version of > > python or not. The "TIOCMBI[SC]" attributes of the termios module > > seem to have disappeared. I really don't know what these > are, or what > > they are used for, but if anyone knows what I can change > them to, to > > make it work, I'd be appreciative. > > I'm sorry but if this is important to you, then you will have > to debug this corner case further yourself. AFAICT, there > have not been any changes to Cygwin Python is this area for > sometime (i.e., for over 1 year). > > 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 > Bug reporting: http://cygwin.com/bugs.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1
Rolf, On Mon, Nov 18, 2002 at 03:49:32PM -0500, Rolf Campbell wrote: > I have patched pyserial (locally) and it seems to work fine now. Please submit your patch to pyserial's patch collector on SF for consideration. > Thanks for your quick response. You are welcome. 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 Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1
> -Original Message- > From: Jason Tishler [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 19, 2002 7:18 AM > To: [EMAIL PROTECTED] > Subject: Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1 > > > Rolf, > > On Mon, Nov 18, 2002 at 03:49:32PM -0500, Rolf Campbell wrote: > > I have patched pyserial (locally) and it seems to work fine now. > > Please submit your patch to pyserial's patch collector on SF > for consideration. > The CVS version of pyserial now works with Cygwin python-2.2.2-1. -Rolf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1
Rolf, On Sun, Nov 24, 2002 at 01:33:31AM -0500, Rolf Campbell wrote: > > -Original Message- > > From: Jason Tishler [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, November 19, 2002 7:18 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [ANNOUNCEMENT] Updated Cygwin Package: python-2.2.2-1 > > > > On Mon, Nov 18, 2002 at 03:49:32PM -0500, Rolf Campbell wrote: > > > I have patched pyserial (locally) and it seems to work fine now. > > > > Please submit your patch to pyserial's patch collector on SF > > for consideration. > > > > The CVS version of pyserial now works with Cygwin python-2.2.2-1. Thanks for following up -- it is much appreciated. 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 Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/