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

Precompilation Errors and UndefVarError in DifferentialEquations.jl (Julia 1.11.3 on macOS) #1072

Closed
hpoit opened this issue Feb 4, 2025 · 12 comments
Labels

Comments

@hpoit
Copy link

hpoit commented Feb 4, 2025

Issue Description

I am experiencing persistent issues with DifferentialEquations.jl, Flux.jl, and DiffEqJump.jl on Julia 1.11.3 running on macOS.

When I try:

using DifferentialEquations, Flux, DiffEqJump

I receive multiple precompilation errors, including:

  • ERROR: Method overwriting is not permitted during Module precompilation.
  • UndefVarError: ODEProblem not defined
  • Modules are failing to precompile due to missing dependencies.

Steps to Reproduce

  1. Open Julia 1.11.3
  2. Run the following:
import Pkg
Pkg.add(["DifferentialEquations", "Flux", "DiffEqJump"])
Pkg.precompile()
using DifferentialEquations, Flux, DiffEqJump
  1. Observe errors during precompilation.

System Info

Expected Behavior
The packages should load without precompilation errors.

Observed Behavior

  • Precompilation fails for DifferentialEquations.jl and DiffEqJump.jl
  • Errors related to SciMLBase.ODEProblem
  • UndefVarError: ODEProblem not defined

Additional Notes

  • I have tried removing and reinstalling all packages.
  • The issue persists in both the Julia REPL and VSCode Jupyter notebook.
@hpoit hpoit added the bug label Feb 4, 2025
@ChrisRackauckas
Copy link
Member

Share ]st

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025

Hi Chris, here are the outputs of the actual notebook that I am trying to run:
Integrated-cell - output issues.pdf

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025

Hey @ChrisRackauckas, if you try using these packages:
Installed Packages (Pkg.status() output): https://gist.github.com/hpoit/b9d75f503c271f15892a9a069e123b1f

Do you get the same error? If not, should I just try uninstalling Julia completely and installing it again?

I have an important meeting today with the founder of a genomics company and it would be nice to show the packages in action.

@ChrisRackauckas
Copy link
Member

Again you need to share ]st to have an idea of how to recreate it

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025 via email

@ChrisRackauckas
Copy link
Member

But share ]st... because it's not in there...

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025

Chris, forgive me for my ignorance. Here's ]st:

(@v1.11) pkg> st
Status `~/.julia/environments/v1.11/Project.toml`
⌃ [2b5f629d] DiffEqBase v6.130.1
⌃ [c894b116] DiffEqJump v8.6.2
⌃ [0c46a032] DifferentialEquations v7.11.0
  [31c24e10] Distributions v0.25.117
⌃ [587475ba] Flux v0.14.21
  [7073ff75] IJulia v1.26.0
  [91a5bcdd] Plots v1.40.9
  [f27b6e38] Polynomials v4.0.14
Info Packages marked with ⌃ have new versions available and may be upgradable.

@ChrisRackauckas
Copy link
Member

What if you remove Flux and ]up?

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025

The second block of the notebook requires Flux, how would I do without it though?

@ChrisRackauckas
Copy link
Member

Oh wait, remove DiffEqJump and change that to JumpProcesses. It was renamed years ago so that's why you're on old versions.

@hpoit
Copy link
Author

hpoit commented Feb 5, 2025

Thanks Chris, notebook working!

@hpoit hpoit closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants