# Error in precompiling packages

**URL:** <https://discourse.julialang.org/t/error-in-precompiling-packages/90837>\
**Category:** Package Management\
**Tags:** package\
**Created:** [November 26, 2022, 3:12am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837 "2022-11-26T03:12:30Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [March 3, 2023, 10:38am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/21 "2023-03-03T10:38:04Z")

</div>

Thanks. So if the same set of packagles were loaded with GARCH removed, it should work OK?  
Could this be solved by  
Removing GARCH and running a resolve?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [March 3, 2023, 10:43am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/22 "2023-03-03T10:43:44Z")

</div>

This seems to improve the situation.

```julia
using Pkg
pkg"add https://github.com/AndreyKolev/GARCH.jl" # This will uncap the dependencies of GARCH
pkg"up"

```

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [March 3, 2023, 10:49am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/23 "2023-03-03T10:49:09Z")

</div>

> [@mkitti](#):
>
> This seems to improve the situation.

I’ll pass that on. Thanks so much!  
[Update - it worked!]

---

<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:** [March 3, 2023, 10:49am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/24 "2023-03-03T10:49:49Z")

</div>

If you give this version of Project.toml to your students it will work on Linux and Windows 10:

[Project.toml](https://discourse.julialang.org/uploads/short-url/hrlnGhc5hOUu8Slc5hUFFgXkmYL.toml) (1.2 KB)

And if they try to install outdated packages like GARCH they will get an error message.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [March 3, 2023, 10:52am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/25 "2023-03-03T10:52:43Z")

</div>

> [@ufechner7](#):
>
> If you give this version of Project.toml to your students it will work on Linux and Windows 10:

Thanks so much!

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [March 3, 2023, 11:08am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/26 "2023-03-03T11:08:24Z")

</div>

As a more general comment, why are you not using the `ARCHModels` package which is very well maintained and (as far as I can tell) implements everything `GARCH` implements and lots more?

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [March 3, 2023, 11:27am UTC](https://discourse.julialang.org/t/error-in-precompiling-packages/90837/27 "2023-03-03T11:27:13Z")

</div>

You are right, of course, and we are using ARCHModels, but these students are quite advanced and I encourage the more advanced ones to find the necessary packages. Like me, they obviously must have tested/rejected GARCH before finding ARCHModels (as the name seemed more obvious), but hadn’t thought it necessary to remove the unused package. Thank you for the suggestion, though.

[Previous page](https://discourse.julialang.org/t/error-in-precompiling-packages/90837.md?page=1)
