-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Error initializing DefaultRoutingSearchParameters: default '0.5' for field operations_research.sat.SatParameters.clause_cleanup_ratio of type 1 #4427
Comments
seems routing and sat are out of sync, will take a look ! Thx for the report |
Just in case it helps here are details for the error message: File "/usr/local/lib/python3.11/site-packages/ortools/constraint_solver/pywrapcp.py", line 4576, in DefaultRoutingSearchParameters
|
Strange this field is an or-tools/ortools/sat/sat_parameters.proto Lines 160 to 163 in 86d4c54
BTW your trace is full of strange character |
Thank you for taking care of that and for the hint of LOCALE set. I was not 100% why those characters are there, suspected something with locale set though. |
What version of OR-Tools and what language are you using?
Version: 9.11.4210
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
Routing Solver, CP-SAT,
What operating system (Linux, Windows, ...) and version?
MacOs (but all happening in a docker container with conjunction with django)
What did you do?
It's not easy to reproduce since it only happened for me in certain conditions:
More detailed epxlanation
I am able to successfully build the container and can get into it. If I run plain python and do the following it all works fine
python -c "from ortools.constraint_solver import pywrapcp; search_parameters = pywrapcp.DefaultRoutingSearchParameters(); print(search_parameters)"
However if I have run it within the code itself or within the Djangp shell (python manage.py shell) then I get this error
Error initializing DefaultRoutingSearchParameters: Couldn't build proto file into descriptor pool: Invalid default '0.5' for field operations_research.sat.SatParameters.clause_cleanup_ratio of type 1
Here is a print statemant
What did you expect to see
I would expect to just initialize the DefaultRoutingSearchParameters with its default parameter
What did you see instead?
Error initializing DefaultRoutingSearchParameters: Couldn't build proto file into descriptor pool: Invalid default '0.5' for field operations_research.sat.SatParameters.clause_cleanup_ratio of type 1
Make sure you include information that can help us debug (full error message, model Proto).
I am quiet inexperienced with it and I just really noticed that the only issue when this happened was within the Django context.
The text was updated successfully, but these errors were encountered: