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
Protobuf version problem with Python #620
Comments
Hi, Is it possible for you to use the last ortools package ? side note: 6.6.4656 was also broken on mac (wrong loader path for pywraplp if I remember well) so we release https://pypi.python.org/pypi/ortools/6.6.4659 for MacOS... As a last resort, rebuild OR-Tools locally and create your own wheel package... |
Wow, that was quick! Thanks for responding! I tried 6.7.4957 by just doing
Unfortunately, 6.7.4957 still doesn't work - same thing happens as above! What did work for me is building ortools with
Would be a lot nicer to just use |
To build packages I used the script https://github.com/google/or-tools/blob/master/tools/build_delivery_unix.sh Protobuf is downloaded in dependencies/sources/protobuf-3.5.0 according to Dependencies.txt file. then after you have some: So you can debug with Is it possible that you have an old protobuf (3.0.0) version in your path/DYLD_LIBRARY_PATH ? note: CMake port is still experimental, happy you manage to build on MacOS with it... |
Same problem. I suspect the problem is this amusing line
The version is pinned to |
@mmcloughlin Wow good catch ! patch in progress then I'll have to rebuild python package I guess... |
Affects c++ too FYI. |
FYI Release 6.7.4973 aka tag v6.7.1 in progress... |
The dependency problem with the stringent version of Protobuf still persists
..... Note the various different versions of ortools that are being mentioned.
ortools==6.5.4527
Any suggestions ? |
I think your problem is your MacOS version we are currently provided this macos pypi package Which version of python did you use ? which version of MacOS ? |
Mac: OSX El Capitan (10.11.6 (15G1510) |
Just to confirm are you on a 64bits distro ? what is the return of:
|
Yes, 64 bits: python version: Python 3.6.4 I went back to or-tools version 6.5.4527 to get things running again. |
FWIW, I still couldn't get this to work with 6.7.4973. I had to revert to a lower version of protobuf: $ pip install protobuf==3.5.1
Installing collected packages: protobuf
Found existing installation: protobuf 3.6.1
Uninstalling protobuf-3.6.1:
Successfully uninstalled protobuf-3.6.1
Successfully installed protobuf-3.5.1 |
v6.7 was based on protobuf 3.5.1 while started form v6.9 we now rely on protobuf 3.6 |
I met a similar error using torch
Solved by installing the required version directly using pip:
|
We have a Python project which depends on ortools 6.6.4656. Most of the team are on Ubuntu machines, it works fine for them. I'm on a Mac, running macOS 10.13.3 . Whenever I try to run a script that depends on ortools, the process fails and I get the following output in the console:
The versions of
ortools
andprotobuf
I actually have installed:When I
pip install
our project dependencies,pip
downloads the following wheel for ortools:Downloading ortools-6.6.4656-cp35-cp35m-macosx_10_6_intel.whl (7.4MB)
I'm not sure where the problem lies or how I should proceed. Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered: