首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python SLEEPPY演示获取IOError:"sleep_endpoints_summary.csv不存在“

Python SLEEPPY演示获取IOError:"sleep_endpoints_summary.csv不存在“
EN

Stack Overflow用户
提问于 2021-01-19 04:24:45
回答 1查看 23关注 0票数 0

完全错误是:

代码语言:javascript
复制
IOError: File C:\PRIMARY\WORK\wearable\SLEEPPY\RESULTS/demo/sleep_endpoints/sleep_endpoints_summary.csv does not exist

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

混合使用反斜杠和前斜杠是个问题吗?

演示缺少目录:SLEEPPY\ ...and /demo/

目录"C:\PRIMARY\WORK\wearable\SLEEPPY\RESULTS“存在。

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

我在Windows 10 Python 2.7.18上运行

完整输出,结尾有错误...

代码语言:javascript
复制
>>> 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
>>>
EN

回答 1

Stack Overflow用户

发布于 2021-01-22 03:37:38

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

下一步,def split_days_geneactiv_bin崩溃了,出现了ioerror...

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65781574

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档