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

[Failed to precompile DOLPHYN] No such file or directory related to Gurobi #187

Closed
1 task done
gabrielemt opened this issue Oct 17, 2023 · 1 comment
Closed
1 task done
Labels
bug Something isn't working

Comments

@gabrielemt
Copy link

gabrielemt commented Oct 17, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am new to using DOLPHYN, but I am facing problem when instantiating and running the DOLPHYN. The error message is something like this:

✗ Gurobi
✗ DOLPHYN
0 dependencies successfully precompiled in 18 seconds. 308 already precompiled.

ERROR: The following 2 direct dependencies failed to precompile:

DOLPHYN [2a466132-4b02-429f-9994-5df6ddd3977f]

Failed to precompile DOLPHYN [2a466132-4b02-429f-9994-5df6ddd3977f] to "C:\Users\Gabriel\.julia\compiled\v1.9\DOLPHYN\jl_E75E.tmp".
ERROR: LoadError: SystemError: opening file "C:\Users\Gabriel\.julia\packages\Gurobi\vStLK\deps\deps.jl": No such file or directory
Stacktrace:
[1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base .\error.jl:176
[2] #systemerror#82
@ .\error.jl:175 [inlined]
[3] systemerror
@ .\error.jl:175 [inlined]
[4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
@ Base .\iostream.jl:293
[5] open
@ .\iostream.jl:275 [inlined]
[6] open(f::Base.var"#418#419"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\io.jl:393
[7] open
@ .\io.jl:392 [inlined]
[8] read
@ .\io.jl:473 [inlined]
[9] _include(mapexpr::Function, mod::Module, _path::String)
@ Base .\loading.jl:1959
[10] include(mod::Module, _path::String)
@ Base .\Base.jl:457
[11] include(x::String)
@ Gurobi C:\Users\Gabriel.julia\packages\Gurobi\vStLK\src\Gurobi.jl:7
[12] top-level scope
@ C:\Users\Gabriel.julia\packages\Gurobi\vStLK\src\Gurobi.jl:14
[13] include
@ .\Base.jl:457 [inlined]
[14] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
@ Base .\loading.jl:2049
[15] top-level scope
@ stdin:3
in expression starting at C:\Users\Gabriel.julia\packages\Gurobi\vStLK\src\Gurobi.jl:7
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile Gurobi [2e9cd046-0924-5485-92f1-d5272153d98b] to "C:\Users\Gabriel\.julia\compiled\v1.9\Gurobi\jl_51A.tmp".
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base .\loading.jl:2300
[3] compilecache
@ .\loading.jl:2167 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1660
[6] macro expansion
@ .\loading.jl:1648 [inlined]
[7] macro expansion
@ .\lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1611
[9] include
@ .\Base.jl:457 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base .\loading.jl:2049
[11] top-level scope
@ stdin:3
in expression starting at C:\Users\Gabriel\DOLPHYN\src\DOLPHYN.jl:17
in expression starting at stdin:3

Gurobi [2e9cd046-0924-5485-92f1-d5272153d98b]

Failed to precompile Gurobi [2e9cd046-0924-5485-92f1-d5272153d98b] to "C:\Users\Gabriel\.julia\compiled\v1.9\Gurobi\jl_DB64.tmp".
ERROR: LoadError: SystemError: opening file "C:\Users\Gabriel\.julia\packages\Gurobi\vStLK\deps\deps.jl": No such file or directory
Stacktrace:
[1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
@ Base .\error.jl:176
[2] #systemerror#82
@ .\error.jl:175 [inlined]
[3] systemerror
@ .\error.jl:175 [inlined]
[4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
@ Base .\iostream.jl:293
[5] open
@ .\iostream.jl:275 [inlined]
[6] open(f::Base.var"#418#419"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\io.jl:393
[7] open
@ .\io.jl:392 [inlined]
[8] read
@ .\io.jl:473 [inlined]
[9] _include(mapexpr::Function, mod::Module, _path::String)
@ Base .\loading.jl:1959
[10] include(mod::Module, _path::String)
@ Base .\Base.jl:457
[11] include(x::String)
@ Gurobi C:\Users\Gabriel.julia\packages\Gurobi\vStLK\src\Gurobi.jl:7
[12] top-level scope
@ C:\Users\Gabriel.julia\packages\Gurobi\vStLK\src\Gurobi.jl:14
[13] include
@ .\Base.jl:457 [inlined]
[14] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base .\loading.jl:2049
[15] top-level scope
@ stdin:3
in expression starting at C:\Users\Gabriel.julia\packages\Gurobi\vStLK\src\Gurobi.jl:7
in expression starting at stdin:3

Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\Gabriel\AppData\Local\Programs\Julia-1.9.3\share\julia\stdlib\v1.9\Pkg\src\Types.jl:69
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\Gabriel\AppData\Local\Programs\Julia-1.9.3\share\julia\stdlib\v1.9\Pkg\src\API.jl:1581
[3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\Gabriel\AppData\Local\Programs\Julia-1.9.3\share\julia\stdlib\v1.9\Pkg\src\API.jl:156
[4] precompile(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\Gabriel\AppData\Local\Programs\Julia-1.9.3\share\julia\stdlib\v1.9\Pkg\src\API.jl:145
[5] precompile(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\Gabriel\AppData\Local\Programs\Julia-1.9.3\share\julia\stdlib\v1.9\Pkg\src\API.jl:171
[6] precompile()
@ Pkg.API C:\Users\Gabriel\AppData\Local\Programs\Julia-1.9.3\share\julia\stdlib\v1.9\Pkg\src\API.jl:162
[7] top-level scope
@ REPL[12]:1

I believe this happened because I have not installed the Gurobi properly. However, I don't have a Gurobi license and don't have a plan to use Gurobi as my solver. Is there a way to make Gurobi not a dependent package with the DOLPHYN?

Expected Behavior

DOLPHYN could run without Gurobi as a dependent package.

Steps To Reproduce

No response

Environment

- OS: Windows 11
- Julia version: 1.9.3
- Solver:
- Solver version:

Manifest.toml file

No response

Anything else?

No response

@gabrielemt gabrielemt added the bug Something isn't working label Oct 17, 2023
@RuaridhMacd
Copy link
Collaborator

Hi @gabrielemt Sorry for the delay, many of us were traveling for a conference. Did you resolve the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants