Closed travelliu closed 10 years ago
看了一下函数说明,mac os下没有实现这个函数
def qsize(self):
# Raises NotImplementedError on Mac OSX because of broken sem_getvalue()
return self._maxsize - self._sem._semlock._get_value()
因此,你可以修改第55行的内容,禁止使用多进程 把
g_useprocess = 5
改为
g_useprocess = 0
已更新代码,在代码中禁用多进程
[4894][MainThread]support PyOpenSSL [4894][MainThread]support multiprocess [4894][MainThread]support fuzzy matching ssl domain Traceback (most recent call last): File "checkip.py", line 668, in
list_ping()
File "checkip.py", line 639, in list_ping
if checkqueue.qsize() > 0:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/queues.py", line 143, in qsize
return self._maxsize - self._sem._semlock._get_value()
NotImplementedError