Error in "using MAT"

I have trouble using MAT in Julia 1.0.0

[ Info:* Precompiling MAT [23992714-dd62-5051-b70f-ba57cb901cac]

ERROR: LoadError: LoadError: syntax: extra token “MatlabHDF5File” after end of expression


[1] include at ./boot.jl:317 [inlined]

[2] include_relative( ::Module, ::String ) at ./loading.jl:1038

[3] include at ./sysimg.jl:29 [inlined]

[4] include( ::String ) at /Users/complexfilter/.julia/packages/MAT/Pn0pR/src/MAT.jl:27

[5] top-level scope at none:0

[6] include at ./boot.jl:317 [inlined]

[7] include_relative( ::Module, ::String ) at ./loading.jl:1038

[8] include( ::Module, ::String ) at ./sysimg.jl:29

[9] top-level scope at none:2

[10] eval at ./boot.jl:319 [inlined]

[11] eval( ::Expr ) at ./client.jl:389

[12] top-level scope at ./none:3

in expression starting at /Users/complexfilter/.julia/packages/MAT/Pn0pR/src/MAT_HDF5.jl:39

in expression starting at /Users/complexfilter/.julia/packages/MAT/Pn0pR/src/MAT.jl:31

ERROR: Failed to precompile MAT [23992714-dd62-5051-b70f-ba57cb901cac] to /Users/complexfilter/.julia/compiled/v1.0/MAT/3FHIv.ji.


[1] error( ::String ) at ./error.jl:33

[2] macro expansion at ./logging.jl:313 [inlined]

[3] compilecache( ::Base.PkgId, ::String ) at ./loading.jl:1184

[4] _require( ::Base.PkgId ) at ./logging.jl:311

[5] require( ::Base.PkgId ) at ./loading.jl:852

[6] macro expansion at ./logging.jl:311 [inlined]

[7] require( ::Module, ::Symbol ) at ./loading.jl:834

Install Julia 0.7 and try again. There you will get nice warnings instead of errors.

More information: PSA: use Julia 0.7 if you are upgrading

I have the same problem. Can’t find any solution. It used to work properly until I upgraded Julia from 0.6 to 1.0.

The issue is that MAT.jl has not been updated to Julia v1.0. There are already many overlapping PRs at Pull requests · JuliaIO/MAT.jl · GitHub but even the master branch looks a bit stalled.


The discourse tags “Usage” and “First steps” are a bit misleading.

Thanks @jaakkor2. I am eagerly waiting for the PRs to get merged in the master branch so I can start using MAT again.