ionelmc / python-cogen

Automatically exported from https://code.google.com/p/cogen
MIT License
6 stars 0 forks source link

WINFUNCTYPE #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm seeing this on Linux. For whatever reason, the ctypes module on this
server (Debian lenny, Python2.5) does not provide WINFUNCTYPE.

Traceback (most recent call last):
  File "/root/cogen/cogen/core/proactors/__init__.py", line 79, in
has_ctypes_iocp
    import ctypes_iocp_impl
  File "/root/cogen/cogen/core/proactors/ctypes_iocp_impl/__init__.py",
line 4, in <module>
    from api_wrappers import _get_osfhandle, CreateIoCompletionPort,
CloseHandle,   \
  File "/root/cogen/cogen/core/proactors/ctypes_iocp_impl/api_wrappers.py",
line 1, in <module>
    from ctypes import WINFUNCTYPE, GetLastError, \
ImportError: cannot import name WINFUNCTYPE

Original issue reported on code.google.com by g%rre.tt@gtempaccount.com on 24 Nov 2008 at 2:57

GoogleCodeExporter commented 9 years ago
I see now that this traceback is just a dump of a handled error. This was a bit 
of a
red herring. Unless the traceback is helping you track down bugs, I'd drop it. 
In
particular, on Linux, it shouldn't complain at all.

Original comment by g%rre.tt@gtempaccount.com on 24 Nov 2008 at 3:08

GoogleCodeExporter commented 9 years ago
Ah right, I forgot that while developing the ctypes iocp proactor.
I've removed that debug traceback.

Original comment by ionel...@gmail.com on 24 Nov 2008 at 9:06