
I modified memmap.py to avoid the issues with needed to read. It is working, but I am seeing these: m Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([255, 255, 255], dtype=uint8)> ignored Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0], dtype=uint8)> ignored Out[22]: eos_memmap([ 0, 0, 0, ..., 255, 255, 255], dtype=uint8) print m[0:4] Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0, 0], dtype=uint8)> ignored [0 0 0 0] What's that about?

On Fri, Jan 9, 2009 at 10:59, Neal Becker <ndbecker2@gmail.com> wrote:
I modified memmap.py to avoid the issues with needed to read. It is working, but I am seeing these:
m Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([255, 255, 255], dtype=uint8)> ignored Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0], dtype=uint8)> ignored Out[22]: eos_memmap([ 0, 0, 0, ..., 255, 255, 255], dtype=uint8)
print m[0:4] Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0, 0], dtype=uint8)> ignored [0 0 0 0]
What's that about?
Can you show us your modifications? You may need to also modify __array_finalize__(), _close(), and __del__(). -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco

Robert Kern wrote:
On Fri, Jan 9, 2009 at 10:59, Neal Becker <ndbecker2@gmail.com> wrote:
I modified memmap.py to avoid the issues with needed to read. It is working, but I am seeing these:
m Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([255, 255, 255], dtype=uint8)> ignored Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0], dtype=uint8)> ignored Out[22]: eos_memmap([ 0, 0, 0, ..., 255, 255, 255], dtype=uint8)
print m[0:4] Exception exceptions.EnvironmentError: (22, 'Invalid argument') in <bound method eos_memmap.__del__ of eos_memmap([0, 0, 0, 0], dtype=uint8)> ignored [0 0 0 0]
What's that about?
Can you show us your modifications? You may need to also modify __array_finalize__(), _close(), and __del__().
Problem was with __del__ calling flush. For whatever reason, flush is bad on my device. I simply removed the call.
participants (2)
-
Neal Becker
-
Robert Kern