Hi!
When you create a Function without names for inputs and outputs, such as:
Function('name', [x, u], [out1, out2])
Then, if you print the Function, you get something like this:
Function(name:(i0,i1)->(o0,o1) MXFunction)
These are the default names for the inputs and outputs.
After that, I created qpsol solver and printed the solver, since this kind of object is also a Function in Casadi. The result is something like:
Function(solver:(x0[80],p[],lbx[80],ubx[80],lbg[40],ubg[40],lam_x0[80],lam_g0[40])->(x[80],f,g[40],lam_x[80],lam_g[40],lam_p[]) MXFunction)
I noticed that 'p' is the second argument (i1). After that, I put a float as a parameter and it resulted in the same error as yours. =)
Good luck with your work!
PS: I'm not a developer