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 Symbolics.jl gives error #77

Closed
LalitChauhan56 opened this issue May 14, 2023 · 2 comments
Closed

Precompiling Symbolics.jl gives error #77

LalitChauhan56 opened this issue May 14, 2023 · 2 comments

Comments

@LalitChauhan56
Copy link

LalitChauhan56 commented May 14, 2023

Precompiling in VS Code gives the following error.


[ Info: Precompiling Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7]
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Compat [34da2185-b29b-5c13-b0c7-acf172513d20]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Compat [34da2185-b29b-5c13-b0c7-acf172513d20]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dcae73c1618 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dcae73c1618 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dcae73c1618 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module BangBang with build ID ffffffff-ffff-ffff-0000-1dcca3d5442a is missing from the cache.
│ This may mean BangBang [198e06fe-97b7-11e9-32a5-e1d131e6ad66] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for OneHotArray at C:\Users\lalit\.julia\packages\MicroCollections\Qsg6U\src\onehot.jl:79 declares type variable N but does not use it.
┌ Warning: Module BangBang with build ID ffffffff-ffff-ffff-0000-1dcca3d5442a is missing from the cache.
│ This may mean BangBang [198e06fe-97b7-11e9-32a5-e1d131e6ad66] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for adapt_structure at C:\Users\lalit\.julia\packages\Transducers\HBMTc\src\partitionby.jl:50 declares type variable inbounds but does not use it.
WARNING: method definition for _foldl_array at C:\Users\lalit\.julia\packages\Transducers\HBMTc\src\processes.jl:222 declares type variable T but does not use it.
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Metatheory [e9d8d322-4543-424a-9be4-0cc815abe26c]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Compat [34da2185-b29b-5c13-b0c7-acf172513d20]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Compat [34da2185-b29b-5c13-b0c7-acf172513d20]
│   exception = Required dependency DelimitedFiles [8bb1440f-4735-579b-a4ab-409b98df4dab] failed to load from a cache file.
└ @ Base loading.jl:1783
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dd2c7ee1a25 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dd2c7ee1a25 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dd2c7ee1a25 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module BangBang with build ID ffffffff-ffff-ffff-0000-1dd4957209a7 is missing from the cache.
│ This may mean BangBang [198e06fe-97b7-11e9-32a5-e1d131e6ad66] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for OneHotArray at C:\Users\lalit\.julia\packages\MicroCollections\Qsg6U\src\onehot.jl:79 declares type variable N but does not use it.
┌ Warning: Module BangBang with build ID ffffffff-ffff-ffff-0000-1dd4957209a7 is missing from the cache.
│ This may mean BangBang [198e06fe-97b7-11e9-32a5-e1d131e6ad66] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for adapt_structure at C:\Users\lalit\.julia\packages\Transducers\HBMTc\src\partitionby.jl:50 declares type variable inbounds but does not use it.
WARNING: method definition for _foldl_array at C:\Users\lalit\.julia\packages\Transducers\HBMTc\src\processes.jl:222 declares type variable T but does not use it.
┌ Warning: Module Metatheory with build ID ffffffff-ffff-ffff-0000-1dd0b56a8096 is missing from the cache.
│ This may mean Metatheory [e9d8d322-4543-424a-9be4-0cc815abe26c] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dd2c7ee1a25 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dd2c7ee1a25 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module Compat with build ID ffffffff-ffff-ffff-0000-1dd2c7ee1a25 is missing from the cache.
│ This may mean Compat [34da2185-b29b-5c13-b0c7-acf172513d20] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for == at C:\Users\lalit\.julia\packages\ChainRulesCore\6Sl9y\src\tangent_types\tangent.jl:68 declares type variable T but does not use it.
WARNING: method definition for getindex at C:\Users\lalit\.julia\packages\ChainRulesCore\6Sl9y\src\tangent_types\tangent.jl:120 declares type variable T but does not use it.
WARNING: method definition for getindex at C:\Users\lalit\.julia\packages\ChainRulesCore\6Sl9y\src\tangent_types\tangent.jl:120 declares type variable P but does not use it.       
WARNING: method definition for canonicalize at C:\Users\lalit\.julia\packages\ChainRulesCore\6Sl9y\src\tangent_types\tangent.jl:240 declares type variable L but does not use it.
WARNING: method definition for canonicalize at C:\Users\lalit\.julia\packages\ChainRulesCore\6Sl9y\src\tangent_types\tangent.jl:241 declares type variable L but does not use it.   
┌ Warning: Module ChainRulesCore with build ID ffffffff-ffff-ffff-0000-1dd986eef669 is missing from the cache.
│ This may mean ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module ChainRulesCore with build ID ffffffff-ffff-ffff-0000-1dd986eef669 is missing from the cache.
│ This may mean ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module DataStructures with build ID ffffffff-ffff-ffff-0000-1dd2719f84dc is missing from the cache.
│ This may mean DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module MultivariatePolynomials with build ID ffffffff-ffff-ffff-0000-1dddb6a76908 is missing from the cache.
│ This may mean MultivariatePolynomials [102ac46a-7ee4-5c85-9060-abc95bfdeaa3] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for multiplyexistingvar at C:\Users\lalit\.julia\packages\DynamicPolynomials\juS7t\src\mult.jl:1 declares type variable C but does not use it.
WARNING: method definition for multiplyexistingvar at C:\Users\lalit\.julia\packages\DynamicPolynomials\juS7t\src\mult.jl:6 declares type variable C but does not use it.
┌ Warning: Module ChainRulesCore with build ID ffffffff-ffff-ffff-0000-1dd986eef669 is missing from the cache.
│ This may mean ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module ChainRulesCore with build ID ffffffff-ffff-ffff-0000-1dd986eef669 is missing from the cache.
│ This may mean ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module ChainRulesCore with build ID ffffffff-ffff-ffff-0000-1dd986eef669 is missing from the cache.
│ This may mean ChainRulesCore [d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module SpecialFunctions with build ID ffffffff-ffff-ffff-0000-1dd94bc309a8 is missing from the cache.
│ This may mean SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module SpecialFunctions with build ID ffffffff-ffff-ffff-0000-1dd94bc309a8 is missing from the cache.
│ This may mean SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module SpecialFunctions with build ID ffffffff-ffff-ffff-0000-1dd94bc309a8 is missing from the cache.
│ This may mean SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module SpecialFunctions with build ID ffffffff-ffff-ffff-0000-1dd94bc309a8 is missing from the cache.
│ This may mean SpecialFunctions [276daf66-3868-5448-9aa4-cd146d93841b] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module RecursiveArrayTools with build ID ffffffff-ffff-ffff-0000-1de40315d50c is missing from the cache.
│ This may mean RecursiveArrayTools [731186ca-8d62-57ce-b412-fbd966d074cd] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for supremum at C:\Users\lalit\.julia\packages\Symbolics\J8IHJ\src\domains.jl:22 declares type variable T but does not use it.
┌ Warning: Module MultivariatePolynomials with build ID ffffffff-ffff-ffff-0000-1dddb6a76908 is missing from the cache.
│ This may mean MultivariatePolynomials [102ac46a-7ee4-5c85-9060-abc95bfdeaa3] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
WARNING: method definition for convert_to_output at C:\Users\lalit\.julia\packages\Groebner\yLVEZ\src\io.jl:483 declares type variable T but does not use it.
WARNING: method definition for groebner at C:\Users\lalit\.julia\packages\Groebner\yLVEZ\src\gb\groebner.jl:93 declares type variable Rng but does not use it.
WARNING: method definition for fglm_f4 at C:\Users\lalit\.julia\packages\Groebner\yLVEZ\src\fglm\fglm.jl:184 declares type variable Rng but does not use it.
WARNING: method definition for kbase_f4 at C:\Users\lalit\.julia\packages\Groebner\yLVEZ\src\fglm\fglm.jl:226 declares type variable Rng but does not use it.
┌ Warning: Module DataStructures with build ID ffffffff-ffff-ffff-0000-1dd2719f84dc is missing from the cache.
│ This may mean DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module DataStructures with build ID ffffffff-ffff-ffff-0000-1dd2719f84dc is missing from the cache.
│ This may mean DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module DataStructures with build ID ffffffff-ffff-ffff-0000-1dd2719f84dc is missing from the cache.
│ This may mean DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
┌ Warning: Module DataStructures with build ID ffffffff-ffff-ffff-0000-1dd2719f84dc is missing from the cache.
│ This may mean DataStructures [864edb3b-99cc-5e75-8d2d-829cb0a9cfe8] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1758
ERROR: LoadError: UndefVarError: `Float` not defined
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base .\Base.jl:31
  [2] top-level scope
    @ C:\Users\lalit\.julia\packages\SortingAlgorithms\PEcBU\src\SortingAlgorithms.jl:125
  [3] include
    @ .\Base.jl:457 [inlined]
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1801
  [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
  [6] macro expansion
    @ .\loading.jl:1613 [inlined]
  [7] macro expansion
    @ .\lock.jl:267 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
  [9] include
    @ .\Base.jl:457 [inlined]
 [10] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1801
 [11] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
 [12] macro expansion
    @ .\loading.jl:1613 [inlined]
 [13] macro expansion
    @ .\lock.jl:267 [inlined]
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
 [15] include
    @ .\Base.jl:457 [inlined]
 [16] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1801
 [17] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
 [18] macro expansion
    @ .\loading.jl:1613 [inlined]
 [19] macro expansion
    @ .\lock.jl:267 [inlined]
 [20] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
 [21] include
    @ .\Base.jl:457 [inlined]
 [22] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base .\loading.jl:2010
 [23] top-level scope
    @ stdin:2
in expression starting at C:\Users\lalit\.julia\packages\SortingAlgorithms\PEcBU\src\SortingAlgorithms.jl:3
in expression starting at C:\Users\lalit\.julia\packages\StatsBase\XgjIN\src\StatsBase.jl:1
in expression starting at C:\Users\lalit\.julia\packages\Distributions\39PV5\src\Distributions.jl:1
in expression starting at C:\Users\lalit\.julia\packages\Symbolics\J8IHJ\src\Symbolics.jl:1
in expression starting at stdin:2
ERROR: Failed to precompile Symbolics [0c5d862f-8b57-4792-8d23-62f2024744c7] to "C:\\Users\\lalit\\.julia\\compiled\\v1.9\\Symbolics\\jl_AD0D.tmp".
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base .\loading.jl:2260
  [3] compilecache
    @ .\loading.jl:2127 [inlined]
  [4] _require(pkg::Base.PkgId, env::String)
    @ Base .\loading.jl:1770
  [5] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base .\loading.jl:1625
  [6] macro expansion
    @ .\loading.jl:1613 [inlined]
  [7] macro expansion
    @ .\lock.jl:267 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:1576
  [9] eval
    @ .\boot.jl:370 [inlined]
 [10] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
    @ Base .\loading.jl:1864
 [11] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base .\essentials.jl:816
 [12] invokelatest(::Any, ::Any, ::Vararg{Any})
    @ Base .\essentials.jl:813
 [13] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\eval.jl:233
 [14] (::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\eval.jl:157
 [15] withpath(f::VSCodeServer.var"#66#70"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\repl.jl:249
 [16] (::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\eval.jl:155
 [17] hideprompt(f::VSCodeServer.var"#65#69"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\repl.jl:38
 [18] (::VSCodeServer.var"#64#68"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\eval.jl:126
 [19] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging .\logging.jl:514
 [20] with_logger
    @ .\logging.jl:626 [inlined]
 [21] (::VSCodeServer.var"#63#67"{VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\eval.jl:225
 [22] #invokelatest#2
    @ .\essentials.jl:816 [inlined]
 [23] invokelatest(::Any)
    @ Base .\essentials.jl:813
 [24] macro expansion
    @ c:\Users\lalit\.vscode\extensions\julialang.language-julia-1.38.2\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
 [25] (::VSCodeServer.var"#61#62")()
    @ VSCodeServer .\task.jl:514
@LilithHafner
Copy link
Member

This is likely because you are using SortingAlgorithms v0.3.1 which depends on internals of sorting that were removed from Base in 1.9. There have been no breaking changes in SortingAlgorithms.jl since 0.3.1, so you should be able to use SortingAlgorithms 1.1.0.

I'm not able to reproduce this issue. Would you share the output of ]st and ]st -m, please?

@LalitChauhan56
Copy link
Author

I updated all my packages again and tried doing this in a new environment, I didn't throw any errors. Even I am unable to reproduce this now. I think it was a problem on my end.

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