2014-02-28 72 views
0

以下错误myscript.my系统蟒蛇文件夹threading.py文件occure存在,但错误行810不exist.plz提出妥善的解决办法蟒蛇错误:异常螺纹加工-18:

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 

followind代码错误occure AttributeError的回溯(最后最近一次调用) 在()

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' 

回答

0

的消息,因此是相当不言自明的:“系统找不到指定的文件”。我建议你确认你提供了正确的目录路由到脚本。

您也可以为错误本身提供更多的上下文。线程是否更长?您能显示创建错误的原始代码吗?