代码之家  ›  专栏  ›  技术社区  ›  Doug Null

Python SLEEPPY演示收到IO错误:“sleep_endpoints_summary.csv不存在”

  •  0
  • Doug Null  · 技术社区  · 3 年前

    完全错误为:

    IOError: File C:\PRIMARY\WORK\wearable\SLEEPPY\RESULTS/demo/sleep_endpoints/sleep_endpoints_summary.csv does not exist
    

    另外:缺少目录SLEEPY\RESULTS/demo/。

    混合使用睫毛和睫毛是一个问题吗?

    …并且缺少目录:SLEEPPY\RESULTS/demo/

    目录“C:\PRIMARY\WORK\可穿戴\睡眠\结果”存在。

    安装后执行“运行演示文件”时,我收到IOError https://github.com/elyiorgos/sleeppy 睡眠测量。

    我运行的是Windows 10 Python 2.7.18

    输出已满,末尾有错误。。。

    >>> import sleeppy.tests as demo
    >>> demo.run_demo()
    Please provide a path to a results directory:    C:\PRIMARY\WORK\wearable\SLEEPPY\RESULTS
    Loading data...
    Error processing: c:\Python27\lib\site-packages\sleeppy\tests\demo.bin
    Error: ``C:\PRIMARY\WORK\wearable\SLEEPPY\RESULTS/c:\Python27\lib\site-packages\sleeppy\tests\demo/raw_days/c:\Python27\lib\site-packages\sleeppy\tests`` does not exist
    total run time: 6.7197999994 minutes
    Checking endpoints...
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "c:\Python27\lib\site-packages\sleeppy\tests\demo.py", line 37, in run_demo
        obtained = collect_endpoints(dst)
      File "c:\Python27\lib\site-packages\sleeppy\tests\demo.py", line 43, in collect_endpoints
        return pd.read_csv(src).values[0]
      File "c:\Python27\lib\site-packages\pandas\io\parsers.py", line 678, in parser_f
        return _read(filepath_or_buffer, kwds)
      File "c:\Python27\lib\site-packages\pandas\io\parsers.py", line 440, in _read
        parser = TextFileReader(filepath_or_buffer, **kwds)
      File "c:\Python27\lib\site-packages\pandas\io\parsers.py", line 787, in __init__
        self._make_engine(self.engine)
      File "c:\Python27\lib\site-packages\pandas\io\parsers.py", line 1014, in _make_engine
        self._engine = CParserWrapper(self.f, **self.options)
      File "c:\Python27\lib\site-packages\pandas\io\parsers.py", line 1708, in __init__
        self._reader = parsers.TextReader(src, **kwds)
      File "pandas\_libs\parsers.pyx", line 384, in pandas._libs.parsers.TextReader.__cinit__
      File "pandas\_libs\parsers.pyx", line 695, in pandas._libs.parsers.TextReader._setup_parser_source
    IOError: File C:\PRIMARY\WORK\wearable\SLEEPPY\RESULTS/demo/sleep_endpoints/sleep_endpoints_summary.csv does not exist
    >>>
    
    0 回复  |  直到 3 年前
        1
  •  0
  •   Doug Null    3 年前

    到目前为止,答案是我必须为Windows 10调试github sleeppy。 首先,结果路径存在初始化问题。

    接下来,def split_days_geneactiv_bin因ioerror而崩溃。。。