# JuliaFEM failed to precompile

**URL:** <https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908>\
**Category:** New to Julia\
**Tags:** package, fem\
**Created:** [February 8, 2024, 6:59am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908 "2024-02-08T06:59:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mishal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mishal/32/214462_2.png) [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Post date:** [February 8, 2024, 6:59am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/1 "2024-02-08T06:59:50Z")

</div>

Hi Guys

I am new to Julia, I have tried to install the JuliaFEM package however there seems to be some issues, please refer to the below errors when running the test. I have seen a post about this with the solution requiring one to revert back to an older version of Julia, noting that this was in 2021(I think). Has there been any resolution to the given problem?

I couldn’t paste everything due to the size limitation, however I have pasted a typical error which is being outputted.

ERROR: LoadError: Failed to precompile FEMBasis [353fb843-c566-51e6-ba49-78b3e3d5ebb5] to “C:\Users\mishal.mohanlal\.julia\compiled\v1.9\FEMBasis\jl\_91FA.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::String)  
@ Base .\loading.jl:2049  
[11] top-level scope  
@ stdin:3  
in expression starting at C:\Users\mishal.mohanlal.julia\packages\FEMBase\qGDOl\src\FEMBase.jl:4  
in expression starting at stdin:3  
ERROR: LoadError: Failed to precompile FEMBase [fbcbbc08-f1bf-5204-9233-b69f5d396135] to “C:\Users\mishal.mohanlal\.julia\compiled\v1.9\FEMBase\jl\_8F0C.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\mishal.mohanlal.julia\packages\MortarContact2DAD\Rq4yL\src\MortarContact2DAD.jl:4  
in expression starting at stdin:3

FEMBase [fbcbbc08-f1bf-5204-9233-b69f5d396135]

Failed to precompile FEMBase [fbcbbc08-f1bf-5204-9233-b69f5d396135] to “C:\Users\mishal.mohanlal\.julia\compiled\v1.9\FEMBase\jl\_8367.tmp”.

---

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [February 8, 2024, 8:21am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/2 "2024-02-08T08:21:48Z")

</div>

