【问题标题】:python Error:Exception in thread Thread-18:python 错误:线程 Thread-18 中的异常:
【发布时间】: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


    【解决方案1】:

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

    您最好提供更多关于错误本身的上下文。错误线程更长吗?,你能显示创建错误的原始代码吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多