os module in python says "No such file or directory" even when there definently is one

Solution 1:

I think this is the problem...

Windows (by default) has a maximum path length of 260 characters. The absolute path to this file exceeds that limit. The filename alone is 143 characters.

It looks as though even if you try to access the file using a relative path (i.e., chdir() to the appropriate folder then specify just the filename), numpy is probably working out the absolute path then failing.

You have said that renaming the file to something much shorter solves the problem but is impractical due to the high numbers of files that you need to process.

There is a Windows Registry key that can be modified to enable long pathnames: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled

Changing that may help.

Or you could buy a Mac