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

Precompiling StochasticPrograms Error: LoadError #35

Closed
russnelson82 opened this issue Sep 15, 2021 · 2 comments
Closed

Precompiling StochasticPrograms Error: LoadError #35

russnelson82 opened this issue Sep 15, 2021 · 2 comments

Comments

@russnelson82
Copy link

I am running Julia 1.6.2 and attempting to run StochasticPrograms.jl v0.6.2. I successfully added the StochasticPrograms package, but when I try to run "using StochasticPrograms" I get the following error:

┌ Info: Precompiling StochasticPrograms [8b8459f2-c380-502b-8633-9aed2d6c2b35]
└ @ Base loading.jl:1278
ERROR: LoadError: LoadError: LoadError: LoadError: LoadError: UndefVarError: coefficient not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at .\Base.jl:26
[2] top-level scope at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\decisions\expressions\affine.jl:97
[3] include(::Function, ::Module, ::String) at .\Base.jl:380
[4] include at .\Base.jl:368 [inlined]
[5] include(::String) at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\StochasticPrograms.jl:2
[6] top-level scope at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\decisions\expressions\expressions.jl:1
[7] include(::Function, ::Module, ::String) at .\Base.jl:380
[8] include at .\Base.jl:368 [inlined]
[9] include(::String) at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\StochasticPrograms.jl:2
[10] top-level scope at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\decisions\decisions.jl:313
[11] include(::Function, ::Module, ::String) at .\Base.jl:380
[12] include at .\Base.jl:368 [inlined]
[13] include(::String) at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\StochasticPrograms.jl:2
[14] top-level scope at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\types.jl:8
[15] include(::Function, ::Module, ::String) at .\Base.jl:380
[16] include at .\Base.jl:368 [inlined]
[17] include(::String) at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\StochasticPrograms.jl:2
[18] top-level scope at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\StochasticPrograms.jl:236
[19] include(::Function, ::Module, ::String) at .\Base.jl:380
[20] include(::Module, ::String) at .\Base.jl:368
[21] top-level scope at none:2
[22] eval at .\boot.jl:347 [inlined]
[23] eval(::Expr) at .\client.jl:467
[24] top-level scope at .\none:3
in expression starting at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\decisions\expressions\affine.jl:97
in expression starting at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\decisions\expressions\expressions.jl:1
in expression starting at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\decisions\decisions.jl:313
in expression starting at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\types\types.jl:8
in expression starting at C:\Users\russn.julia\packages\StochasticPrograms\Jl6sf\src\StochasticPrograms.jl:236

I am fairly new to Julia, but haven't encountered this problem with JuMP or Gurobi. I appreciate any insights.

@martinbiel
Copy link
Owner

You need JuMP on at least version v0.21.7. I will need to update my compat requirements.

@russnelson82
Copy link
Author

I fixed the issue by uninstalling Julia, deleting all Julia files (the .julia folder) and reinstalling the latest version of Julia.

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