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

"ERROR: Failed building wheel for praat-parselmouth" on Ubuntu #98

Open
yayuanli opened this issue Jul 7, 2023 · 1 comment
Open

"ERROR: Failed building wheel for praat-parselmouth" on Ubuntu #98

yayuanli opened this issue Jul 7, 2023 · 1 comment

Comments

@yayuanli
Copy link

yayuanli commented Jul 7, 2023

Hi community,

I came across ERROR: Failed building wheel for praat-parselmouth when I do pip install praat-parselmouth or pip install praat-parselmouth==0.4.2.

OS: Ubuntu-22.04.2
Python: 3.10.6

Full output (too long to fit here): google doc

Any idea why this happened and how to solve it? I will appreciate any discussion.

Thank you

@YannickJadoul
Copy link
Owner

Hi @yayuanli! Is there any reason you're building the wheel yourself, rather than using the binary wheels on PyPI? Are you on some particular platform (which might also explain the error)?

From what I can see from the error (thanks for including the full, long error message; extremely useful!), the X11/Xlib.h header is lacking, so one way of solving this is to sudo apt install libx11-dev on your Ubuntu.

However, the larger question/issue is why this dependency is there. I think it's a leftover from using the Praat code, and I actually removed it at some point on my development branch: 6a94d3b. But it seems this hasn't made it into a release yet (as I've hardly had time to work on Parselmouth over the last 2 years, so haven't found time to make new minor release). At any rate it's another option, if you do not wish to install libx11-dev: download the source code of the latest release (https://github.com/YannickJadoul/Parselmouth/tree/v0.4.3), comment out this sendpraat.c in parselmouth/praat/sys/CMakeLists.txt (like in 6a94d3b), and pip install that adapted source folder.

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