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

Failed to precompile MadNLP #177

Closed
umbe0 opened this issue Jun 14, 2022 · 1 comment
Closed

Failed to precompile MadNLP #177

umbe0 opened this issue Jun 14, 2022 · 1 comment

Comments

@umbe0
Copy link

umbe0 commented Jun 14, 2022

Hello,
I have installed MadNLP with the command Pkg.add("MadNLP") and added using MadNLP in my code.
At the first run the following error showed up:
ERROR: LoadError: syntax: extra token "as" after end of expression
Stacktrace:
[1] top-level scope at C:\Users\umbe0\.julia\packages\MadNLP\FNmbj\src\MadNLP.jl:16
[2] include(::Module, ::String) at .\Base.jl:377
[3] top-level scope at none:2
[4] eval at .\boot.jl:331 [inlined]
[5] eval(::Expr) at .\client.jl:449
[6] top-level scope at .\none:3
in expression starting at C:\Users\umbe0\.julia\packages\MadNLP\FNmbj\src\MadNLP.jl:16
ERROR: LoadError: Failed to precompile MadNLP [2621e9c9-9eb4-46b1-8089-e8c72242dfb6] to
C:\Users\umbe0\.julia\compiled\v1.4\MadNLP\Ru3yE_ccVQJ.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1272
[3] _require(::Base.PkgId) at .\loading.jl:1029
[4] require(::Base.PkgId) at .\loading.jl:927
[5] require(::Module, ::Symbol) at .\loading.jl:922

Does anyone know how to solve it?

@umbe0
Copy link
Author

umbe0 commented Jun 15, 2022

Ok, after some trials I managed to solve the problem, I had an old version of Julia. I installed the last version and updated all the packages. Now everithing works!

@umbe0 umbe0 closed this as completed Jun 15, 2022
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

1 participant