Closed arnabanimesh closed 5 months ago
nothing I can do. This is the classic diamond dependency problem. The only viable option is to use the latest version (here of protobuf).
Which protobuf version should I use? I am already using v5.27.2
.
At the time of the build, it was 26.1.
You can try rebuilding locally. Can you check which version is dragged by pyarrow ? Laurent Perron | Operations Research | @.*** | (33) 1 42 68 53 00
Le mer. 26 juin 2024 à 14:14, Arnab Animesh Das @.***> a écrit :
Which protobuf version should I use? I am already using v5.27.2.
— Reply to this email directly, view it on GitHub https://github.com/google/or-tools/issues/4285#issuecomment-2191539002, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUPL3NQOAGGCXV6NC6DWKTZJKWBJAVCNFSM6AAAAABJ5UJEOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJRGUZTSMBQGI . You are receiving this because you modified the open/close state.Message ID: @.***>
I just checked out pyproject.toml of pyarrow. There is no mention of protobuf
which means it is not using protobuf
installed by pip
. If the C++ library of arrow
is using statically linked protobuf
internally it should not affect the external libraries, right? The final bytewise representation of pd.Series
should not depend on the protobuf
version used by pyarrow
(unless of course ABI of arrow
library changes).
What I think is that the series produced by 'pandas' using the pyarrow
engine is not supported by or-tools
and there are no error messages reflecting the same.
This issue doesn't seem to appear on Linux (python 3.10 on Ubuntu 22 lts wsl2), only on windows (tried with same version). So I don't think the issue is with protobuf.
What version of OR-Tools and what language are you using? Version: v9.10.4067 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? Windows
What did you do? Run this code once without installing
pyarrow
and another time after installingpyarrow
usingpip install
:What did you expect to see Run properly both times
What did you see instead? Runs properly when
pyarrow
is not installed, but doesn't run whenpyarrow
is installed.Make sure you include information that can help us debug (full error message, model Proto). NA
Anything else we should know about your project / environment NA