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

Build requirements not working #104

Open
sasq64 opened this issue Nov 24, 2022 · 2 comments
Open

Build requirements not working #104

sasq64 opened this issue Nov 24, 2022 · 2 comments

Comments

@sasq64
Copy link

sasq64 commented Nov 24, 2022

The build requirements seems to be downloaded by the install process, but not actually found when building;

git clone https://github.com/pybind/cmake_example.git
cd cmake_example
pip3 install .
...

      Traceback (most recent call last):
        File "/private/var/folders/.../overlay/bin/cmake", line 5, in <module>
          from cmake import cmake
      ModuleNotFoundError: No module named 'cmake'

If you manually install using pip3 install cmake it works after that.

@henryiii
Copy link
Collaborator

henryiii commented Nov 24, 2022

What system are you on? It’s actually getting CMake (/private/var/folders/.../overlay/bin/cmake) but not finding the package it came from, which is weird.

homebrew python 3.10 and 3.11 is currently broken when building not in a virtualenv, will be fixed next Pip update.

@sasq64
Copy link
Author

sasq64 commented Nov 24, 2022

Homebrew python 3.10.6, so I guess that's it.

Do you know of a work-around?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants