JuliaIO / MAT.jl

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

Failed to precompile MAT in Julia 1.0.2 #103

Closed outyang closed 5 years ago

outyang commented 5 years ago

julia> using MAT [ Info: Precompiling MAT [23992714-dd62-5051-b70f-ba57cb901cac] ERROR: LoadError: LoadError: syntax: extra token "MatlabHDF5File" after end of expression Stacktrace: [1] include at .\boot.jl:317 [inlined] [2] include_relative(::Module, ::String) at .\loading.jl:1044 [3] include at .\sysimg.jl:29 [inlined] [4] include(::String) at D:\Pkg\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:1044 [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:393 [12] top-level scope at .\none:3 in expression starting at D:\Pkg\packages\MAT\Pn0pR\src\MAT_HDF5.jl:39 in expression starting at D:\Pkg\packages\MAT\Pn0pR\src\MAT.jl:31 ERROR: Failed to precompile MAT [23992714-dd62-5051-b70f-ba57cb901cac] to D:\Pkg\compiled\v1.0\MAT\3FHIv.ji. Stacktrace: [1] error(::String) at .\error.jl:33 [2] macro expansion at .\logging.jl:311 [inlined] [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1190 [4] macro expansion at .\logging.jl:309 [inlined] [5] _require(::Base.PkgId) at .\loading.jl:947 [6] require(::Base.PkgId) at .\loading.jl:858 [7] macro expansion at .\logging.jl:309 [inlined] [8] require(::Module, ::Symbol) at .\loading.jl:840

arbenede commented 5 years ago

The fix discussed in #90 worked for me under Windows 10

yakir12 commented 5 years ago

Same here (under Manjaro and julia 1.0.3):

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.0.3 (2018-12-18)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

julia> using MAT
[ Info: Precompiling MAT [23992714-dd62-5051-b70f-ba57cb901cac]
ERROR: LoadError: LoadError: syntax: extra token "MatlabHDF5File" after end of expression
Stacktrace:
 [1] include at ./boot.jl:317 [inlined]
 [2] include_relative(::Module, ::String) at ./loading.jl:1044
 [3] include at ./sysimg.jl:29 [inlined]
 [4] include(::String) at /home/yakir/.julia/packages/MAT/Pn0pR/src/MAT.jl:27
 [5] top-level scope at none:0
 [6] top-level scope at none:2
in expression starting at /home/yakir/.julia/packages/MAT/Pn0pR/src/MAT_HDF5.jl:39
in expression starting at /home/yakir/.julia/packages/MAT/Pn0pR/src/MAT.jl:31
ERROR: Failed to precompile MAT [23992714-dd62-5051-b70f-ba57cb901cac] to /home/yakir/.julia/compiled/v1.0/MAT/3FHIv.ji.
yakir12 commented 5 years ago

this fixed it for me!

alexcanepa commented 5 years ago

Now that those fixes have been implemented to master here this should be resolved!

michael-prange commented 5 years ago

Was broken on my MacOS 10.14. Just did the update. Now works. Thanks.