What version of OR-Tools and what language are you using?
Version: v9.3
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT
What operating system (Linux, Windows, ...) and version?
macOS BigSur x86-64
What did you do?
- Download https://github.com/google/or-tools/blob/stable/ortools/sat/samples/simple_sat_program.py
- Insert
import tensorflow before from ortools.sat.python import cp_model
What did you expect to see
What did you see instead?
Anything else we should know about your project / environment
- any tensorflow versions between v2.2.0 and v2.8.0 (available for py38) can reproduce the issue.
- or-tools v9.2 works fine with any tensorflow versions.
- importing tensorflow after ortools works fine.
What version of OR-Tools and what language are you using?
Version: v9.3
Language: Python
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT
What operating system (Linux, Windows, ...) and version?
macOS BigSur x86-64
What did you do?
import tensorflowbeforefrom ortools.sat.python import cp_modelWhat did you expect to see
What did you see instead?
Anything else we should know about your project / environment