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

IOError on Windows #385

Closed
MaxenceGollier opened this issue Aug 25, 2024 · 5 comments
Closed

IOError on Windows #385

MaxenceGollier opened this issue Aug 25, 2024 · 5 comments

Comments

@MaxenceGollier
Copy link
Contributor

MaxenceGollier commented Aug 25, 2024

Hello,
From #350, I tried to run CUTEst.jl on Windows 11.
When I did, I got the error message

julia> using CUTEst
julia> nlp = CUTEstModel{Float64}("BYRDSPHR")
ERROR: IOError: could not spawn `mv OUTSDIF.d OUTSDIF_BYRDSPHR_double.d`: no such file or directory (ENOENT)

This is my system information in case it helps

julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd4843 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 12 virtual cores)

Do you have any idea from where this comes from ?
Thank you in all cases !

@amontoison
Copy link
Member

Hi @MaxenceGollier!
Thanks for testing on Windows, did you installed the branch main?

add CUTEst#main

@amontoison
Copy link
Member

amontoison commented Aug 25, 2024

Ok, I found the issue, it's here:
https://github.com/JuliaSmoothOptimizers/CUTEst.jl/blob/main/src/sifdecoder.jl#L93

mv is not available on Windows, it's a Linux / Mac command.
We just need to use the Julia function mv and not rely on a run.
Can you quickly try it?

@MaxenceGollier
Copy link
Contributor Author

Works now ! Thank you, I opened #387

@amontoison
Copy link
Member

amontoison commented Aug 25, 2024

@MaxenceGollier Can you try to run the tests on your laptop?

pkg> test CUTEst

Just to be sure that everything works before the new release 🙂

Thanks for the PR, I will merge it when all tests passed. 👍

@MaxenceGollier
Copy link
Contributor Author

All tests passed on Windows !

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

Successfully merging a pull request may close this issue.

2 participants