Open jaBote opened 2 years ago
Hi @jaBote thank you for the feedback! Could you post here some example code to reproduce this in our side? Also, just in case, could you update spyder to our latests release and check again?
Let us know!
Hello dalthviz:
Spyder says it's up to date.
Small steps to reproduce that error are simple (also happens with Gurobi models, tupledict, tuplelist, multidict). For example:
import gurobipy as g
var = g.tupledict()
var.update({"test":1})
Gives an error when trying to copy var from the variable explorer. Won't happen if the variable is empty (we didn't add anything to the tupledict in this case)
Thanks for the new info @jaBote ! Checking again this after setting up Gurobi I was able to reproduce the issue (I got a dialog message after trying to see the variable):
My guess is that we are not properly supporting getting the value of the Gurobi variables (which is not a problem if they are empty since there is no value to get in those cases).
I think this will need to be checked over spyder-kernels
. What do you think @ccordoba12 ?
It seems those objects can't be serialized, so that's why they can't copied nor browsed. So perhaps the best we can do in this case is catch the error and pass.
Description
What steps will reproduce the problem?
I just tried to copy a Gurobi multidict from the variable explorer and this just happened.
Traceback
Versions
Dependencies