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

CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred! #124

Closed
CwhGIS opened this issue Sep 26, 2023 · 7 comments

Comments

@CwhGIS
Copy link

CwhGIS commented Sep 26, 2023

Greetings,
I am currently endeavoring to submit a pull request for the swmmio library. However, I encountered an error in line 286 on macOS, which has resulted in the failure to build wheels for swmm-toolkit (version 0.10.0). Unfortunately, the nature of the error is not clear to me. Could you kindly provide some suggestions or guidance on how to address this issue?
Thank you for your assistance.

Moved some info from GH Issue Subject to here:

CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. -- Configuring incomplete, errors occurred!

@CwhGIS
Copy link
Author

CwhGIS commented Sep 26, 2023

It appears to be an issue related to swmm-toolkit (pyproject.toml), but I am not certain yet.
image

@CwhGIS
Copy link
Author

CwhGIS commented Sep 26, 2023

image

@bemcdonnell
Copy link
Member

@karosc, this might be only the Mac build failing. I reran one for windows in the latest SWMMIO PR and it ran.

@CwhGIS
Copy link
Author

CwhGIS commented Sep 26, 2023

@bemcdonnell, It appears that we are encountering an issue related to "CMAKE_MAKE_PROGRAM." At this moment, I'm uncertain whether this issue is associated with scikit-build or if there might be a problem with the definition of the path.
image
image

@bemcdonnell
Copy link
Member

@chuwenhao123 Our CI services in SWMMIO are configured to cancel all builds when one fails. We've made some recent changes to the mac build workflow here in swmm-python and I'm thinking that's the issue. I am rerunning them by hand to see which ones I can get to pass. So far we are seeing green lights on Windows/Ubuntu.

@karosc, Have a peek at this: pyswmm/swmmio#205

with swmmio we can bump down the pyswmm version as an option and/or we can fix the build workflow. The former lets the SWMMIO PR pass, the latter still needs to be done regardless. (@karosc @aerispaha, thoughts?)

@bemcdonnell
Copy link
Member

@karosc Python-3.10 mac builds (how i am feeling 🤪)

@karosc
Copy link
Member

karosc commented Sep 26, 2023

@bemcdonnell and @chuwenhao123 , we will need to add ninja to the pyproject.toml build requirements for this to build on python 3.7 since we don't build wheels for that version anymore.

I'd also recommend that swmmio deprecate python 3.7 unit tests since 3.7 has reached end of life.

I can add the ninja dependency later today and issues 0.15.3 release, but if you move things forward without removing the 3.7 tests should solve the unit test issues.

@karosc karosc closed this as completed Sep 26, 2023
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

3 participants