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

Problem in runnning the example #80

Open
yj-Tang opened this issue Oct 31, 2023 · 1 comment
Open

Problem in runnning the example #80

yj-Tang opened this issue Oct 31, 2023 · 1 comment

Comments

@yj-Tang
Copy link

yj-Tang commented Oct 31, 2023

Hi,

Thanks for sharing the nice package. However, I met with the error when I run the examples "Cartpole.ipynb" and "Quadrotor.ipynb":

The following package names could not be resolved:

  • QuadraticObjective (not found in project, manifest or registry)

I can not find QuadraticObject package in "Project.toml". Is the QuadraticObject a package which has not been published? Can you share it and update "Project.toml"?

Looking forward to your kind reply.

Best wishes,
Yujie

@SkylerHawkins
Copy link

Hey I was having this problem in both the files you mentioned when trying to precompile the Altro library. I just managed to fix it and all I had to do was change the compatible version of Altro from "0.3" to "0.4" in the examples/Project.toml file and run Pkg.update() afterwards.

However, now I'm getting a different error that reads "MethodError: Cannot convert an object of type. FiniteDiff.JacobianCache{Vector{Float64}, Vector{Float64}, Vector{Float64}, UnitRange{Int64}, Nothing, Val{:forward}(), Float64}", but nevertheless I was able to precompile and import Altro so that part of the problem was fixed.

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