2014-02-28 64 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

的消息,因此是相當不言自明的:「系統找不到指定的文件」。我建議你確認你提供了正確的目錄路由到腳本。

您也可以爲錯誤本身提供更多的上下文。線程是否更長?您能顯示創建錯誤的原始代碼嗎?