Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompile issue with mybinder environment #69

Closed
ivborissov opened this issue Oct 14, 2019 · 8 comments
Closed

Precompile issue with mybinder environment #69

ivborissov opened this issue Oct 14, 2019 · 8 comments

Comments

@ivborissov
Copy link

ivborissov commented Oct 14, 2019

Hi, it seems to be the same issue
#62

I use mybinder.org environment with Julia 1.2.0 and during using OrdinaryDiffEq I encounter

Info: Precompiling OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed]
└ @ Base loading.jl:1242
ERROR: LoadError: Failed to precompile SparseDiffTools [47a9eef4-7e08-11e9-0b38-333d64bd3804] to /srv/julia/pkg/compiled/v1.2/SparseDiffTools/w4L8R.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1253
 [3] _require(::Base.PkgId) at ./loading.jl:1013
 [4] require(::Base.PkgId) at ./loading.jl:911
 [5] require(::Module, ::Symbol) at ./loading.jl:906
 [6] include at ./boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at ./loading.jl:1094
 [8] include(::Module, ::String) at ./Base.jl:31
 [9] top-level scope at none:2
 [10] eval at ./boot.jl:330 [inlined]
 [11] eval(::Expr) at ./client.jl:432
 [12] top-level scope at ./none:3
in expression starting at /srv/julia/pkg/packages/OrdinaryDiffEq/UsWa2/src/OrdinaryDiffEq.jl:49

Failed to precompile OrdinaryDiffEq [1dea7af3-3e70-54e6-95c3-0bf5283fa5ed] to /srv/julia/pkg/compiled/v1.2/OrdinaryDiffEq/DlSvy.ji.

Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1253
 [3] _require(::Base.PkgId) at ./loading.jl:1013
 [4] require(::Base.PkgId) at ./loading.jl:911
 [5] require(::Module, ::Symbol) at ./loading.jl:906
 [6] top-level scope at In[2]:1
@ChrisRackauckas
Copy link
Member

What does using SparseDiffTools give you?

@ivborissov
Copy link
Author

Only

Info: Precompiling SparseDiffTools [47a9eef4-7e08-11e9-0b38-333d64bd3804]
└ @ Base loading.jl:1242

Failed to precompile SparseDiffTools [47a9eef4-7e08-11e9-0b38-333d64bd3804] to /srv/julia/pkg/compiled/v1.2/SparseDiffTools/w4L8R.ji.

Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1253
 [3] _require(::Base.PkgId) at ./loading.jl:1013
 [4] require(::Base.PkgId) at ./loading.jl:911
 [5] require(::Module, ::Symbol) at ./loading.jl:906
 [6] top-level scope at In[3]:2

@ChrisRackauckas
Copy link
Member

🤷‍♂ I need more to go on than that. I cannot reproduce given when you've shown. There's no error message or anything? Is this directly in the REPL?

@ivborissov
Copy link
Author

The error is only present in https://mybinder.org/ environment. With my local Julia 1.2.0 everything is fine. Only julia environments provisioned with mybinder fail to precompile OrdinaryDiffEq due to SparseDiffTools precompilation error. The error can be reproduces if you provision a simple notebook in mybinder
https://mybinder.org/v2/gh/davidanthoff/bindertest/master?filepath=src%2Fmain.ipynb
add a new cell and run:

using Pkg; Pkg.add("SparseDiffTools")
using SparseDiffTools

Other DiffEq packages (e.x. DiffEqBase) precompile in mybinder without errors

@ChrisRackauckas
Copy link
Member

It looks like I can isolate it to:

using Pkg; Pkg.add("BlockBandedMatrices"); using BlockBandedMatrices

which means it's upstream issue in BlockBandedMatrices.jl

@ivborissov
Copy link
Author

Yes, you are right, thanks! Latest versions of BlockBandedMatrices fail to precompile in mybinder.
The latest working version is BlockBandedMatrices v.0.4.6. How can I force OrdinaryDiffEq and SparseDiffTools to use BlockBandedMatrices v.0.4.6 in mybinder as a workaround?
I guess we can close the issue and "move" it to BlockBandedMatrices?

@ChrisRackauckas
Copy link
Member

Yes, let's move it over to there. Please ping me because I'd like to continue to follow this. I am not sure what could be causing it, but if @dlfivefifty is doing fancy things with BLAS that might be doing it.

@ivborissov
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants