JuliaIO / MAT.jl

Julia module for reading MATLAB files
MIT License
278 stars 76 forks source link

MethodError reading v7.3 file #140

Open adamkapor opened 3 years ago

adamkapor commented 3 years ago

I just did a clean install of Julia 1.5. I get the following error trying to read a v7.3 file:

julia> MCMC2011 = MAT.matread(datapath*"/export_to_julia_2011.mat")["MCMC2011"]
ERROR: MethodError: no method matching h5d_read(::Int64, ::Int64, ::Array{Bool,2}, ::HDF5Properties)
Closest candidates are:
  h5d_read(::Any, ::Any, ::Any, ::Any, ::Any, ::Any) at C:\Users\akapor\.julia\packages\HDF5\QXcoh\src\HDF5.jl:2302
  h5d_read(::Int64, ::Int64, ::AbstractArray) at C:\Users\akapor\.julia\packages\HDF5\QXcoh\src\HDF5.jl:2057
  h5d_read(::Int64, ::Int64, ::AbstractArray, ::Int64) at C:\Users\akapor\.julia\packages\HDF5\QXcoh\src\HDF5.jl:2057
Stacktrace:
 [1] read(::HDF5Dataset, ::Type{Array{Bool,N} where N}) at C:\Users\akapor\.julia\packages\MAT\2LFMT\src\MAT_HDF5.jl:625
 [2] m_read(::HDF5Dataset) at C:\Users\akapor\.julia\packages\MAT\2LFMT\src\MAT_HDF5.jl:182
 [3] m_read(::HDF5Group) at C:\Users\akapor\.julia\packages\MAT\2LFMT\src\MAT_HDF5.jl:242
 [4] read(::MAT.MAT_HDF5.MatlabHDF5File, ::String) at C:\Users\akapor\.julia\packages\MAT\2LFMT\src\MAT_HDF5.jl:261
 [5] read(::MAT.MAT_HDF5.MatlabHDF5File) at C:\Users\akapor\.julia\packages\HDF5\QXcoh\src\datafile.jl:45
 [6] matread(::String) at C:\Users\akapor\.julia\packages\MAT\2LFMT\src\MAT.jl:133
 [7] top-level scope at none:1

Pkg.status says I have the following versions of things:

julia> Pkg.status()
Status `C:\Users\akapor\.julia\environments\v1.5\Project.toml`
  [c52e3926] Atom v0.12.19
  [31c24e10] Distributions v0.23.8
  [f67ccb44] HDF5 v0.13.3
  [e5e0dc1b] Juno v0.8.3
  [23992714] MAT v0.8.0
grero commented 3 years ago

I just hit this error as well.

babaq commented 3 years ago

also have this error on a mat file that had been successfully read.

bjarthur commented 3 years ago

me too!

Peichao commented 3 years ago

me too!