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

Building wheel for pocketsphinx5 (pyproject.toml) did not run successfully. #281

Open
alekione opened this issue Aug 19, 2022 · 7 comments

Comments

@alekione
Copy link

I was tring to install it as you've suggested in README.md file but i got this error. Can you please help me out...
I was running the command pip install .

Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pocketsphinx5
  Building wheel for pocketsphinx5 (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pocketsphinx5 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
        File "/tmp/pip-build-env-sw9cx83b/overlay/local/lib/python3.10/dist-packages/skbuild/setuptools_wrap.py", line 613, in setup
          cmkr = cmaker.CMaker(cmake_executable)
        File "/tmp/pip-build-env-sw9cx83b/overlay/local/lib/python3.10/dist-packages/skbuild/cmaker.py", line 141, in __init__
          self.cmake_version = get_cmake_version(self.cmake_executable)
        File "/tmp/pip-build-env-sw9cx83b/overlay/local/lib/python3.10/dist-packages/skbuild/cmaker.py", line 95, in get_cmake_version
          raise SKBuildError(
      Traceback (most recent call last):
      
      Problem with the CMake installation, aborting build. CMake executable is cmake
      [end of output]
@alekione
Copy link
Author

I,m using kali-linux 5.18.0-kali5-amd64

@dhdaines
Copy link
Contributor

Hi, is that really all the output that it gives you?

I don't really know what kali-linux is, but it seems that it is not possible to use scikit-build on it, in which case this is either a bug in kali-linux or in scikit-build.

Please try to install scikit-build and build one of the sample projects, and if that works, then perhaps there is a problem with PocketSphinx.

@ZouFurong
Copy link

hi, were you able to solve this problem? I got the same issue today

@dhdaines
Copy link
Contributor

dhdaines commented May 2, 2024

hi, were you able to solve this problem? I got the same issue today

What OS are you using? It works on Ubuntu 22.04, 23.10, MacOS 12 and 13, and Windows 10.

From what I know about Kali Linux, which is not much, you shouldn't expect to be able to compile/install things on it, for some surely very important reasons (though this didn't seem to prevent it being vulnerable to the recent xz backdoor)

@dhdaines
Copy link
Contributor

dhdaines commented May 2, 2024

Also make sure you are using the latest version (5.0.3 or the source from git) as the switch to skbuild-core seems to have resolved a number of issues.

@ZouFurong
Copy link

Thank you for you information! Unfortunately I'm using Windows 11 pro.

@dhdaines
Copy link
Contributor

dhdaines commented May 2, 2024

Hmmm... can you use the binary packages from PyPI? pip install pocketsphinx ought to work at least.

Building on Windows can be a bit of a black art in general.

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

No branches or pull requests

3 participants