Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run_default.jl #182

Open
freizue opened this issue Jul 27, 2022 · 1 comment
Open

run_default.jl #182

freizue opened this issue Jul 27, 2022 · 1 comment

Comments

@freizue
Copy link

freizue commented Jul 27, 2022

Hi everybody,

when I try to run the forecasting part of run_default.jl, I always get the following error:

forecast_one(m, :mode, :none, output_vars; check_empty_columns = false) | Error: type DataType has no field mutable

I use Visual Studio Code on Windows and somehow my colleague running the same code on Linux can't reproduce the error.
Since I'm quite new to Julia and DSGE, I've only checked that the JLD2 package is up to date.
Perhaps someone could help me with the issue? Thank you in advance!

The exact error description with stacktrace is:

Argument 5 of 4 in call to forecast_one

ERROR: type DataType has no field mutable
Stacktrace:

getproperty at .\Base.jl

hasfielddata(T::Any) at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\data.jl

#s61#23 at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\data.jl

var"#s61#23"(T::Any, ::Any, #unused#::Any, initialized::Any) at .\none

(::Core.GeneratedFunctionStub)(::Any, ::Vararg{Any}) at .\boot.jl

odr at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\data.jl

objodr at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\data.jl

write_dataset at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\datasets.jl

write(g::JLD2.Group{JLD2.JLDFile{IOStream}}, name::String, obj::Dict{Date, Int64}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}}) at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\groups.jl

write(f::JLD2.JLDFile{IOStream}, name::String, obj::Dict{Date, Int64}, wsession::JLD2.JLDWriteSession{Dict{UInt64, JLD2.RelOffset}}) at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\JLD2.jl (repeats 2 times)

write_forecast_metadata(m::Model1002{Float64}, file::JLD2.JLDFile{IOStream}, var::Symbol) at C:\Users\Chiara.julia\packages\DSGE\tJSkz\src\forecast\io.jl

(::DSGE.var"#1639#1642"{Model1002{Float64}, Symbol})(file::JLD2.JLDFile{IOStream}) at C:\Users\Chiara.julia\packages\DSGE\tJSkz\src\forecast\io.jl

jldopen(::DSGE.var"#1639#1642"{Model1002{Float64}, Symbol}, ::String, ::Vararg{Any}; kws::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}) at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\loadsave.jl

jldopen at C:\Users\Chiara.julia\packages\JLD2\4AJn8\src\loadsave.jl

@naivej
Copy link

naivej commented May 25, 2023

the old JLD2 used in DSGE package is not compatible with julia 1.7 and above.
using julia 1.6.7 (the current long term support version) should fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants