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

[Python interface] Build fails with ModuleNotFoundError: No module named 'cmake' #408

Open
Adda0 opened this issue Jun 11, 2024 · 0 comments
Labels
For:binding The issue is related to bindings (python binding) For:devops The issue is related to devops (github actions, compilation, documentation, etc.)

Comments

@Adda0
Copy link
Collaborator

Adda0 commented Jun 11, 2024

Build of Python interface in Google Colaboratory fails with ModuleNotFoundError: No module named 'cmake'.

Reproduce:

Google Colaboratory with !cat /etc/*release:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

Run pip install libmata resulting with a pyproject.toml build fails, specifically pip install --force-reinstall -vvv "libmata==1.2.5":

Building libmata library
Traceback (most recent call last):
  File "/usr/local/bin/cmake", line 5, in <module>
    from cmake import cmake
ModuleNotFoundError: No module named 'cmake'
...

Temporary workaround:

pip uninstall cmake
pip install libmata
@Adda0 Adda0 added For:binding The issue is related to bindings (python binding) For:devops The issue is related to devops (github actions, compilation, documentation, etc.) labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For:binding The issue is related to bindings (python binding) For:devops The issue is related to devops (github actions, compilation, documentation, etc.)
Projects
None yet
Development

No branches or pull requests

1 participant