-
Notifications
You must be signed in to change notification settings - Fork 29
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
cannot import #156
Comments
Test Summary: | Pass Total |
Same issue in julia 1.5.0, Win 10. |
Thanks, it might be related to a recent update in yaml.jl . Can you check
which version of this library is on your computer ?
…On Mon, Aug 24, 2020, 9:05 PM rotheboat ***@***.***> wrote:
Same issue in julia 1.5.0, Win 10.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#156 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACDSKPHFYJYRKGRNHDM42DSCK2XRANCNFSM4QCSXBMA>
.
|
Thanks, it's version 0.4.1 |
the same 0.4.1 |
@rotheboat and @121180875 : I updated both Dolang library and Dolo. Tests pass on all platforms. Can you test ? (dependencies have changed a bit, it might require an update) |
Thank you @albop -- I have now run e.g. "example_options.jl", "test_algos.jl", successfully. If there are other tests I should run let me know. |
julia> model = yaml_import("C:\Users\qiuchongrong\.juliapro\JuliaPro_v1.3.1-2\packages\Dolo\BE0s2\examples\models\rbc.yaml")
ERROR: MethodError: no method matching YAML.Constructor(::Dict{AbstractString,Function})
Closest candidates are:
YAML.Constructor() at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\constructor.jl:37
YAML.Constructor(::Dict{String,Function}) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\constructor.jl:32
YAML.Constructor(::Nothing) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\constructor.jl:38
Stacktrace:
[1] load(::YAML.TokenStream, ::Dict{AbstractString,Function}) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\YAML.jl:24
[2] load(::IOStream, ::Dict{AbstractString,Function}) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\YAML.jl:28
[3] (::YAML.var"#5#6"{Dict{AbstractString,Function}})(::IOStream) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\YAML.jl:80
[4] #open#271(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(open), ::YAML.var"#5#6"{Dict{AbstractString,Function}}, ::String, ::Vararg{String,N} where N) at .\io.jl:298
[5] open(::Function, ::String, ::String) at .\io.jl:296
[6] load_file(::String, ::Dict{AbstractString,Function}) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\YAML\Xr1ID\src\YAML.jl:79
[7] #Model#171(::Bool, ::Type{Dolo.Model}, ::String) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\Dolo\BE0s2\src\model.jl:304
[8] (::Core.var"#kw#Type")(::NamedTuple{(:print_code,),Tuple{Bool}}, ::Type{Dolo.Model}, ::String) at .\none:0
[9] #yaml_import#173(::Bool, ::typeof(yaml_import), ::String) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\Dolo\BE0s2\src\model.jl:342
[10] yaml_import(::String) at C:\Users\qiuchongrong.juliapro\JuliaPro_v1.3.1-2\packages\Dolo\BE0s2\src\model.jl:342
[11] top-level scope at REPL[84]:1
The text was updated successfully, but these errors were encountered: