Skip to content
New issue

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

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

Already on GitHub? # to your account

Permission denied error on Windows on opening tmp file #126

Open
KSepetanc opened this issue Feb 12, 2025 · 0 comments
Open

Permission denied error on Windows on opening tmp file #126

KSepetanc opened this issue Feb 12, 2025 · 0 comments

Comments

@KSepetanc
Copy link

I am using NLPModelsIpopt to run ExaModels code (converted from JuMP model).

I am receiving permission denied error on Windows after the model is solved, presumably when results are queried. On Linux code runs correctly.
I am using Julia 1.10.8, Windows 11 fully updated (24h2). My user is PC admin. Running Julia as admin did not help either.

Other backends such as JuMP default, symbolic AD or AmplNLWriter work correctly (using Ipopt or Ipopt_jll for hese cases).

I am attaching the MWE and part of the stack trace.

mwe.zip

ERROR: LoadError: SystemError: opening file "C:\\Users\\karlo\\AppData\\Local\\Temp\\jl_nuN0fQx4H6": Permission denied
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base .\error.jl:176
  [2] systemerror
    @ .\error.jl:175 [inlined]
  [3] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base .\iostream.jl:293
  [4] open
    @ .\iostream.jl:275 [inlined]
  [5] open(f::Base.var"#445#446"{@Kwargs{}}, args::String; kwargs::@Kwargs{})
    @ Base .\io.jl:394
  [6] open
    @ .\io.jl:393 [inlined]
  [7] #readlines#444
    @ .\io.jl:599 [inlined]
  [8] readlines
    @ .\io.jl:598 [inlined]
  [9] solve!(solver::IpoptSolver, nlp::ExaModel{
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant