Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Installation: Failed building wheel for praat-parselmouth (Building CXX object)

129 views
Skip to first unread message

Carina Ufer

unread,
Mar 6, 2024, 8:39:35 AM3/6/24
to Parselmouth
Hi there,
when installing praat-parselmouth in my conda env I get an error message saying that build wheels for praat-parselmouth failed (python version 3.12.2).
More specifically, the error seems to occur when the CXX object should be build:
' [219/1428] Building CXX object extern/fmt/CMakeFiles/fmt.dir/src/format.cc.o
      ninja: build stopped: subcommand failed.
      Traceback (most recent call last):
        File "/export/tmp/pip-build-env-xbamq0y6/overlay/lib/python3.12/site-packages/skbuild/setuptools_wrap.py", line 674, in setup
          cmkr.make(make_args, install_target=cmake_install_target, env=env)
        File "/export/tmp/pip-build-env-xbamq0y6/overlay/lib/python3.12/site-packages/skbuild/cmaker.py", line 697, in make
          self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
        File "/export/tmp/pip-build-env-xbamq0y6/overlay/lib/python3.12/site-packages/skbuild/cmaker.py", line 742, in make_impl
          raise SKBuildError(msg)

      An error occurred while building with CMake.
        Command:
          /export/tmp/pip-build-env-xbamq0y6/overlay/lib/python3.12/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
        Install target:
          install
        Source directory:
          /export/tmp/pip-install-26q8cjud/praat-parselmouth_9f9194ad0d0b41218b411ea33d5dbe6f
        Working directory:
          /export/tmp/pip-install-26q8cjud/praat-parselmouth_9f9194ad0d0b41218b411ea33d5dbe6f/_skbuild/linux-x86_64-3.12/cmake-build
      Please check the install target is valid and see CMake's output for more information.'
Unfortunately I could not find anything related in the internet. What could be the problem and how could I solve it?
Any help is appreciated!
Carina

yannick...@gmail.com

unread,
Mar 6, 2024, 10:18:35 AM3/6/24
to Parselmouth
Hi Carina

I'm not seeing the error message in the current output, but something goes wrong compiling, it seems.
However, I'm creating an uploading the pre-compiled Python wheels for Python 3.12 (Parselmouth 0.4.3) this week.

One thing you could do, meanwhile, is to go here, and download the latest wheels manually: https://github.com/YannickJadoul/Parselmouth/actions/runs/8144304768
Download the "Wheels" artifact (https://github.com/YannickJadoul/Parselmouth/actions/runs/8144304768/artifacts/1295873438), extract the one you want (e.g., for macOS (new M1 etc. chips), Python 3.12: praat_parselmouth-0.4.3-cp312-cp312-macosx_11_0_arm64.whl), and run `pip install <that_extracted_wheel>.whl`.
I can also let you know when the wheels are on PyPI and can be installed normally with pip, later this week.

Alternatively, if you show me more of the error message (i.e., the location where the actual compilation error is shown), I can see if I better understand the error and what goes wrong!

Kind regards
Yannick

yannick...@gmail.com

unread,
Mar 9, 2024, 6:13:28 PM3/9/24
to Parselmouth
Dear Carina

I've just uploaded the Parselmouth 0.4.3 wheels for Python 3.12 to PyPI. You should now be able to download and install the pre-built wheels, and hopefully not run into this error anymore.

Kind regards
Yannick
Reply all
Reply to author
Forward
0 new messages