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

mypy-protobuf isn't found #2814

Closed
yurivict opened this issue Oct 5, 2021 · 1 comment
Closed

mypy-protobuf isn't found #2814

yurivict opened this issue Oct 5, 2021 · 1 comment
Assignees
Labels
Bug Build: CMake CMake based build issue Lang: Python Python wrapper issue
Projects
Milestone

Comments

@yurivict
Copy link

yurivict commented Oct 5, 2021

What version of OR-Tools and what language are you using?
Version: 9.1
Language: Python

Relevant line:

COMMAND ${Python3_EXECUTABLE} -c "import ${MODULE_NAME}; print(${MODULE_NAME}.__version__)"

configure fails:

-- Found Python3: /usr/local/bin/python3.8 (found suitable exact version "3.8.12") found components: Interpreter Development.Module
CMake Warning at cmake/python.cmake:42 (message):
  Can't find python module "mypy-protobuf", install it using pip...
Call Stack (most recent call first):
  cmake/python.cmake:67 (search_python_module)
  CMakeLists.txt:251 (include)

This is because py38-mypy-protobuf-2.10 is installed as mypy_protobuf, and it tries to import mypy-protobuf. I think the same problem exists with absl-py which is installed as absl.

@Mizux
Copy link
Collaborator

Mizux commented Oct 5, 2021

So I need to fix the function to take two arguments MODULE_NAME PACKAGE_NAME ...

Thx for the report !

@Mizux Mizux added this to the v9.2 milestone Oct 5, 2021
@Mizux Mizux added this to To do in ToDo via automation Oct 5, 2021
@Mizux Mizux added Bug Build: CMake CMake based build issue Lang: Python Python wrapper issue labels Oct 5, 2021
@Mizux Mizux self-assigned this Oct 5, 2021
@Mizux Mizux closed this as completed in 3bbe33d Oct 5, 2021
ToDo automation moved this from To do to Done Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Build: CMake CMake based build issue Lang: Python Python wrapper issue
Projects
ToDo
  
Done
Development

No branches or pull requests

2 participants