AssertionError:找不到清单文件:out / dreqManifest.txt

时间:2018-06-12 07:38:42

标签: python

当我运行文件时,会发生以下错误:

AssertionError: Manifest file not found: out/dreqManifest.txt

记录的日志如下:

runfile('C:/Users/rakesh/Climate/cmip6_data.py', wdir='C:/Users/rakesh/Climate')
Traceback (most recent call last):

  File "<ipython-input-7-1fc2857eabc7>", line 1, in <module>
    runfile('C:/Users/rakesh/Climate/cmip6_data.py', wdir='C:/Users/rakesh/Climate')

  File "C:\Users\rakesh\Anaconda4\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
    execfile(filename, namespace)

  File "C:\Users\rakesh\Anaconda4\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/rakesh/Climate/cmip6_data.py", line 1141, in <module>
    dreq = loadDreq(manifest='out/dreqManifest.txt' )

  File "C:/Users/rakesh/Climate/cmip6_data.py", line 932, in __init__
    self.c = config( thisdoc=dreqXML, configdoc=configdoc, useShelve=useShelve,strings=strings,manifest=manifest,configOnly=configOnly)

  File "C:/Users/rakesh/Climate/cmip6_data.py", line 512, in __init__
    assert os.path.isfile( manifest ), 'Manifest file not found: %s' % manifest

AssertionError: Manifest file not found: out/dreqManifest.txt

1 个答案:

答案 0 :(得分:0)

尝试使用/而不是\

因为/用于Linux路径,\用于Windows路径。