Recently, I have been running into a strange issue when using d3. I can run simulations without any issues, but when I plot some files
(e.g., using the plot_sphere.py file on the d3 branch, shell example) I obtain this error
2021-10-13 18:33:07,447 post 0/4 INFO :: Visiting set slices/slices_s1.h5
(start: 0, end: 13)
Traceback (most recent call last):
File "plot_sphere.py", line 88, in <module>
post.visit_writes(args['<files>'], main, output=output_path)
File
"/home/jorafb/dedalus_env/lib/python3.8/site-packages/dedalus-2.1905-py3.8-linux-x86_64.egg/dedalus/
tools/post.py",
line 44, in visit_writes
function(set_path, start, count, **kw)
File "plot_sphere.py", line 53, in main
data = dset[data_slices]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File
hon3.8/site-packages/h5py-3.1.0-py3.8-linux-x86_64.egg/h5py/_hl/dataset.py",
line 787, in __getitem__
self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5d.pyx", line 192, in h5py.h5d.DatasetID.read
File "h5py/_proxy.pyx", line 112, in h5py._proxy.dset_rw
OSError: Can't read data (src and dest dataspaces have different number of
elements selected)
Traceback (most recent call last):
File "plot_sphere.py", line 88, in <module>
post.visit_writes(args['<files>'], main, output=output_path)
File
"/home/jorafb/dedalus_env/lib/python3.8/site-packages/dedalus-2.1905-py3.8-linux-x86_64.egg/dedalus/
tools/post.py",
line 44, in visit_writes
function(set_path, start, count, **kw)
File "plot_sphere.py", line 53, in main
data = dset[data_slices]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File
hon3.8/site-packages/h5py-3.1.0-py3.8-linux-x86_64.egg/h5py/_hl/dataset.py",
line 787, in __getitem__
self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5d.pyx", line 192, in h5py.h5d.DatasetID.read
File "h5py/_proxy.pyx", line 112, in h5py._proxy.dset_rw
OSError: Can't read data (src and dest dataspaces have different number of
elements selected)
Traceback (most recent call last):
File "plot_sphere.py", line 88, in <module>
post.visit_writes(args['<files>'], main, output=output_path)
File
"/home/jorafb/dedalus_env/lib/python3.8/site-packages/dedalus-2.1905-py3.8-linux-x86_64.egg/dedalus/
tools/post.py",
line 44, in visit_writes
function(set_path, start, count, **kw)
File "plot_sphere.py", line 53, in main
data = dset[data_slices]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File
hon3.8/site-packages/h5py-3.1.0-py3.8-linux-x86_64.egg/h5py/_hl/dataset.py",
line 787, in __getitem__
self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5d.pyx", line 192, in h5py.h5d.DatasetID.read
File "h5py/_proxy.pyx", line 112, in h5py._proxy.dset_rw
OSError: Can't read data (src and dest dataspaces have different number of
elements selected)
Traceback (most recent call last):
File "plot_sphere.py", line 88, in <module>
post.visit_writes(args['<files>'], main, output=output_path)
File
"/home/jorafb/dedalus_env/lib/python3.8/site-packages/dedalus-2.1905-py3.8-linux-x86_64.egg/dedalus/
tools/post.py",
line 44, in visit_writes
function(set_path, start, count, **kw)
File "plot_sphere.py", line 53, in main
data = dset[data_slices]
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File
hon3.8/site-packages/h5py-3.1.0-py3.8-linux-x86_64.egg/h5py/_hl/dataset.py",
line 787, in __getitem__
self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5d.pyx", line 192, in h5py.h5d.DatasetID.read
File "h5py/_proxy.pyx", line 112, in h5py._proxy.dset_rw
OSError: Can't read data (src and dest dataspaces have different number of
elements selected)
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpiexec detected that one or more processes exited with non-zero status, thus
causing
the job to be terminated. The first process to do so was:
Process name: [[23543,1],3]
Exit code: 1
However, if I download the files to my local machine, it works perfectly on my conda installation, so the files are not corrupt.