0
我们在我们的项目中使用了PyFilesystem。它工作正常的Windows 7 64位,但在Windows 7 X32这引发了一个异常:当发生异常PyFilesystem中的“LP_OVERLAPPED实例,而不是指向OVERLAPPED的指针”异常
Exception in thread Thread-28:
Traceback (most recent call last):
File "C:\Python34\lib\threading.py", line 911, in _bootstrap_inner
self.run()
File "C:\environment\lib\site-packages\fs\osfs\watch_win32.py", line 365, in run
-1)
ctypes.ArgumentError: argument 4: <class 'TypeError'>: expected LP_OVERLAPPED instance instead of pointer to OVERLAPPED
代码:
...
overlapped = OVERLAPPED()
while not self.closed:
try:
GetQueuedCompletionStatus(self._iocp,
ctypes.byref(nbytes),
ctypes.byref(iocpkey),
ctypes.byref(overlapped),
-1)
except WindowsError:
traceback.print_exc()
...
我会感谢任何帮助。