# Dependencies "4 skipped during auto due to previous errors"

**URL:** https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862
**Category:** Performance
**Tags:** cuda
**Created:** [April 22, 2022, 6:14pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862 "2022-04-22T18:14:31Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![munozdjp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/munozdjp/32/29689_2.png) [@munozdjp](https://discourse.julialang.org/u/munozdjp)
#### Post date: [April 22, 2022, 6:14pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/1 "2022-04-22T18:14:31Z")

</div>

When I follow the tutorial on :

> **[GitHub - dynamicslab/NormalFormAE](https://github.com/dynamicslab/NormalFormAE)**
>
> Contribute to dynamicslab/NormalFormAE development by creating an account on GitHub.

When I instantiate in julia: (image attached):

 ![image](https://global.discourse-cdn.com/julialang/original/3X/a/f/afd1074df761aebcce96a2ea0d9de4a98d7499f6.png)

I obtain the following errors:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/4/0/408705fe9c8a0761d08a15fcb030f03cb25bea33.png)

Do someone knows how to fix the problem of these dependencies?

---

<div class="post-metadata">

### Author: ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)
#### Post date: [April 22, 2022, 6:30pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/2 "2022-04-22T18:30:14Z")

</div>

Did you run `import Pkg; Pkg.precompile()` or load the package as the message suggests?

---

<div class="post-metadata">

### Author: ![munozdjp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/munozdjp/32/29689_2.png) [@munozdjp](https://discourse.julialang.org/u/munozdjp)
#### Post date: [April 22, 2022, 6:58pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/3 "2022-04-22T18:58:12Z")

</div>

I activate and then instantiate, after I instantiate the following error are shown:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/d/d/dd0ea6973caaa427e81f6016f599e83d7fbf1607.png)

The image I attached in the main question is after running:

> import Pkg; Pkg.precompile()

---

<div class="post-metadata">

### Author: ![munozdjp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/munozdjp/32/29689_2.png) [@munozdjp](https://discourse.julialang.org/u/munozdjp)
#### Post date: [April 22, 2022, 7:00pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/4 "2022-04-22T19:00:01Z")

</div>

When I add the package “cuda” I also got the error:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/d/fdc54fc84fcaee7db6a03753a643eedd25feefe6.png)

---

<div class="post-metadata">

### Author: ![munozdjp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/munozdjp/32/29689_2.png) [@munozdjp](https://discourse.julialang.org/u/munozdjp)
#### Post date: [April 22, 2022, 7:17pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/5 "2022-04-22T19:17:17Z")

</div>

Dear, @ianshmean i got what you meaned: I already add manually the packages But I still have problems with two of them:  
Flux  
NormalFormAE.

adding manually the packages is not working. When I runed run

> `import Pkg; Pkg.precompile()`

I do not understand where the error comes from. Find the error attached:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/c/a/ca14f98f8a123f05d4fbc439d023d49ca7d762cd.png)

Do you got the same error?

---

<div class="post-metadata">

### Author: ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)
#### Post date: [April 22, 2022, 7:18pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/6 "2022-04-22T19:18:48Z")

</div>

Assuming that the checked-in manifest actually works with some julia version… The problem here seems to be that you’re trying to instantiate a manifest that was resolved in a different julia version, but unfortunately older versions of julia didn’t record which version that was, and the repo also doesn’t mention which julia version to use, so it’s just an informed guess that that’s what the issue is.

I recommend trying to `update` the environment rather than `instantiate`.

Also, when posting an issue like this, it’s helpful to:

- Not post screenshots. [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)
- Mention which julia version you are using
- Post the full error in the first post

---

<div class="post-metadata">

### Author: ![munozdjp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/munozdjp/32/29689_2.png) [@munozdjp](https://discourse.julialang.org/u/munozdjp)
#### Post date: [April 22, 2022, 7:38pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/7 "2022-04-22T19:38:05Z")

</div>

Thanks it worked. Now I have another error. I think I will open a new topic for this new error.

> shell\> julia -i run/run\_nf.jl  
> /usr/share/modules/init/bash: eval: line 43: syntax error near unexpected token `(' /usr/share/modules/init/bash: eval: line 43: ` Pkg.precompile() \_mlshdbg=‘’ ;;’  
> Activating project at `~/Documents/NormalFormAE`  
> ERROR: LoadError: CUDA error: invalid device ordinal (code 101, ERROR\_INVALID\_DEVICE)  
> Stacktrace:  
> [1] throw\_api\_error(res::CUDA.cudaError\_enum)  
> @ CUDA ~/.julia/packages/CUDA/Uurn4/lib/cudadrv/error.jl:91  
> [2] macro expansion  
> @ ~/.julia/packages/CUDA/Uurn4/lib/cudadrv/error.jl:101 [inlined]  
> [3] cuDeviceGet  
> @ ~/.julia/packages/CUDA/Uurn4/lib/utils/call.jl:26 [inlined]  
> [4] CuDevice(ordinal::Int64)  
> @ CUDA ~/.julia/packages/CUDA/Uurn4/lib/cudadrv/devices.jl:17  
> [5] top-level scope  
> @ ~/Documents/NormalFormAE/run/run\_nf.jl:6  
> in expression starting at /home/munozdjp/Documents/NormalFormAE/run/run\_nf.jl:6

---

<div class="post-metadata">

### Author: ![ianshmean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ianshmean/32/216042_2.png) [@ianshmean](https://discourse.julialang.org/u/ianshmean)
#### Post date: [April 22, 2022, 7:42pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/8 "2022-04-22T19:42:32Z")

</div>

I don’t expect it to be the cause of the error you’re seeing, but just FYI, you appear to be running julia from within the julia `shell>`. I recommend keeping it simple and just run julia in a plain terminal

---

<div class="post-metadata">

### Author: ![munozdjp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/munozdjp/32/29689_2.png) [@munozdjp](https://discourse.julialang.org/u/munozdjp)
#### Post date: [April 24, 2022, 12:13pm UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/9 "2022-04-24T12:13:24Z")

</div>

Thanks it seems that my code had written

> device!(CUDA.CuDevice(1))

Changing 1 by 0 fixed the problem. not sure yet why.

---

<div class="post-metadata">

### Author: ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)
#### Post date: [April 26, 2022, 7:48am UTC](https://discourse.julialang.org/t/dependencies-4-skipped-during-auto-due-to-previous-errors/79862/10 "2022-04-26T07:48:00Z")

</div>

> [@munozdjp](#):
>
> Changing 1 by 0 fixed the problem. not sure yet why.

You probably only have a single GPU, while that function takes a 0-indexed number.
