SanghyunLee
New Contributor II

> The strange thing is that regular Python file I/O works fine with the same file. (i.e. I can open() and write() to that filepath successfully.) Any idea what's going on?

If you try to do a further operation after opening the file it will throw the same error. I'm also experiencing the same issue.