# InitError(mod=:micromamba\_jll

**URL:** <https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377>\
**Category:** General Usage\
**Tags:** package-compiler, micromamba\
**Created:** [February 9, 2023, 9:20pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377 "2023-02-09T21:20:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 9, 2023, 9:20pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/1 "2023-02-09T21:20:05Z")

</div>

I fail to run the application [`MyApp.exe`](https://julialang.github.io/PackageCompiler.jl/stable/apps.html) compiled from the [minimal example](https://github.com/JuliaLang/PackageCompiler.jl/tree/master/examples/MyApp) of the package [`PackageCompiler`](https://github.com/JuliaLang/PackageCompiler.jl)  
The error message can be found here:  
[# InitError(mod=:micromamba\_jll …](https://github.com/JuliaLang/PackageCompiler.jl/issues/784)

Any ideas? - Is this a current situation and I just have to patient?

P.S.:  
The purpose of my investigation how to compile a stand alone application is an interactive `GLMakie`-project.  
Does someone know about an example project that can be successfully compiled into an `*.exe`?

Addendum:  
Under Ubuntu 22.04 it is even worse, the compilation crashes …

```julia
ERROR: failed process: Process(`gcc '-DJULIA_MAIN="MyApp.julia_main"' [...]

```

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [February 9, 2023, 9:37pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/2 "2023-02-09T21:37:59Z")

</div>

FYI: There’s seemingly a workaround for this already, as you know, explained just now there on github. But for a possible another one:

I guess this means you’re using Python in your code (or if not indirectly in a dependency). I don’t know any other reason for using micromamba[\_jll], and I checked its dependents, you can see them (indirect ones) here:  
[https://juliahub.com/ui/Packages/CondaPkg/NxPEK/0.2.17?page=2](https://juliahub.com/ui/Packages/CondaPkg/NxPEK/0.2.17?page=2)

E.g. PythonCall and PythonPlot, so also consider some alternative non-Python code? I’m curious, what was it in your case?

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 9, 2023, 9:52pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/3 "2023-02-09T21:52:14Z")

</div>

Thanks for your reply!!! - It is the minimal example [MyApp.jl](https://github.com/JuliaLang/PackageCompiler.jl/blob/master/examples/MyApp/src/MyApp.jl) provided by the [PackageCompiler project-team](https://github.com/JuliaLang/PackageCompiler.jl).  
I do not know where to find an example project without this dependency that can be compiled into an executable App via `PackageCompiler` ☹

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [February 9, 2023, 10:17pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/4 "2023-02-09T22:17:23Z")

</div>

I do see here:

[https://github.com/JuliaLang/PackageCompiler.jl/commit/7e47b582fa2047692ad6110cd9bfedf697bbea15](https://github.com/JuliaLang/PackageCompiler.jl/commit/7e47b582fa2047692ad6110cd9bfedf697bbea15)

I guess docs might need to be better after that change. I suppose you can just use a slightly older version of the package, at least for now:

```julia
(@v1.8) pkg> add PackageCompiler@v2.1.4

```

I made a PR to fix this, untested, you can also (git) check out/add that commit:  
[https://github.com/JuliaLang/PackageCompiler.jl/pull/785](https://github.com/JuliaLang/PackageCompiler.jl/pull/785)

```julia
(@v1.8) pkg> add PackageCompiler#6123f09

```

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 9, 2023, 11:33pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/5 "2023-02-09T23:33:56Z")

</div>

Thanks for the proposal!  
I did, but the result is more or less the same:

```julia
C:\data\julia\tmp\SampleApplication\PackageCompiler.jl\examples\MyAppCompiled\bin>MyApp foo bar --julia-args -t4
  Downloaded artifact: MKL
  Downloaded artifact: MKL
fatal: error thrown and no exception handler available.
InitError(mod=:MKL_jll, error=ErrorException("Unable to automatically download/install artifact 'MKL' from sources listed in 'C:\Users\stefanpofahl\.julia\packages\MKL_jll\3GonY\Artifacts.toml'.
S
[...]

```

---

<div class="post-metadata">

**Author:** ![Palli](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/palli/32/3380_2.png) [@Palli](https://discourse.julialang.org/u/Palli)\
**Post date:** [February 9, 2023, 11:43pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/6 "2023-02-09T23:43:25Z")

</div>

My PR DID get rid of your error… 🙂 You just got MKL\_jll related one instead (maybe understandable, just not by me), so I closed my PR. It seems more involved than my simple “fix”. At least I tried, and that PR could be reopened and extended, feel free to fork it. It did pass CI (16? if recall successful, except for this one error, that may have been a false alarm):

> **CI / test (1.6, x64, windows-latest, true) (pull\_request)** Failing after 62m

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 9, 2023, 11:52pm UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/7 "2023-02-09T23:52:44Z")

</div>

The following helped:

```julia
using PackageCompiler; create_app("MyApp", "MyAppCompiled"; incremental = true, include_lazy_artifacts=true)

```

@ianshmean: Thanks 🙂

P.S.:  
If you have a `startup.jl` you may need to modify the Julia start command like this:

```julia
julia -q --startup-file=no --project

```

---

<div class="post-metadata">

**Author:** ![ellocco](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ellocco/32/31331_2.png) [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Post date:** [February 10, 2023, 1:27am UTC](https://discourse.julialang.org/t/initerror-mod-micromamba-jll/94377/8 "2023-02-10T01:27:06Z")

</div>

I have started a project for a `GLMakie` based App:

> <https://github.com/StefanPofahl/Stefans_Julia_RePo/blob/main/AppDir/README_AppDir.md>

it crushes at the moment, but maybe someone knows how to cure this …
