Opened 5 years ago

Closed 5 years ago

#51122 closed defect (fixed)

py-h5py: upgrade to 2.6.0

Reported by: kurtjaeke@… Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: gorticus (Jason Mitchell), david.e.pi.3.14@…, petrrr
Port: py-h5py

Description

Attached patch upgrades py-h5py to v2.6.0, which works with HDF5 1.10. It also changes the ports' source to github.

For the record, v2.5.0 fails with the following error when using HDF5 v1.10:

$ /opt/local/bin/python2.7  
Python 2.7.11 (default, Mar  3 2016, 11:29:18) 
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import h5py
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/__init__.py", line 31, in <module>
    from .highlevel import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/highlevel.py", line 13, in <module>
    from ._hl.base import is_hdf5, HLObject
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/_hl/base.py", line 78, in <module>
    dlapl = default_lapl()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/h5py/_hl/base.py", line 65, in default_lapl
    lapl = h5p.create(h5p.LINK_ACCESS)
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/opt/local/var/macports/build/_opt_local_var_macports_sources_git.macports.org_python_py-h5py/py27-h5py/work/h5py-2.5.0/h5py/_objects.c:2681)
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/opt/local/var/macports/build/_opt_local_var_macports_sources_git.macports.org_python_py-h5py/py27-h5py/work/h5py-2.5.0/h5py/_objects.c:2639)
  File "h5py/h5p.pyx", line 131, in h5py.h5p.create (/opt/local/var/macports/build/_opt_local_var_macports_sources_git.macports.org_python_py-h5py/py27-h5py/work/h5py-2.5.0/h5py/h5p.c:2720)
  File "h5py/h5p.pyx", line 72, in h5py.h5p.propwrap (/opt/local/var/macports/build/_opt_local_var_macports_sources_git.macports.org_python_py-h5py/py27-h5py/work/h5py-2.5.0/h5py/h5p.c:2527)
ValueError: Not a property list class (Not a property list class)

Attachments (1)

py-h5py.patch (1.1 KB) - added by kurtjaeke@… 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by kurtjaeke@…

Attachment: py-h5py.patch added

comment:1 Changed 5 years ago by dbevans (David B. Evans)

Cc: eborisch@… removed
Owner: changed from macports-tickets@… to eborisch@…
Version: 2.3.4

comment:2 Changed 5 years ago by gorticus (Jason Mitchell)

Cc: jason-macports@… added

Cc Me!

comment:3 Changed 5 years ago by david.e.pi.3.14@…

Cc: david.e.pi.3.14@… added

Cc Me!

comment:4 Changed 5 years ago by gorticus (Jason Mitchell)

@kurtjaeke's patch works for me. Still having some challenges reading MATLAB v7.3 .mat files, but .h5 files are working for me again via h5py.

comment:5 Changed 5 years ago by eborisch (Eric A. Borisch)

Hopefully addressed in r147762.

comment:6 Changed 5 years ago by petrrr

Looks this has been done, so why not close this ticket?

comment:7 Changed 5 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:8 Changed 5 years ago by eborisch (Eric A. Borisch)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.