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

elkai install failed #801

Open
stone7300 opened this issue Aug 28, 2024 · 8 comments
Open

elkai install failed #801

stone7300 opened this issue Aug 28, 2024 · 8 comments

Comments

@stone7300
Copy link

stone7300 commented Aug 28, 2024

Problem description

CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

  *** CMake configuration failed
  [end of output]

Tasks

No tasks being tracked yet.
@abravalheri
Copy link

To be able to help we need a complete description that explains what trouble the user is getting.
I recommend adding the error messages and stack traces to the issue text.
Adding a minimal reproducer is even better and in some cases fundamental...

@henryiii
Copy link
Contributor

What backend (modified setuptools, scikit-build (classic), scikit-build-core) would be useful info too.

@stone7300
Copy link
Author

pip install elkai
Collecting elkai
Using cached elkai-2.0.1.tar.gz (227 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: elkai
Building wheel for elkai (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for elkai (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
*** scikit-build-core 0.10.5 using CMake 3.30.2 (wheel)
*** Configuring CMake...
2024-08-30 09:13:28,380 - scikit_build_core - WARNING - Can't find a Python library, got libdir=None, ldlibrary=None, multiarch=None, masd=None
loading initial cache file C:\Users\ADMINI~1\AppData\Local\Temp\tmpjbshhotv\build\CMakeInit.txt
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Running

     'nmake' '-?'

    failed with:

     no such file or directory


  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!

  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for elkai
Failed to build elkai
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (elkai)

@stone7300
Copy link
Author

I used python version is 3.12.4,Does it too new?

@stone7300
Copy link
Author

I am waiting for your answer in line. Thank you!

@henryiii
Copy link
Contributor

There are pre-built wheels for Python 3.7-3.11, so using Python 3.11 would work without trying to build the library. I believe the message you are seeing (NMake not found) is because CMake couldn't find the MSVC compiler on your system. Do you have Visual Studio installed? You need that to build code. The library you are trying to build doesn't seem to have been touched in a year, but you could try opening an issue there to get Python 3.12 (and 3.13) wheels built. The author does seem to have responded quickly to the last request for missing wheels.

Binary wheel list here: https://pypi.org/project/elkai/#files

Repo here: https://github.com/fikisipi/elkai

@stone7300
Copy link
Author

pip install elkai
Collecting elkai
Downloading elkai-2.0.1-cp310-cp310-win_amd64.whl (158 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.9/158.9 kB 2.4 MB/s eta 0:00:00
Installing collected packages: elkai
Successfully installed elkai-2.0.1

[notice] A new release of pip available: 22.3.1 -> 24.2
[notice] To update, run: python.exe -m pip install --upgrade pip
I downloaded another edition of python 3.10.10,
Does it mean the package has been installed successfully?

@henryiii
Copy link
Contributor

Yes, "Successfully installed elkai-2.0.1" means it was successfully installed.

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