Skip to content
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

9.7.2996 python package fails to declare dependency on pandas #3889

Closed
dimbleby opened this issue Aug 10, 2023 · 1 comment
Closed

9.7.2996 python package fails to declare dependency on pandas #3889

dimbleby opened this issue Aug 10, 2023 · 1 comment
Assignees
Labels
Bug Lang: Python Python wrapper issue
Milestone

Comments

@dimbleby
Copy link

What version of OR-Tools and what language are you using?
Version: 9.7
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?
Ubuntu 22

What did you do?
Steps to reproduce the behavior:

$ pip install ortools
Collecting ortools
  Downloading ortools-9.7.2996-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (21.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 21.1/21.1 MB 9.9 MB/s eta 0:00:00
Collecting absl-py>=0.13
  Downloading absl_py-1.4.0-py3-none-any.whl (126 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 126.5/126.5 KB 13.6 MB/s eta 0:00:00
Collecting protobuf>=4.23.3
  Downloading protobuf-4.24.0-cp37-abi3-manylinux2014_x86_64.whl (311 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 311.6/311.6 KB 7.5 MB/s eta 0:00:00
Collecting numpy>=1.13.3
  Downloading numpy-1.25.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 10.5 MB/s eta 0:00:00
Installing collected packages: protobuf, numpy, absl-py, ortools
Successfully installed absl-py-1.4.0 numpy-1.25.2 ortools-9.7.2996 protobuf-4.24.0

$ python -c 'from ortools.sat.python import cp_model'

What did you expect to see

No error

What did you see instead?

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/dch/.virtualenvs/foo/lib/python3.10/site-packages/ortools/sat/python/cp_model.py", line 68, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'

Make sure you include information that can help us debug (full error message, model Proto).

Anything else we should know about your project / environment

No

@Mizux Mizux self-assigned this Aug 10, 2023
@Mizux
Copy link
Collaborator

Mizux commented Aug 10, 2023

Good catch ^^;

install_requires=[
'absl-py >= 0.13',
'numpy >= 1.13.3',
'protobuf >= 4.23.3',
],

@Mizux Mizux added Bug Lang: Python Python wrapper issue labels Aug 10, 2023
@Mizux Mizux added this to the v9.8 milestone Aug 10, 2023
leonlan added a commit to PyJobShop/PyJobShop that referenced this issue Sep 29, 2023
It's currently not included in or-tools dependency list, hence
we need to include it here explicitly. See
google/or-tools#3889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Lang: Python Python wrapper issue
Projects
Archived in project
Development

No branches or pull requests

2 participants