MemoryError or Too many open files with MovieStim3

Hi @carlos,

I also encountered the “too many open files” bug with MovieStim3 lately.

After digging through the source, I used the following hack to ensure that my movie stimuli were deleted from memory after use.

After playing a movie, I call the following on my MovieStim3 object, called “encode” in my case:

del encode._mov.reader
del encode._mov
encode._unload()

Maybe this also helps in your situation?

All the best,

Frank.