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

Precompiling DifferentialEquations currently fails #1065

Closed
wg030 opened this issue Nov 13, 2024 · 4 comments
Closed

Precompiling DifferentialEquations currently fails #1065

wg030 opened this issue Nov 13, 2024 · 4 comments

Comments

@wg030
Copy link

wg030 commented Nov 13, 2024

At the moment I get the following error messages when working with DifferentialEquations

Precompiling DifferentialEquations...
Info Given DifferentialEquations was explicitly requested, output will be shown live
WARNING: Method definition stepsize_controller!(Any, OrdinaryDiffEqCore.PredictiveController, Any) in module OrdinaryDiffEqCore at C:\Users\user\.julia\packages\OrdinaryDiffEqCore\Hp3EU\src\integrators\controllers.jl:404 overwritten in module OrdinaryDiffEqFIRK at C:\Users\user\.julia\packages\OrdinaryDiffEqFIRK\f9ugT\src\controllers.jl:1.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? OrdinaryDiffEqFIRK
  ? OrdinaryDiffEq
  ? DelayDiffEq
  ? StochasticDiffEq
  ? BoundaryValueDiffEqShooting
  ? BoundaryValueDiffEq
  ? DifferentialEquations
@ChrisRackauckas
Copy link
Member

Can you share what you're getting from using OrdinaryDiffEqFIRK?

@wg030
Copy link
Author

wg030 commented Nov 14, 2024

Can you share what you're getting from using OrdinaryDiffEqFIRK?

The outuput is quite similar to what I get with using DifferentialEquations:

Precompiling OrdinaryDiffEqFIRK...
Info Given OrdinaryDiffEqFIRK was explicitly requested, output will be shown live
WARNING: Method definition stepsize_controller!(Any, OrdinaryDiffEqCore.PredictiveController, Any) in module OrdinaryDiffEqCore at C:\Users\user\.julia\packages\OrdinaryDiffEqCore\TbC1J\src\integrators\controllers.jl:404 overwritten in module OrdinaryDiffEqFIRK at C:\Users\user\.julia\packages\OrdinaryDiffEqFIRK\f9ugT\src\controllers.jl:1.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? OrdinaryDiffEqFIRK
[ Info: Precompiling OrdinaryDiffEqFIRK [5960d6e9-dd7a-4743-88e7-cf307b64f125] 
WARNING: Method definition stepsize_controller!(Any, OrdinaryDiffEqCore.PredictiveController, Any) in module OrdinaryDiffEqCore at C:\Users\user\.julia\packages\OrdinaryDiffEqCore\TbC1J\src\integrators\controllers.jl:404 overwritten in module OrdinaryDiffEqFIRK at C:\Users\user\.julia\packages\OrdinaryDiffEqFIRK\f9ugT\src\controllers.jl:1.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
┌ Info: Skipping precompilation due to precompilable error. Importing OrdinaryDiffEqFIRK [5960d6e9-dd7a-4743-88e7-cf307b64f125].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.

Note that I don't use OrdinaryDiffEqFIRK explicitly so I added it via the package manager first.

@tomaklutfu
Copy link

I have the same problem. I investigated the problem to be that SymbolicRegression.jl restrics Symbolics.jl and SymbolicUtils.jl versions to one of an older version; thus, the OrdinaryDiffEqFIRK.jl stays at v1.1.1 for me. One of the installed packages probably prevents OrdinaryDiffEqFIRK being updated. Maybe check that forcibly trying adding v1.3.0 of the package.

] add OrdinaryDiffEqFIRK@1.3.0

@wg030
Copy link
Author

wg030 commented Nov 15, 2024

] add OrdinaryDiffEqFIRK@1.3.0

That did not work for me, but the error message helped me figure out what is going on.
It turned out that I was on v3.2.13 instead of v.4.0.11 for Polynomials and this in turn was forced by SpecialMatrices altough I was on the latest version there. Looks like SpecialMatrices did forget to register its latest version.
That said ] add SpecialMatrice#main solved my problem.

Hence I am closing this issue and will open a new at SpecialMatrices.

@wg030 wg030 closed this as completed Nov 15, 2024
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

3 participants