Skip to content

pymcaroitool: cannot open a file with broken links #1090

Open
@woutdenolf

Description

@woutdenolf

merged_119.zip

pymcaroitool /tmp_14_days/merged_119.h5
CRITICAL:PyMca5.PyMcaGui.io.hdf5.HDF5Widget:Entry /119.1 has no children
CRITICAL:PyMca5.PyMcaGui.io.hdf5.HDF5Widget:Entry /119.1 has no children
ERROR:PyMca5.PyMcaGui.PyMcaQt:<class 'KeyError'> "Unable to synchronously open object (unable to open external file, external link file name = 'raw_119.h5')"   File "/users/denolf/.local/wdnbashutils/virtualenvs/ewoks/lib/python3.9/site-packages/PyMca5/PyMcaGui/pymca/QHDF5StackWizard.py", line 426, in initializePage
    self._datasetSelection.setFileList(self._fileList.fileList)
  File "/users/denolf/.local/wdnbashutils/virtualenvs/ewoks/lib/python3.9/site-packages/PyMca5/PyMcaGui/pymca/QHDF5StackWizard.py", line 222, in setFileList
    attr = entry[key].attrs.get('NX_class', None)
  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 "/users/denolf/.local/wdnbashutils/virtualenvs/ewoks/lib/python3.9/site-packages/h5py/_hl/group.py", line 357, in __getitem__
    oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
  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/h5o.pyx", line 241, in h5py.h5o.open

CRITICAL:PyMca5.PyMcaGui.io.hdf5.HDF5Widget:Entry /119.1 has no children
CRITICAL:PyMca5.PyMcaGui.io.hdf5.HDF5Widget:Entry /119.1 has no children
ERROR:PyMca5.PyMcaGui.PyMcaQt:<class 'AttributeError'> 'NoneType' object has no attribute '_posixPath'   File "/users/denolf/.local/wdnbashutils/virtualenvs/ewoks/lib/python3.9/site-packages/PyMca5/PyMcaGui/io/hdf5/HDF5Widget.py", line 641, in rowCount
    return len(self.getProxyFromIndex(index))
  File "/users/denolf/.local/wdnbashutils/virtualenvs/ewoks/lib/python3.9/site-packages/PyMca5/PyMcaGui/io/hdf5/HDF5Widget.py", line 433, in __len__
    return len(self.children)
  File "/users/denolf/.local/wdnbashutils/virtualenvs/ewoks/lib/python3.9/site-packages/PyMca5/PyMcaGui/io/hdf5/HDF5Widget.py", line 286, in children
    finalList[i][1]._posixPath = posixpath.join(self.name,

CRITICAL:PyMca5.PyMcaGui.io.hdf5.HDF5Widget:Entry /119.1 has no children

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions