【发布时间】:2014-02-28 05:12:41
【问题描述】:
myscript.my 系统 anaconda 文件夹 threading.py 文件存在以下错误,但错误行 810 不存在。请建议正确的解决方案
Exception in thread Thread-18:
Traceback (most recent call last):
File "C:\Anaconda\lib\threading.py", line 810, in __bootstrap_inner
self.run()
File "C:\Anaconda\lib\threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "C:\Anaconda\lib\site-packages\envoy\core.py", line 32, in target
File "C:\Anaconda\lib\subprocess.py", line 709, in __init__
errread, errwrite)
File "C:\Anaconda\lib\subprocess.py", line 957, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
出现跟随代码错误 AttributeError Traceback(最近一次调用最后一次) 在 ()
8 F='resources/ch06-mailboxes/data/enron.mbox.json.bz2'
9 r = envoy.run("bunzip2 %s" % (F,)) --->this line error occured
10 print r.std_out
11 print r.std_err
C:\Anaconda\lib\site-packages\envoy\core.py in run(command, data, timeout)
166
167 cmd = Command(c)
168 out, err = cmd.run(data, timeout) --->this line error occured
169
170 r = Response(process=cmd)
C:\Anaconda\lib\site-packages\envoy\core.py in run(self, data, timeout)
51 self.process=process;
52 thread.join()
53 self.returncode = self.process.returncode ---->this line error occured
54 return self.out, self.err
55
AttributeError: 'NoneType' object has no attribute 'returncode'
【问题讨论】:
标签: python-2.7 python-3.x ipython-notebook