# Error when installing PowerModels

**URL:** <https://discourse.julialang.org/t/error-when-installing-powermodels/39320>\
**Category:** New to Julia\
**Tags:** package, installation\
**Created:** [May 12, 2020, 2:33am UTC](https://discourse.julialang.org/t/error-when-installing-powermodels/39320 "2020-05-12T02:33:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![waeltaha10](https://avatars.discourse-cdn.com/v4/letter/w/6a8cbe/32.png) [@waeltaha10](https://discourse.julialang.org/u/waeltaha10)\
**Post date:** [May 12, 2020, 2:33am UTC](https://discourse.julialang.org/t/error-when-installing-powermodels/39320/1 "2020-05-12T02:33:17Z")

</div>

I have just installed Juno and I have a problem with installing the package PowerModels. I’m using windows 10 home 64-bit.  
The problem is displayed in the next lines  
(@v1.4) pkg\> test PowerModels  
Testing PowerModels  
Status `C:\Users\waelt\AppData\Local\Temp\jl_PkYjXc\Manifest.toml`  
[4fba245c] ArrayInterface v2.8.7  
[6e4b80f9] BenchmarkTools v0.5.0  
[b99e7846] BinaryProvider v0.5.9  
[6e34b625] Bzip2\_jll v1.0.6+2  
[fa961155] CEnum v0.3.0  
[49dc2e85] Calculus v0.5.1  
[9961bab8] Cbc v0.7.0  
[38041ee0] Cbc\_jll v2.10.3+3  
[3830e938] Cgl\_jll v0.60.2+4  
[06985876] Clp\_jll v1.17.6+4  
[523fee87] CodecBzip2 v0.7.1  
[944b1d66] CodecZlib v0.7.0  
[be027038] CoinUtils\_jll v2.11.3+2  
[bbf7d656] CommonSubexpressions v0.2.0  
[e66e0078] CompilerSupportLibraries\_jll v0.3.3+0  
[864edb3b] DataStructures v0.17.15  
[163ba53b] DiffResults v1.0.2  
[b552c78f] DiffRules v1.0.1  
[b4f34e82] Distances v0.8.2  
[e2ba6199] ExprTools v0.1.1  
[8f5d6c58] EzXML v1.1.0  
[6a86dc24] FiniteDiff v2.3.1  
[f6369f11] ForwardDiff v0.10.10  
[cd3eb016] HTTP v0.8.14  
[2030c09a] InfrastructureModels v0.5.0  
[83e8ac13] IniFile v0.5.0  
[b6b21f68] Ipopt v0.6.1  
[682c06a0] JSON v0.21.0  
[7d188eb4] JSONSchema v0.2.0  
[4076af6c] JuMP v0.21.2  
[2ddba703] Juniper v0.6.3  
[94ce4f54] Libiconv\_jll v1.16.0+2  
[d3d80556] LineSearches v7.0.1  
[b8f27783] MathOptInterface v0.9.13  
[fdba3010] MathProgBase v0.7.8  
[739be429] MbedTLS v1.0.2  
[c8ffd9c3] MbedTLS\_jll v2.16.0+2  
[f28f55f0] Memento v1.1.0  
[78c3b35d] Mocking v0.7.1  
[d8a4904e] MutableArithmetics v0.2.9  
[d41bc354] NLSolversBase v7.6.1  
[2774e3e8] NLsolve v4.3.0  
[77ba4419] NaNMath v0.3.3  
[656ef2d0] OpenBLAS32\_jll v0.3.9+4  
[efe28fd5] OpenSpecFun\_jll v0.5.3+3  
[bac558e1] OrderedCollections v1.2.0  
[7da25872] Osi\_jll v0.108.5+2  
[d96e819e] Parameters v0.12.1  
[69de0a69] Parsers v1.0.3  
[c36e90e8] PowerModels v0.17.0 #master ([GitHub - lanl-ansi/PowerModels.jl: A Julia/JuMP Package for Power Network Optimization](https://github.com/lanl-ansi/PowerModels.jl.git))  
[3cdcf5f2] RecipesBase v1.0.1  
[189a3867] Reexport v0.2.0  
[ae029012] Requires v1.0.1  
[c946c3f1] SCS v0.6.6  
[276daf66] SpecialFunctions v0.10.0  
[90137ffa] StaticArrays v0.12.3  
[cea106d9] Syslogs v0.3.0  
[f269a46b] TimeZones v1.1.1  
[3bb67fe8] TranscodingStreams v0.9.5  
[3a884ed6] UnPack v1.0.0  
[02c8fc9c] XML2\_jll v2.9.9+4  
[83775a58] Zlib\_jll v1.2.11+9  
[2a0f44e3] Base64  
[ade2ca70] Dates  
[8ba89e20] Distributed  
[b77e0a4c] InteractiveUtils  
[76f85450] LibGit2  
[8f399da3] Libdl  
[37e2e46d] LinearAlgebra  
[56ddb016] Logging  
[d6f4376e] Markdown  
[a63ad114] Mmap  
[44cfe95a] Pkg  
[de0858da] Printf  
[3fa0cd96] REPL  
[9a3f8284] Random  
[ea8e919c] SHA  
[9e88b42a] Serialization  
[6462fe0b] Sockets  
[2f01184e] SparseArrays  
[10745b16] Statistics  
[8dfed614] Test  
[cf7118a7] UUIDs  
[4ec0a83e] Unicode  
ERROR: LoadError: InitError: IOError: could not spawn `powershell -Command '[TimeZoneInfo]::Local.Id'`: no such file or directory (ENOENT)Stacktrace:  
[1] \_spawn\_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99  
[2] #550 at .\process.jl:112 [inlined]  
[3] setup\_stdios(::Base.var"#550#551"{Cmd}, ::Array{Any,1}) at .\process.jl:196  
[4] \_spawn at .\process.jl:111 [inlined]  
[5] open(::Cmd, ::Base.DevNull; write::Bool, read::Bool) at .\process.jl:370  
[6] open at .\process.jl:361 [inlined]  
[7] open(::Cmd, ::String, ::Base.DevNull) at .\process.jl:341  
[8] read(::Cmd) at .\process.jl:410  
[9] read(::Cmd, ::Type{String}) at .\process.jl:421  
[10] macro expansion at C:\Users\waelt.julia\packages\Mocking\U41JO\src\mock.jl:29 [inlined]  
[11] localzone() at C:\Users\waelt.julia\packages\TimeZones\X323b\src\local.jl:140  
[12] DefaultFormatter at C:\Users\waelt.julia\packages\Memento\oMnS1\src\formatters.jl:35 [inlined]  
[13] config!(::Memento.Logger, ::String; fmt::String, levels::Dict{AbstractString,Int64}, colorized::Bool, recursive::Bool, substitute::Bool, propagate::Bool) at C:\Users\waelt.julia\packages\Memento\oMnS1\src\config.jl:39  
[14] config! at C:\Users\waelt.julia\packages\Memento\oMnS1\src\config.jl:36 [inlined]  
[15] #config!#72 at C:\Users\waelt.julia\packages\Memento\oMnS1\src\config.jl:28 [inlined]  
[16] config! at C:\Users\waelt.julia\packages\Memento\oMnS1\src\config.jl:28 [inlined]  
[17] #config!#71 at C:\Users\waelt.julia\packages\Memento\oMnS1\src\config.jl:25 [inlined]  
[18] config! at C:\Users\waelt.julia\packages\Memento\oMnS1\src\config.jl:25 [inlined]  
[19] **init** () at C:\Users\waelt.julia\packages\Memento\oMnS1\src\Memento.jl:64  
[20] \_include\_from\_serialized(::String, ::Array{Any,1}) at .\loading.jl:697  
[21] \_require\_from\_serialized(::String) at .\loading.jl:748  
[22] \_require(::Base.PkgId) at .\loading.jl:1039  
[23] require(::Base.PkgId) at .\loading.jl:927  
[24] require(::Module, ::Symbol) at .\loading.jl:922  
[25] include(::Module, ::String) at .\Base.jl:377  
[26] top-level scope at none:2  
[27] eval at .\boot.jl:331 [inlined]  
[28] eval(::Expr) at .\client.jl:449  
[29] top-level scope at .\none:3  
during initialization of module Memento  
in expression starting at C:\Users\waelt.julia\packages\PowerModels\6sHal\src\PowerModels.jl:6  
ERROR: LoadError: Failed to precompile PowerModels [c36e90e8-916a-50a6-bd94-075b64ef4655] to C:\Users\waelt.julia\compiled\v1.4\PowerModels\CdeMI\_g8q5k.ji.  
Stacktrace:  
[1] error(::String) at .\error.jl:33  
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272  
[3] \_require(::Base.PkgId) at .\loading.jl:1029  
[4] require(::Base.PkgId) at .\loading.jl:927  
[5] require(::Module, ::Symbol) at .\loading.jl:922  
[6] include(::String) at .\client.jl:439  
[7] top-level scope at none:6  
in expression starting at C:\Users\waelt.julia\packages\PowerModels\6sHal\test\runtests.jl:1  
ERROR: Package PowerModels errored during testing

---

<div class="post-metadata">

**Author:** ![ccoffrin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ccoffrin/32/400_2.png) [@ccoffrin](https://discourse.julialang.org/u/ccoffrin)\
**Post date:** [May 12, 2020, 3:06pm UTC](https://discourse.julialang.org/t/error-when-installing-powermodels/39320/2 "2020-05-12T15:06:52Z")

</div>

This was resolved in this thread, [Problem with installation · Issue #711 · lanl-ansi/PowerModels.jl · GitHub](https://github.com/lanl-ansi/PowerModels.jl/issues/711)

The root cause seemed to be a windows configuration issue.
