I have a really large file I\'m trying to open with mmap and its giving me permission denied. I\'ve tried different flags and modes to the os.open but its just not
os.open
I think its a flags issue, try opening as read only:
mfd = os.open('BigFile', os.O_RDONLY)
and mmap.mmap by default tries to map read/write, so just map read only:
mfile = mmap.mmap(mfd, 0, prot=mmap.PROT_READ)