python错误:线程Thread-18中的异常:

时间:2014-02-28 05:12:42

标签: python-2.7 python-3.x ipython-notebook

在myscript.my系统中出现错误后出现anaconda文件夹threading.py文件但错误行810不存在.plz建议正确的解决方案

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代码错误发生         AttributeError Traceback(最近一次调用最后一次)          in()

    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'

1 个答案:

答案 0 :(得分:0)

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

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