Hey,
I ran into a problem when using oneclient with memory mapping and numpy arrays:
Inside a oneclient mount run the following python script:
import numpy as np
save_array = np.arange(9).reshape(3,3)
np.save("array.npy", save_array, fix_imports=False)
# works
load_array1 = np.load("array.npy", mmap_mode="c", fix_imports=False)
# doesn't work
load_array2 = np.load("array.npy", mmap_mode="r", fix_imports=False)
The error in the last step is:
Traceback (most recent call last):
File "test.py", line 10, in <module>
load_array2 = np.load("array.npy", mmap_mode="r", fix_imports=False)
File "/usr/local/lib/python3.6/dist-packages/numpy/lib/npyio.py", line 450, in load
return format.open_memmap(file, mode=mmap_mode)
File "/usr/local/lib/python3.6/dist-packages/numpy/lib/format.py", line 869, in open_memmap
mode=mode, offset=offset)
File "/usr/local/lib/python3.6/dist-packages/numpy/core/memmap.py", line 264, in __new__
mm = mmap.mmap(fid.fileno(), bytes, access=acc, offset=start)
OSError: [Errno 19] No such device
As far as I could find out, the problem might have something to do with fuse:
https://stackoverflow.com/questions/46839807/mmap-no-such-device
Any way to fix this on the oneclient side? E.g. mount options?
Hey,
I ran into a problem when using oneclient with memory mapping and numpy arrays:
Inside a oneclient mount run the following python script:
The error in the last step is:
As far as I could find out, the problem might have something to do with fuse:
https://stackoverflow.com/questions/46839807/mmap-no-such-device
Any way to fix this on the oneclient side? E.g. mount options?