Hi  
Try some other FEM packages, like Gridap.jl. Here is a more complete list of choices: [GitHub - JuliaPDE/SurveyofPDEPackages: Survey of the packages of the Julia ecosystem for solving partial differential equations](https://github.com/JuliaPDE/SurveyofPDEPackages?tab=readme-ov-file#fem)

---

<div class="post-metadata">

**Author:** ![Mishal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mishal/32/214462_2.png) [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Post date:** [February 8, 2024, 4:38pm UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/3 "2024-02-08T16:38:06Z")

</div>

Thanks, I was specifically looking to use JuliaFEM.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 8, 2024, 5:17pm UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/4 "2024-02-08T17:17:47Z")

</div>

> [@Mishal](#):
>
> Thanks, I was specifically looking to use JuliaFEM.

May I ask why? Do you try to reproduce some old research results?

---

<div class="post-metadata">

**Author:** ![Benny](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Benny](https://discourse.julialang.org/u/Benny)\
**Post date:** [February 8, 2024, 6:57pm UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/5 "2024-02-08T18:57:56Z")

</div>

It appears that precompilation has always been a problem for this package. Apparently many warnings were ignored until a Julia version outright errors, so precompilation was disabled for a dependency, and that also gets in the way of precompilation of packages that load it. I don’t know the lines that well myself, but basically precompilation occurs ahead of time for each package in isolation (“incremental”), so it can’t run any code with effects that can’t persist properly or interferes between packages. It’s fixable, but evidently JuliaFEM hasn’t had the resources for a few years. Ideally you can find a more staffed alternative.

I don’t have any experience working with unprecompilable packages, I’m not even sure if the JuliaFEM package was properly installed. But the docs mention starting the process as `julia compiled-modules=no` to disable precompilation, so maybe installing and importing would work there?

> <https://github.com/JuliaFEM/JuliaFEM.jl/issues/257#issuecomment-696263172>
>
> Hi, I'm new to Julia and I want to apply JuliaFEM module.
> (Julia 1.5.1 with Win…dows 10 Pro)
> During testing JuliaFEM, error messages are written as below.
> Plus, resolve() does not make any change.
> 
> Beside the problem of Calculus breaks, the messages said failed to precompile FEMBase.
> May I have a solution for this issue?
> 
> 
> Testing JuliaFEM
> Status \`C:\\Users\\JIN\\AppData\\Local\\Temp\\jl\_cHqPmI\\Project.toml\`
> \[bc6b9049\] AbaqusReader v0.2.5
> \[7d9fca2a\] Arpack v0.4.0
> \[cb1a753d\] AsterReader v0.2.3
> \[fbcbbc08\] FEMBase v0.3.1
> \[353fb843\] FEMBasis v0.2.0
> \[962f5c4a\] FEMBeam v0.3.1
> \[be8e8821\] FEMQuad v0.3.2
> \[f6369f11\] ForwardDiff v0.10.12
> \[f67ccb44\] HDF5 v0.13.6
> \[4030f512\] HeatTransfer v0.3.1
> \[f80590ac\] JuliaFEM v0.5.1
> \[9c8b4983\] LightXML v0.9.0
> \[048d6160\] MortarContact2D v0.3.1
> \[c1673bdb\] MortarContact2DAD v0.2.0
> \[189a3867\] Reexport v0.2.0
> \[a759f4b9\] TimerOutputs v0.5.6
> \[37e2e46d\] LinearAlgebra
> \[3fa0cd96\] REPL
> \[2f01184e\] SparseArrays
> \[10745b16\] Statistics
> \[8dfed614\] Test
> Status \`C:\\Users\\JIN\\AppData\\Local\\Temp\\jl\_cHqPmI\\Manifest.toml\`
> \[bc6b9049\] AbaqusReader v0.2.5
> \[7d9fca2a\] Arpack v0.4.0
> \[68821587\] Arpack\_jll v3.5.0+3
> \[cb1a753d\] AsterReader v0.2.3
> \[a74b3585\] Blosc v0.7.0
> \[0b7ba130\] Blosc\_jll v1.14.3+1
> \[49dc2e85\] Calculus v0.5.1
> \[bbf7d656\] CommonSubexpressions v0.3.0
> \[e66e0078\] CompilerSupportLibraries\_jll v0.3.3+0
> \[163ba53b\] DiffResults v1.0.2
> \[b552c78f\] DiffRules v1.0.1
> \[fbcbbc08\] FEMBase v0.3.1
> \[353fb843\] FEMBasis v0.2.0
> \[962f5c4a\] FEMBeam v0.3.1
> \[be8e8821\] FEMQuad v0.3.2
> \[f6369f11\] ForwardDiff v0.10.12
> \[f67ccb44\] HDF5 v0.13.6
> \[0234f1f7\] HDF5\_jll v1.10.5+6
> \[4030f512\] HeatTransfer v0.3.1
> \[f80590ac\] JuliaFEM v0.5.1
> \[94ce4f54\] Libiconv\_jll v1.16.0+6
> \[9c8b4983\] LightXML v0.9.0
> \[5ced341a\] Lz4\_jll v1.9.2+2
> \[1914dd2f\] MacroTools v0.5.5
> \[048d6160\] MortarContact2D v0.3.1
> \[c1673bdb\] MortarContact2DAD v0.2.0
> \[77ba4419\] NaNMath v0.3.4
> \[4d1e1d77\] Nullables v1.0.0
> \[4536629a\] OpenBLAS\_jll v0.3.10+0
> \[efe28fd5\] OpenSpecFun\_jll v0.5.3+3
> \[189a3867\] Reexport v0.2.0
> \[276daf66\] SpecialFunctions v0.10.3
> \[90137ffa\] StaticArrays v0.12.4
> \[a759f4b9\] TimerOutputs v0.5.6
> \[02c8fc9c\] XML2\_jll v2.9.10+2
> \[83775a58\] Zlib\_jll v1.2.11+16
> \[3161d3a3\] Zstd\_jll v1.4.5+1
> \[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: LoadError: Evaluation into the closed module \`Calculus\` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating \`Calculus\` with \`eval\` during precompilation - don't do this.
> Stacktrace:
> \[1\] eval at .\\boot.jl:331 \[inlined\]
> \[2\] simplify(::Expr) at C:\\Users\\JIN\\.julia\\packages\\Calculus\\mbqhh\\src\\symbolic.jl:96
> \[3\] calculate\_interpolation\_polynomials(::Expr, ::Array{Float64,2}) at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\create\_basis.jl:25
> \[4\] create\_basis(::Symbol, ::String, ::Tuple{Tuple{Float64},Tuple{Float64}}, ::Expr) at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\create\_basis.jl:48
> \[5\] top-level scope at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\lagrange\_segments.jl:4
> \[6\] include(::Function, ::Module, ::String) at .\\Base.jl:380
> \[7\] include at .\\Base.jl:368 \[inlined\]
> \[8\] include(::String) at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\FEMBasis.jl:4
> \[9\] top-level scope at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\FEMBasis.jl:16
> \[10\] include(::Function, ::Module, ::String) at .\\Base.jl:380
> \[11\] include(::Module, ::String) at .\\Base.jl:368
> \[12\] top-level scope at none:2
> \[13\] eval at .\\boot.jl:331 \[inlined\]
> \[14\] eval(::Expr) at .\\client.jl:467
> \[15\] top-level scope at .\\none:3
> in expression starting at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\lagrange\_segments.jl:4
> in expression starting at C:\\Users\\JIN\\.julia\\packages\\FEMBasis\\hrK6J\\src\\FEMBasis.jl:16
> ERROR: LoadError: Failed to precompile FEMBasis \[353fb843-c566-51e6-ba49-78b3e3d5ebb5\] to C:\\Users\\JIN\\.julia\\compiled\\v1.5\\FEMBasis\\x3cNT\_GdBYD.ji.
> Stacktrace:
> \[1\] error(::String) at .\\error.jl:33
> \[2\] compilecache(::Base.PkgId, ::String) at .\\loading.jl:1305
> \[3\] \_require(::Base.PkgId) at .\\loading.jl:1030
> \[4\] require(::Base.PkgId) at .\\loading.jl:928
> \[5\] require(::Module, ::Symbol) at .\\loading.jl:923
> \[6\] include(::Function, ::Module, ::String) at .\\Base.jl:380
> \[7\] include(::Module, ::String) at .\\Base.jl:368
> \[8\] top-level scope at none:2
> \[9\] eval at .\\boot.jl:331 \[inlined\]
> \[10\] eval(::Expr) at .\\client.jl:467
> \[11\] top-level scope at .\\none:3
> in expression starting at C:\\Users\\JIN\\.julia\\packages\\FEMBase\\qGDOl\\src\\FEMBase.jl:19
> ERROR: LoadError: Failed to precompile FEMBase \[fbcbbc08-f1bf-5204-9233-b69f5d396135\] to C:\\Users\\JIN\\.julia\\compiled\\v1.5\\FEMBase\\6HUoq\_GdBYD.ji.
> Stacktrace:
> \[1\] error(::String) at .\\error.jl:33
> \[2\] compilecache(::Base.PkgId, ::String) at .\\loading.jl:1305
> \[3\] \_require(::Base.PkgId) at .\\loading.jl:1030
> \[4\] require(::Base.PkgId) at .\\loading.jl:928
> \[5\] require(::Module, ::Symbol) at .\\loading.jl:923
> \[6\] include(::Function, ::Module, ::String) at .\\Base.jl:380
> \[7\] include(::Module, ::String) at .\\Base.jl:368
> \[8\] top-level scope at none:2
> \[9\] eval at .\\boot.jl:331 \[inlined\]
> \[10\] eval(::Expr) at .\\client.jl:467
> \[11\] top-level scope at .\\none:3
> in expression starting at C:\\Users\\JIN\\.julia\\packages\\JuliaFEM\\DbhTT\\src\\JuliaFEM.jl:111
> ERROR: LoadError: Failed to precompile JuliaFEM \[f80590ac-b429-510a-8a99-e7c46989f22d\] to C:\\Users\\JIN\\.julia\\compiled\\v1.5\\JuliaFEM\\JKouA\_GdBYD.ji.
> Stacktrace:
> \[1\] error(::String) at .\\error.jl:33
> \[2\] compilecache(::Base.PkgId, ::String) at .\\loading.jl:1305
> \[3\] \_require(::Base.PkgId) at .\\loading.jl:1030
> \[4\] require(::Base.PkgId) at .\\loading.jl:928
> \[5\] require(::Module, ::Symbol) at .\\loading.jl:923
> \[6\] include(::String) at .\\client.jl:457
> \[7\] top-level scope at none:6
> in expression starting at C:\\Users\\JIN\\.julia\\packages\\JuliaFEM\\DbhTT\\test\\runtests.jl:4
> Package JuliaFEM errored during testing
> 
> Stacktrace:
> \[1\] pkgerror(::String) at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\Types.jl:52
> \[2\] test(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; coverage::Bool, julia\_args::Cmd, test\_args::Cmd, test\_fn::Nothing) at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\Operations.jl:1578
> \[3\] test(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}; coverage::Bool, test\_fn::Nothing, julia\_args::Cmd, test\_args::Cmd, kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:328
> \[4\] test(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:315
> \[5\] #test#61 at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:67 \[inlined\]
> \[6\] test at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:67 \[inlined\]
> \[7\] #test#60 at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:66 \[inlined\]
> \[8\] test at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:66 \[inlined\]
> \[9\] test(::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:65
> \[10\] test(::String) at D:\\buildbot\\worker\\package\_win64\\build\\usr\\share\\julia\\stdlib\\v1.5\\Pkg\\src\\API.jl:65
> \[11\] top-level scope at In\[10\]:1
> \[12\] include\_string(::Function, ::Module, ::String, ::String) at .\\loading.jl:1091

> <https://github.com/JuliaFEM/FEMBasis.jl/pull/39>
>
> Precompilation gets disabled to get along with recent Julia in which precompilat…ion is by default.
> This PR will resolve https://github.com/JuliaFEM/JuliaFEM.jl/issues/257
> This is a temporary workaround until someone will write better code to allow precompilation.

> <https://github.com/JuliaFEM/JuliaFEM.jl/issues/261>
>
> I can \`add JuliaFEM\`, but when I am \`using JuliaFEM\` I get the following error.
> …
> 
> Cheers!
> 
> \`\`\`Julia
> \[Info: Precompiling JuliaFEM \[f80590ac-b429-510a-8a99-e7c46989f22d\]
> ERROR: LoadError: LoadError: Evaluation into the closed module \`Calculus\` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating \`Calculus\` with \`eval\` during precompilation - don't do this.
> Stacktrace:
> \[1\] eval at ./boot.jl:331 \[inlined\]
> \[2\] simplify(::Expr) at /users/akgray/.julia/packages/Calculus/mbqhh/src/symbolic.jl:96
> \[3\] calculate\_interpolation\_polynomials(::Expr, ::Array{Float64,2}) at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/create\_basis.jl:25
> \[4\] create\_basis(::Symbol, ::String, ::Tuple{Tuple{Float64},Tuple{Float64}}, ::Expr) at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/create\_basis.jl:48
> \[5\] top-level scope at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/lagrange\_segments.jl:4
> \[6\] include(::Function, ::Module, ::String) at ./Base.jl:380
> \[7\] include at ./Base.jl:368 \[inlined\]
> \[8\] include(::String) at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/FEMBasis.jl:4
> \[9\] top-level scope at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/FEMBasis.jl:16
> \[10\] include(::Function, ::Module, ::String) at ./Base.jl:380
> \[11\] include(::Module, ::String) at ./Base.jl:368
> \[12\] top-level scope at none:2
> \[13\] eval at ./boot.jl:331 \[inlined\]
> \[14\] eval(::Expr) at ./client.jl:467
> \[15\] top-level scope at ./none:3
> in expression starting at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/lagrange\_segments.jl:4
> in expression starting at /users/akgray/.julia/packages/FEMBasis/hrK6J/src/FEMBasis.jl:16
> ERROR: LoadError: Failed to precompile FEMBasis \[353fb843-c566-51e6-ba49-78b3e3d5ebb5\] to /users/akgray/.julia/compiled/v1.5/FEMBasis/x3cNT\_grSpN.ji.
> Stacktrace:
> \[1\] error(::String) at ./error.jl:33
> \[2\] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
> \[3\] \_require(::Base.PkgId) at ./loading.jl:1030
> \[4\] require(::Base.PkgId) at ./loading.jl:928
> \[5\] require(::Module, ::Symbol) at ./loading.jl:923
> \[6\] include(::Function, ::Module, ::String) at ./Base.jl:380
> \[7\] include(::Module, ::String) at ./Base.jl:368
> \[8\] top-level scope at none:2
> \[9\] eval at ./boot.jl:331 \[inlined\]
> \[10\] eval(::Expr) at ./client.jl:467
> \[11\] top-level scope at ./none:3
> in expression starting at /users/akgray/.julia/packages/FEMBase/qGDOl/src/FEMBase.jl:19
> ERROR: LoadError: Failed to precompile FEMBase \[fbcbbc08-f1bf-5204-9233-b69f5d396135\] to /users/akgray/.julia/compiled/v1.5/FEMBase/6HUoq\_grSpN.ji.
> Stacktrace:
> \[1\] error(::String) at ./error.jl:33
> \[2\] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
> \[3\] \_require(::Base.PkgId) at ./loading.jl:1030
> \[4\] require(::Base.PkgId) at ./loading.jl:928
> \[5\] require(::Module, ::Symbol) at ./loading.jl:923
> \[6\] include(::Function, ::Module, ::String) at ./Base.jl:380
> \[7\] include(::Module, ::String) at ./Base.jl:368
> \[8\] top-level scope at none:2
> \[9\] eval at ./boot.jl:331 \[inlined\]
> \[10\] eval(::Expr) at ./client.jl:467
> \[11\] top-level scope at ./none:3
> in expression starting at /users/akgray/.julia/packages/JuliaFEM/DbhTT/src/JuliaFEM.jl:111
> ERROR: Failed to precompile JuliaFEM \[f80590ac-b429-510a-8a99-e7c46989f22d\] to /users/akgray/.julia/compiled/v1.5/JuliaFEM/JKouA\_grSpN.ji.
> Stacktrace:
> \[1\] error(::String) at ./error.jl:33
> \[2\] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
> \[3\] \_require(::Base.PkgId) at ./loading.jl:1030
> \[4\] require(::Base.PkgId) at ./loading.jl:928
> \[5\] require(::Module, ::Symbol) at ./loading.jl:923
> \`\`\`

---

<div class="post-metadata">

**Author:** ![Mishal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mishal/32/214462_2.png) [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Post date:** [February 9, 2024, 10:55am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/6 "2024-02-09T10:55:28Z")

</div>

I was looking into using the package to perform automated structural analysis on repetitive components.

---

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [February 9, 2024, 12:50pm UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/7 "2024-02-09T12:50:51Z")

</div>

I believe [Gridap.jl](https://juliahub.com/ui/Packages/Gridap) is the answer for your task. We haven’t developed JuliaFEM.jl package in years. I lost all the doers meanwhile the other packages like Gridap revolutionized FEM ecosystem of Julia.

---

<div class="post-metadata">

**Author:** ![Mishal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mishal/32/214462_2.png) [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Post date:** [February 12, 2024, 9:54am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/8 "2024-02-12T09:54:03Z")

</div>

Gridap looks amazing!!!

I am having an installation issue though. please refer to the below error.

julia\> Pkg.add(“Gridap”)  
Resolving package versions…  
ERROR: Unsatisfiable requirements detected for package Gridap [56d4f2e9]:  
Gridap [56d4f2e9] log:  
├─possible versions are: 0.1.0-0.17.23 or uninstalled  
├─restricted to versions \* by an explicit requirement, leaving only versions: 0.1.0-0.17.23  
├─restricted by compatibility requirements with StaticArrays [90137ffa] to versions: 0.7.0-0.17.23 or uninstalled, leaving only versions: 0.7.0-0.17.23  
│ └─StaticArrays [90137ffa] log:  
│ ├─possible versions are: 0.8.0-1.9.2 or uninstalled  
│ ├─restricted by compatibility requirements with GXBeam [974624c9] to versions: 0.12.0-1.9.2  
│ │ └─GXBeam [974624c9] log:  
│ │ ├─possible versions are: 0.1.0-0.5.1 or uninstalled  
│ │ └─restricted to versions \* by an explicit requirement, leaving only versions: 0.1.0-0.5.1  
│ └─restricted by compatibility requirements with Gridap [56d4f2e9] to versions: [0.10.0-0.10.3, 0.12.1-1.9.2], leaving only versions: 0.12.1-1.9.2  
│ └─Gridap [56d4f2e9] log: see above  
└─restricted by compatibility requirements with JLD2 [033835bb] to versions: 0.1.0-0.6.0 or uninstalled — no versions left  
└─JLD2 [033835bb] log:  
├─possible versions are: 0.1.0-0.4.45 or uninstalled  
├─restricted by compatibility requirements with Reexport [189a3867] to versions: 0.1.0-0.4.3 or uninstalled  
│ └─Reexport [189a3867] log:  
│ ├─possible versions are: 0.2.0-1.2.2 or uninstalled  
│ ├─restricted to versions \* by an explicit requirement, leaving only versions: 0.2.0-1.2.2  
│ └─restricted by compatibility requirements with JuliaFEM [f80590ac] to versions: 0.2.0  
│ └─JuliaFEM [f80590ac] log:  
│ ├─possible versions are: 0.5.0-0.5.1 or uninstalled  
│ └─restricted to versions \* by an explicit requirement, leaving only versions: 0.5.0-0.5.1  
└─restricted by julia compatibility requirements to versions: 0.4.28-0.4.45 or uninstalled, leaving only versions: uninstalled

---

<div class="post-metadata">

**Author:** ![Tero\_Frondelius](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tero_frondelius/32/7629_2.png) [@Tero\_Frondelius](https://discourse.julialang.org/u/Tero_Frondelius)\
**Post date:** [February 12, 2024, 10:40am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/9 "2024-02-12T10:40:56Z")

</div>

Hi  
Try with a clean environment: [4. Working with Environment · Pkg.jl](https://pkgdocs.julialang.org/v1/environments/)

```julia
julia> cd("C:/Temp")
(@v1.10) pkg> activate CleanEnvironment
(CleanEnvironment) pkg> add Gridap

```

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [February 12, 2024, 10:58am UTC](https://discourse.julialang.org/t/juliafem-failed-to-precompile/109908/10 "2024-02-12T10:58:57Z")

</div>

Similar suggestion as the last poster, but slightly different:

```julia
mkdir myproject
cd myproject
julia --project="."
]
add Gridap

```

Always create a local environment per project.

After the project is created, launch Julia like this:

```julia
cd myproject
julia --project

```
