JuliaPOMDP / SARSOP.jl

Julia package that wraps the SARSOP software for solving POMDPs/MDPs
Other
14 stars 7 forks source link

Error while using SARSOP, windows 64 bit #21

Closed Srishti8 closed 6 years ago

Srishti8 commented 6 years ago

I'm facing an error when I am initializing SARSOP Solver,

SARSOP Generating a pomdpx file: model.pomdpx could not spawn 'C:\Users\Srishti-PC\.julia\v0.6\SARSOP\deps\appl\src\pomdpsol' model.pomdpx --output out.policy: no such file or directory (ENOENT)

Stacktrace: [1] _jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::RawFD, ::RawFD, ::RawFD) at .\process.jl:360 [2] #376 at .\process.jl:512 [inlined] [3] setup_stdio(::Base.##376#377{Cmd}, ::Tuple{RawFD,RawFD,RawFD}) at .\process.jl:499 [4] #spawn#375(::Nullable{Base.ProcessChain}, ::Function, ::Cmd, ::Tuple{RawFD,RawFD,RawFD}) at .\process.jl:511 [5] run(::Cmd) at .\process.jl:650 [6] #solve#5(::Bool, ::String, ::Function, ::SARSOP.SARSOPSolver, ::GridPOMDP, ::SARSOP.POMDPPolicy) at C:\Users\Srishti-PC.julia\v0.6\SARSOP\src\solver.jl:99 [7] solve(::SARSOP.SARSOPSolver, ::GridPOMDP) at C:\Users\Srishti-PC.julia\v0.6\SARSOP\src\solver.jl:94 [8] include_string(::String, ::String) at .\loading.jl:522

I am using the latest SARSOP.jl with updated build.jl file with the windows fix but it still does not fix the problem for me. What steps can I do to remove the error? Also, I know that unzip is not a inbuilt command for windows to unzip the files in Windows. Is that what is causing the error? To remove that I did try to use http://stahlworks.com/dev/index.php?tool=zipunzip#unzipexamp and put it in the same folder as build.jl but that didn't seem to work for me either.

mykelk commented 6 years ago

Does the file C:\Users\Srishti-PC\.julia\v0.6\SARSOP\deps\appl\src\pomdpsol.exe exist?

Srishti8 commented 6 years ago

No, appl is not even getting created. In the deps folder I just have build.jl, .gitignore and appl-0.96win zip file in deps folder. Also, if I manually unzip the appl-0.96win folder, I don't see the pomdpsol.exe over there.

zsunberg commented 6 years ago

I have never installed on Windows, but it looks like there are two download and unzip steps

here: https://github.com/JuliaPOMDP/SARSOP.jl/blob/4410c1f281853c0d8c3b31d5f8df6c1cdcdac9db/deps/build.jl#L17 and here: https://github.com/JuliaPOMDP/SARSOP.jl/blob/4410c1f281853c0d8c3b31d5f8df6c1cdcdac9db/deps/build.jl#L20

If you do all the steps in the build file manually, it might work. Or, if you do get unzip installed and in your windows PATH so you can use it from the command line, you can just run julia> Pkg.build("SARSOP") to rebuild it.

Hope that helps!

On Mon, Apr 9, 2018 at 10:41 PM Srishti Jhanwar notifications@github.com wrote:

No, appl is not even getting created. In the deps folder I just have build.jl, .gitignore and appl-0.96win zip file in deps folder. Also, if I manually unzip the appl-0.96win folder, I don't see the pomdpsol.exe over there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JuliaPOMDP/SARSOP.jl/issues/21#issuecomment-379980428, or mute the thread https://github.com/notifications/unsubscribe-auth/AEC0a6YvKVXWYpJqOfCxUEmWhdUvR-c0ks5tnEX-gaJpZM4TNmQP .