Skip to content

E_IO_001 — Cannot open file (read)

A read attempt on a file failed — the file doesn't exist, the path is wrong, or permissions don't allow reading.

The error message includes the offending path. Print it to confirm.

How to fix

import os, flox

path = "data/BTCUSDT-2024.csv"
if not os.path.exists(path):
    # Either fix the path or download the data first.
    raise SystemExit(f"missing: {path}")

eng.run_csv("BTCUSDT", path)

Common causes

  • Path is relative to the wrong working directory (os.getcwd() may not be where you think it is — IDE / Jupyter / launcher all differ).
  • File doesn't exist yet (forgot to download, mount, or sync).
  • Read permission denied (file owned by another user / group).
  • Path uses backslashes on Windows that didn't escape in a Python literal ("C:\Users\..." becomes \U escape — use r"..." or /).