1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: cothread problem on Mac osx |
From: | "Shen, Guobao" <[email protected]> |
To: | [email protected] |
Cc: | [email protected] |
Date: | Thu, 09 Feb 2012 10:51:53 -0500 |
Yes, tested with caget/caput, and it works. Thanks, Guobao On 2/9/12 10:05 AM, [email protected] wrote:
From: Shen, Guobao [mailto:[email protected]]
The error is as below: >>> import cothread Traceback (most recent call last): File "<stdin>", line 1, in<module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cothread-2.3-py2.7-macosx-10.6-x86_64.egg/cothread/__init__.py", line 41, in<module> from cothread import * File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cothread-2.3-py2.7-macosx-10.6-x86_64.egg/cothread/cothread.py", line 82, in<module> import coselect File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cothread-2.3-py2.7-macosx-10.6-x86_64.egg/cothread/coselect.py", line 60, in<module> _select_poll = _select.poll AttributeError: 'module' object has no attribute 'poll'Can you try the attached patch and let me know how well things work.
-- Guobao Shen Bldg. 902-B, 17 Cornell Avenue National Synchrotron Light Source II Brookhaven National Laboratory Upton, New York 11973 Tel. : +1 (631) 344 7540 Fax. : +1 (631) 344 8085 http://www.bnl.gov/nsls2