Good. Thanks for reporting back what fixed the issue featured in the title of this thread.
Technically, the rest of your most recent post isn’t related to the topic of this thread, however…
What do you see in Jupyter if you run import h5py
and then run dir(h5py)
?
I see this:
['AttributeManager',
'Dataset',
'Datatype',
'Empty',
'ExternalLink',
'File',
'Group',
'HLObject',
'HardLink',
'MultiBlockSlice',
'Reference',
'RegionReference',
'SoftLink',
'UNLIMITED',
'VirtualLayout',
'VirtualSource',
'__builtins__',
'__cached__',
'__doc__',
'__file__',
'__loader__',
'__name__',
'__package__',
'__path__',
'__spec__',
'__version__',
'_conv',
'_errors',
'_hl',
'_objects',
'_proxy',
'_register_converters',
'_register_lzf',
'_selector',
'_unregister_converters',
'_warn',
'atexit',
'check_dtype',
'check_enum_dtype',
'check_opaque_dtype',
'check_ref_dtype',
'check_string_dtype',
'check_vlen_dtype',
'defs',
'enable_ipython_completer',
'enum_dtype',
'filters',
'get_config',
'h5',
'h5a',
'h5ac',
'h5d',
'h5ds',
'h5f',
'h5fd',
'h5g',
'h5i',
'h5l',
'h5o',
'h5p',
'h5pl',
'h5py_warnings',
'h5r',
'h5s',
'h5t',
'h5z',
'is_hdf5',
'opaque_dtype',
'ref_dtype',
'regionref_dtype',
'register_driver',
'registered_drivers',
'run_tests',
'special_dtype',
'string_dtype',
'unregister_driver',
'utils',
'version',
'vlen_dtype']
If you do not see anything like that, is it possible you have another file named h5py
along your path and it is interfering with accessing the proper one, which you suggest as the possible cause yourself. However you don’t seem to provide any troubleshooting along those lines. What do you get if you put h5py??
on a cell and run it. And then compare what it says for File
there to output for import inspect; inspect.getfile(h5py)
where you run print(h5py.__version__)
and it works.