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

KeyError: key "MASTSIF" not found #311

Closed
FengYiLiao opened this issue Jul 31, 2023 · 7 comments
Closed

KeyError: key "MASTSIF" not found #311

FengYiLiao opened this issue Jul 31, 2023 · 7 comments

Comments

@FengYiLiao
Copy link

After installing CUTEst, the command "nlp = CUTEstModel("BYRDSPHR");" shows the error (KeyError: key "MASTSIF" not found).
I am not able to solve this issue.
I was wondering if there is any step I am missing.
Thanks.

@abelsiqueira
Copy link
Member

Hi @FengYiLiao, can you run set_mastsif() and try again and let us know if it works?

@FengYiLiao
Copy link
Author

Thank you for the prompt reply!
The "MASTSIF" issue is solved, but another error pops out (UndefVarError: sifdecoder not defined)

@abelsiqueira
Copy link
Member

Can you share more information about your system, Julia version, and other messages during installation.
Can you try pkg> build CUTEst and try again?
Can you try pkg> remove CUTEst and then pkg> add CUTEst, and then try again?

@FengYiLiao
Copy link
Author

FengYiLiao commented Jul 31, 2023

Thanks.
I tried to build CUTEst or add CUTEst again, but they do not seem to work.

Below is my system:
Edition Windows 10 Education
Version 22H2

Julia version: 1.9.2

Messages during installation:
(@v1.9) pkg> add CUTEst
Resolving package versions...
Updating C:\Users\SOC-LAB\.julia\environments\v1.9\Project.toml
[1b53aba6] + CUTEst v0.13.2
Updating C:\Users\SOC-LAB\.julia\environments\v1.9\Manifest.toml
[1b53aba6] + CUTEst v0.13.2

Below is the error for "sifdecoder":

julia> nlp = CUTEstModel("BYRDSPHR");
ERROR: UndefVarError: sifdecoder not defined
Stacktrace:
[1] getproperty
@ .\Base.jl:31 [inlined]
[2] (::CUTEst.var"#23#26"{Bool, String, String, Tuple{}, String, String, String})()
@ CUTEst C:\Users\SOC-LAB.julia\packages\CUTEst\FWOg3\src\CUTEst.jl:193
[3] cd(f::CUTEst.var"#23#26"{Bool, String, String, Tuple{}, String, String, String}, dir::String)
@ Base.Filesystem .\file.jl:101
[4] sifdecoder(::String; verbose::Bool, outsdif::String, automat::String)
@ CUTEst C:\Users\SOC-LAB.julia\packages\CUTEst\FWOg3\src\CUTEst.jl:177
[5] (::CUTEst.var"#30#31"{Bool, Bool, String, Tuple{}, Vector{Int32}, String, String})()
@ CUTEst C:\Users\SOC-LAB.julia\packages\CUTEst\FWOg3\src\CUTEst.jl:260
[6] cd(f::CUTEst.var"#30#31"{Bool, Bool, String, Tuple{}, Vector{Int32}, String, String}, dir::String)
@ Base.Filesystem .\file.jl:101
[7] CUTEstModel(::String; decode::Bool, verbose::Bool, efirst::Bool, lfirst::Bool, lvfirst::Bool)
@ CUTEst C:\Users\SOC-LAB.julia\packages\CUTEst\FWOg3\src\CUTEst.jl:253
[8] CUTEstModel(::String)
@ CUTEst C:\Users\SOC-LAB.julia\packages\CUTEst\FWOg3\src\CUTEst.jl:230
[9] top-level scope
@ REPL[15]:1

@abelsiqueira
Copy link
Member

On WIndows, you have to use WSL, check https://jso.dev/CUTEst.jl/latest/, section Installing. Can you try that?

@FengYiLiao
Copy link
Author

It is working now.
Thanks!

@abelsiqueira
Copy link
Member

Great! Happy usage.

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