Skip to content

Installation of Altro.jl fails: trace seems to point to RobotDynamics.jl #54

@victor-qin

Description

@victor-qin

Hi there,

I'm currently trying to install Altro.jl for use in a path planning simulation, and I can't see to add it. A throw through ChatGPT Codex seems to point to the error at RobotDynamics.jl/src/utils.jl, even though add RobotDynamics seems to work fine. Looks to be that overwriting the LAPACK method is being overwritten?

I've added the error messages below:

  Progress [===========================
  Progress [=====>]  67/68
  ? Robot…
  ? Robot…
  ? Traje…
  ? Altro
  64 dependencies successfully precompiled in 48 seconds. 337 already precompiled.
  4 dependencies failed but may be precompilable after restarting julia
  7 dependencies had output during precompilation:
┌ Interpolations
│  WARNING: method definition for checkbounds at /Users/victorqin/.julia/packages/Interpolations/y4lLj/src/Interpolations.jl:454 declares type variable N but does not use it.
│  WARNING: method definition for checkbounds at /Users/victorqin/.julia/packages/Interpolations/y4lLj/src/Interpolations.jl:457 declares type variable N but does not use it.
│  WARNING: method definition for GriddedInterpolation at /Users/victorqin/.julia/packages/Interpolations/y4lLj/src/gridded/gridded.jl:37 declares type variable pad but does not use it.
│  WARNING: method definition for GriddedInterpolation at /Users/victorqin/.julia/packages/Interpolations/y4lLj/src/gridded/gridded.jl:60 declares type variable pad but does not use it.
│  WARNING: method definition for interpolate! at /Users/victorqin/.julia/packages/Interpolations/y4lLj/src/deprecations.jl:30 declares type variable TWeights but does not use it.
└  
┌ RobotDynamics
│  WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  
┌ VectorizationBase
│  WARNING: using Static.static_first in module VectorizationBase conflicts with an existing identifier.
│  WARNING: using Static.static_last in module VectorizationBase conflicts with an existing identifier.
└  
┌ Altro
│  WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  
┌ RobotZoo
│  WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  
┌ Formatting
│  ┌ Warning: DEPRECATION NOTICE
│  │ 
│  │ Formatting.jl has been unmaintained for a while, with some serious
│  │ correctness bugs compromising the original purpose of the package. As a result,
│  │ it has been deprecated - consider using an alternative, such as
│  │ `Format.jl` (https://github.com/JuliaString/Format.jl) or the `Printf` stdlib directly.
│  │ 
│  │ If you are not using Formatting.jl as a direct dependency, please consider
│  │ opening an issue on any packages you are using that do use it as a dependency.
│  │ From Julia 1.9 onwards, you can query `]why Formatting` to figure out which
│  │ package originally brings it in as a dependency.
│  └ @ Formatting ~/.julia/packages/Formatting/3VxOt/src/Formatting.jl:12
└  
┌ TrajectoryOptimization
│  WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
│  ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
└  

julia> Pkg.status("Altro")
Status `~/.julia/environments/v1.11/Project.toml`
  [5dcf52e5] Altro v0.5.0

julia> using Altro
Precompiling Altro...
Info Given Altro was explicitly requested, output will be shown live 
WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? RobotDynamics
  ? RobotZoo
  ? TrajectoryOptimization
  ? Altro
[ Info: Precompiling Altro [5dcf52e5-e2fb-48e0-b826-96f46d2e3e73] 
WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
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 Altro [5dcf52e5-e2fb-48e0-b826-96f46d2e3e73].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
Precompiling TrajectoryOptimization...
Info Given TrajectoryOptimization was explicitly requested, output will be shown live 
WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? RobotDynamics
  ? RobotZoo
  ? TrajectoryOptimization
[ Info: Precompiling TrajectoryOptimization [c79d492b-0548-5874-b488-5a62c1d9d0ca] 
WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
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 TrajectoryOptimization [c79d492b-0548-5874-b488-5a62c1d9d0ca].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
Precompiling RobotDynamics...
Info Given RobotDynamics was explicitly requested, output will be shown live 
WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
ERROR: Method overwriting is not permitted during Module precompilation. Use `__precompile__(false)` to opt-out of precompilation.
  ? RobotDynamics
[ Info: Precompiling RobotDynamics [38ceca67-d8d3-44e8-9852-78a5596522e1] 
WARNING: Method definition getrf!(AbstractArray{Float64, 2}, AbstractArray{Int64, 1}) in module LAPACK at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XG3Q6T6R70.0/build/default-honeycrisp-XG3Q6T6R70-0/julialang/julia-release-1-dot-11/usr/share/julia/stdlib/v1.11/LinearAlgebra/src/lapack.jl:580 overwritten in module RobotDynamics at /Users/victorqin/.julia/packages/RobotDynamics/OMNjA/src/utils.jl:34.
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 RobotDynamics [38ceca67-d8d3-44e8-9852-78a5596522e1].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.
WARNING: method definition for error_expansion! at /Users/victorqin/.julia/packages/TrajectoryOptimization/2yYec/src/abstract_constraint.jl:282 declares type variable C but does not use it.
WARNING: method definition for Problem at /Users/victorqin/.julia/packages/TrajectoryOptimization/2yYec/src/problem.jl:44 declares type variable Q but does not use it.
WARNING: method definition for rotation_type at /Users/victorqin/.julia/packages/Altro/jipqO/src/infeasible_model.jl:84 declares type variable D but does not use it.
WARNING: method definition for #ALTROSolver#172 at /Users/victorqin/.julia/packages/Altro/jipqO/src/altro/altro_solver.jl:38 declares type variable Q but does not use it.
Precompiling RobotZoo...
Info Given RobotZoo was explicitly requested, output will be shown live 
┌ Warning: Module RobotDynamics with build ID ffffffff-ffff-ffff-3c47-00b3b3f77281 is missing from the cache.
│ This may mean RobotDynamics [38ceca67-d8d3-44e8-9852-78a5596522e1] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:2541
  ? RobotDynamics
  ? RobotZoo
[ Info: Precompiling RobotZoo [74be38bb-dcc2-4b9e-baf3-d6373cd95f10] 
┌ Warning: Module RobotDynamics with build ID ffffffff-ffff-ffff-3c47-00b3b3f77281 is missing from the cache.
│ This may mean RobotDynamics [38ceca67-d8d3-44e8-9852-78a5596522e1] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:2541
┌ Info: Skipping precompilation due to precompilable error. Importing RobotZoo [74be38bb-dcc2-4b9e-baf3-d6373cd95f10].
└   exception = Error when precompiling module, potentially caused by a __precompile__(false) declaration in the module.

julia> using RobotDynamics

julia> Pkg.status("RobotDynamics")
Status `~/.julia/environments/v1.11/Project.toml`
  [38ceca67] RobotDynamics v0.4.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions