UnicodeDecodeError when i debug the programm with Gurobi
AnsweredAfter installing the Gurobi ans gurobipy package, when i debug the program, it raise an error which is shown as follows:
Traceback (most recent call last):
File "extern.pxi", line 19, in gurobipy.__bytestostring
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 28: invalid start byte
however, when i directly run the program, it can output the result (although the error is raised). when debugging, programm cannot run. The error happens when i run the 'model = Model()'.
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Jiahui,
The error you see is usually raised when one tries to encode a non-ascii character. Could you post a minimal working example of the code producing the error?
Best regards,
Jaromił0 -
Hi,Jaromił:
Thanks for your reply. I have addressed this issue. I found the path of conda and Gurobi contain some Chinese character, which cause the error in program. Changing it to english makes sense.
Best regards!
Jiahui Duan
0
Post is closed for comments.
Comments
3 comments