Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
P pyOPALTools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • pyOPALTools
  • Issues
  • #90

Closed
Open
Created Jun 09, 2020 by frey_m@frey_mMaintainer0 of 1 task completed0/1 task

Follow-up from "Resolve "H5Parser method to close files""

The following discussion from !51 (merged) should be addressed:

  • @frey_m started a discussion: (+12 comments)

    @snuverink_j I get an error when H5Parser.close is called. My script only loads a H5 file and calls the print function. I use the h5py version 2.10.0. Have you experienced any error like this?

    Exception ignored in: <bound method H5Dataset.__del__ of <opal.datasets.H5Dataset.H5Dataset object at 0x7f08da008f98>>
    Traceback (most recent call last):
      File "/home/matthias/Documents/projects/pyOPALTools/opal/datasets/H5Dataset.py", line 98, in __del__
      File "/home/matthias/Documents/projects/pyOPALTools/opal/parser/H5Parser.py", line 59, in close
      File "/home/matthias/Documents/projects/pyOPALTools/pyOPALTools.venv/lib/python3.5/site-packages/h5py/_hl/files.py", line 432, in close
      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/h5f.pyx", line 267, in h5py.h5f.get_obj_ids
      File "h5py/h5i.pyx", line 37, in h5py.h5i.wrap_identifier
    SystemError: Parent module 'h5py' not loaded, cannot perform relative import

Possible fix: Replacing the line self.__h5f.close() in H5Parser.close by del self.__h5f.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking