# Issues with MethodOfLines in SciML tutorial

**URL:** <https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 21, 2023, 3:16pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398 "2023-03-21T15:16:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 3:16pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/1 "2023-03-21T15:16:37Z")

</div>

Hello everyone.

I used to use MethodeOfLines to learn and start using all the great work of Chris and all this wonderful community  
But after running an update in the last 3 days  
I can’t even run the example tutorial that can be found here  
[https://docs.sciml.ai/MethodOfLines/dev/tutorials/heat/](https://docs.sciml.ai/MethodOfLines/dev/tutorials/heat/)

Here is the first error message

ERROR: MethodError: no method matching (SciMLBase.PDETimeSeriesSolution{Float64, 1, Dict{Num, Matrix{Float64}}, MethodOfLines.MOLMetadata{Val{true}(), MethodOfLines.DiscreteSpace{1, 1, MethodOfLines.CenterAlignedGrid}, MOLFiniteDifference{MethodOfLines.C

Yesterday I tried to solve this but without success  
meanwhile I will try to download older julia version that was not updated and see if this error disappears  
If one of you is familiar with such error message and guide me that will be great  
Thank you  
Naceur

---

<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 21, 2023, 3:47pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/2 "2023-03-21T15:47:26Z")

</div>

It’s unlikely that this has anything to do with your Julia version and likely that it is about the version of packages used. What’s the output of `]st` in the environment you are running the code in?

---

<div class="post-metadata">

**Author:** ![EuRoXy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/euroxy/32/13970_2.png) [@EuRoXy](https://discourse.julialang.org/u/EuRoXy)\
**Post date:** [March 21, 2023, 3:58pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/3 "2023-03-21T15:58:35Z")

</div>

I also get  
`ERROR: LoadError: MethodError: no method matching dlopen(::Nothing; throw_error=false)`  
recently when I try to update packages. I am using version julia 1.8.4.  
Would also appreciate if someone knows how to solve such.

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 4:08pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/4 "2023-03-21T16:08:55Z")

</div>

Hi Nils

Thank you,Yes for sur it is some thing like said

here is the output of ] st  
(@v1.8) pkg\> st  
Status `~/.julia/environments/v1.8/Project.toml`  
⌅ [052768ef] CUDA v3.13.1  
[a6be3551] CUDA\_Driver v0.1.0  
⌅ [5b8099bc] DomainSets v0.5.15  
[94925ecb] MethodOfLines v0.8.4  
[961ee093] ModelingToolkit v8.48.1  
[1dea7af3] OrdinaryDiffEq v6.49.3  
[94395366] ParallelStencil v0.6.1  
[91a5bcdd] Plots v1.38.8  
[4ee394cb] CUDA\_Driver\_jll v0.4.0+2  
[76a88914] CUDA\_Runtime\_jll v0.4.0+1  
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`

and the output of ] status --outdated

(@v1.8) pkg\> status --outdated  
Status `~/.julia/environments/v1.8/Project.toml`  
⌅ [052768ef] CUDA v3.13.1 (\<v4.0.1): ParallelStencil  
⌅ [5b8099bc] DomainSets v0.5.15 (\<v0.6.5): ModelingToolkit, Symbolics

yesterday I spent a lot of time installing new version or old versions of DomainSets, Symbolics,ModelingToolkit

I did this carefully but I had always the same Error

perhaps it is MethoeOfLines that is old now ?

Naceur

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 4:10pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/5 "2023-03-21T16:10:36Z")

</div>

Hi EuroXy

yes if we arrive to some thing about this error we will make some progress all together

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [March 21, 2023, 4:21pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/6 "2023-03-21T16:21:24Z")

</div>

Try using a new fresh environment.

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 5:22pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/7 "2023-03-21T17:22:27Z")

</div>

Hi Imiq

That’s what I just did this way : I removed  
rm .julia/environments/v1.8/Project.toml  
rm .julia/environments/v1.8/Manifest.toml

So when I run the script of heat equation that I copied from the tutorial docs  
julia ask me to repopulate the environment all what actually is needed  
OrdinaryDiffEq, ModelingToolkit, MethodOfLines, DomainSets

But I have exactly the same error  
ERROR: MethodError: no method matching (SciMLBase.PDETimeSeriesSolution…

Naceur

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [March 21, 2023, 5:55pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/8 "2023-03-21T17:55:25Z")

</div>

I tested it here in `1.9+` series, and it worked. Also because this involves large packages, having that in a specific environment will make the usage of the packages much smoother. What I did is:

```julia
% mkdir naceur
% cd naceur
% juila

julia> activate .

naceur> add ... packages

julia> # ... run everything

```

ps: I did the same thing in `1.8.5` and it worked here, so I cannot help with the specific bug you are having, rather than suggesting a clean new environment as I did.

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 6:06pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/9 "2023-03-21T18:06:55Z")

</div>

Imiq

Ok I’m doing this

Naceur

---

<div class="post-metadata">

**Author:** ![dan\_tud](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dan\_tud](https://discourse.julialang.org/u/dan_tud)\
**Post date:** [March 21, 2023, 7:19pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/10 "2023-03-21T19:19:50Z")

</div>

Hi Imiq,

What you suggested worked for me, though to add to this I first had to do this:

```julia
pkg> generate demo
pkg> activate.
pkg> status

```

When I ran this new environment all issues seemed to be fixed

---

<div class="post-metadata">

**Author:** ![EuRoXy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/euroxy/32/13970_2.png) [@EuRoXy](https://discourse.julialang.org/u/EuRoXy)\
**Post date:** [March 21, 2023, 7:20pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/11 "2023-03-21T19:20:42Z")

</div>

thank you @lmiq using new env does work

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [March 21, 2023, 8:36pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/12 "2023-03-21T20:36:32Z")

</div>

That should have been a transient error in CUDA-related packages, that had been resolved in a few hours, yesterday.

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 9:57pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/13 "2023-03-21T21:57:59Z")

</div>

Dear Imiq, EuRoXy, dan\_tud, and giordano

I did exactly as Imiq and dan suggested to us, this helped me to have clean project populated only with the required packages to run MethodOfLines at the end I reinstalled CUDA from scratch when I saw giordano message  
but I did not had any chance to have this error disappears ☹

I even removed 1.8.5 and installed again making sur that I removed also .julia/ directory  
and gave a try with julia 1.9-rc  
no change! the same error 😮‍💨  
I will continue tomorrow, may be I should run line by line or rewrite a small example  
actually I used the tutorial example from the docs perhaps some thing is not good just in that script  
but empirically I never have encountered such a behavior if some thing is not good in the script Julia often tell me where to look

Have A Nice Day  
Naceur

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [March 21, 2023, 10:00pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/14 "2023-03-21T22:00:41Z")

</div>

> [@Naceur\_Bouziani](#):
>
> docs perhaps some thing is not good just in that script

FWIW I just copied and pasted that script.

You may have an out to date access to some package server? It seems that should be something that will go away with the latest package versions once you get them

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 21, 2023, 10:11pm UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/15 "2023-03-21T22:11:42Z")

</div>

Yes I think  
we will see in few days Imiq

I think MethodOfLines worked with 1.8.3 and I’m not so sure that this was also the case with 1.8.5 before I did the update of 1.8.5

---

<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 22, 2023, 10:15am UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/16 "2023-03-22T10:15:04Z")

</div>

See the update from Chris here, which is probably also your issue:

> [@Issue with MethodOfLines.jl Heat equation example](https://discourse.julialang.org/t/issue-with-methodoflines-jl-heat-equation-example/96411/3):
>
> Yeah it has to do with a recent bump in the road due to updating the return code spec. @xtalax you said you were putting a patch in today?

On a more general note I will reiterate what I said before though: it is exceedingly unlikely that and update from one patch version of Julia to another (i.e. incrementing the y in version 1.x.y) will break any of your workflow **if** you are using the same version of packages in both Julia versions. A patch update should only contain bugfixes so the only scenario where your workflow would change is if you happened to rely on a bug in a patch version that was fixed in the udpate.

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 22, 2023, 10:49am UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/17 "2023-03-22T10:49:20Z")

</div>

Hi Nils

Yes! This have nothing to do with the update of Julia.  
I went to see the discussion about MethodOfLines.  
They are fixing the problem  
Thanks a lot  
Naceur

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 22, 2023, 10:58am UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/18 "2023-03-22T10:58:40Z")

</div>

Shoud I modify the title of this question? I do not know how ?

---

<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 22, 2023, 11:09am UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/19 "2023-03-22T11:09:42Z")

</div>

Changed it for you.

---

<div class="post-metadata">

**Author:** ![Naceur\_Bouziani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/naceur_bouziani/32/35768_2.png) [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Post date:** [March 22, 2023, 11:56am UTC](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398/20 "2023-03-22T11:56:03Z")

</div>

Nils  
Great !  
Naceur

[Next page](https://discourse.julialang.org/t/issues-with-methodoflines-in-sciml-tutorial/96398.md?page=2)
