Julia使用JLD:警告:模块HDF5 uuid与缓存文件不匹配

时间:2016-06-16 14:13:37

标签: save julia

当我使用JLD运行时,我收到以下警告:

public ObservableCollection<PeoplePets> Pets {get;} = 
    new ObservableCollection<PeoplePets>();

如果我然后说:

INFO: Recompiling stale cache file C:\Julia\PkgDir\lib\v0.4\JLD.ji for module JLD.
WARNING: Module HDF5 uuid did not match cache file
This is likely because module HDF5 does not support precompilation but is imported by a module that does.
WARNING: deserialization checks failed while attempting to load cache from C:\Julia\PkgDir\lib\v0.4\JLD.ji
INFO: Precompiling module JLD...
INFO: Recompiling stale cache file C:\Julia\PkgDir\lib\v0.4\JLD.ji for module JLD.
WARNING: Module HDF5 uuid did not match cache file
This is likely because module HDF5 does not support precompilation but is imported by a module that does.
__precompile__(true) but require failed to create a precompiled cache file

我收到错误:

A=ones(40)
save("c:\\OneDrive\\Model\\myfile.jld", "A", A)

我使用的是Atom 1.8.0和Julia 0.4.7。我使用JLD,据我所知,它是唯一允许我将变量写入文件并保留其所有属性的pkg。

1 个答案:

答案 0 :(得分:3)

我在某个时刻遇到了与JLD类似的问题并且正在运行Pkg.update()修复它。在运行程序包更新之前更新到最新的稳定Julia版本也会有所帮助。