-
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
Segmentation fault if pandas imported before ortools #3308
Comments
Does it works with 1.4.2 ? |
I have two python environments (python 3.8.12, 3.9.7) and on both I see this problem, and also if I update pandas to 1.4.2. However I notice that there are differences in dependencies pulled -- e.g. I have I will investigate further. |
FYI last ortools v9.3.10497 was built against protobuf 3.19.4 so if you import ortools first then symbols will be read from the libortools.so aka will be 3.19.4 while if you import panda first you may end up with protobuf 3.20.1 symbols (according to your investigation). |
I did a little more investigation and managed to get the following minimal environment that fails (python 3.8.12):
Without With the above, currently pip installs:
|
If that helps investigating, I am also seeing this issue with the following: What version of OR-Tools and what language are you using? Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi) What operating system (Linux, Windows, ...) and version? Running the exact same code and package versions inside a docker container running Ubuntu 20.04.5, I don't get the problem. |
Duplicate of #3230. Incompatible protobuf versions being pulled. |
@lperron is there a fix for this? I seem to be getting this issue when running unit tests that use ORTools but not otherwise. |
Not until tensorflow upgrades to the latest version of protobuf.
Laurent Perron | Operations Research | ***@***.*** | (33) 1 42 68 53
00
Le lun. 30 janv. 2023 à 14:42, Christopher Collins ***@***.***>
a écrit :
… @lperron <https://github.com/lperron> is there a fix for this? I seem to
be getting this issue when running unit tests that use ORTools but not
otherwise.
—
Reply to this email directly, view it on GitHub
<#3308 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3J6LKMS542XD3C2Z2LWU7ALJANCNFSM5XCLGREQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What version of OR-Tools and what language are you using?
Version: 9.3.10497
Language: python 3.8.12
Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)
CP-SAT
What operating system (Linux, Windows, ...) and version?
macOS 12.3.1
What did you do?
Import pandas (1.3.4) in a codebase that uses ortools. E.g. "solve_with_time_limit_sample_sat" sample, with
import pandas
added to the top)https://github.com/google/or-tools/blob/stable/ortools/sat/samples/solve_with_time_limit_sample_sat.py
What did you expect to see
No segmentation fault
What did you see instead?
A segmentation fault
Small failing example:
But this works fine:
And so does this:
Stack backtrace
From
lldb
:The text was updated successfully, but these errors were encountered: