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

Unable to install scaper through pip on macOS #154

Open
Lilibar-s opened this issue Feb 28, 2024 · 4 comments
Open

Unable to install scaper through pip on macOS #154

Lilibar-s opened this issue Feb 28, 2024 · 4 comments

Comments

@Lilibar-s
Copy link

I ran 'pip install scaper' in the terminal, but got error:

...
creating build/temp.macosx-13-arm64-cpython-311/soxbindings
creating build/temp.macosx-13-arm64-cpython-311/soxbindings/ext
clang -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -DVERSION_INFO="1.2.3" -I/private/var/folders/0z/5d51k7514rs6n946f_fq2dn40000gn/T/pip-install-5stcme3d/soxbindings_f68683401cc9431bbf6249605278b8b8/.eggs/pybind11-2.11.1-py3.11.egg/pybind11/include -I/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.11/include/python3.11 -c soxbindings/ext/sox.cpp -o build/temp.macosx-13-arm64-cpython-311/soxbindings/ext/sox.o -stdlib=libc++ -mmacosx-version-min=10.7 -lsox -std=c++17 -fvisibility=hidden
clang: warning: -lsox: 'linker' input unused [-Wunused-command-line-argument]
soxbindings/ext/sox.cpp:4:10: fatal error: 'sox.h' file not found
#include <sox.h>
^~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for soxbindings
Running setup.py clean for soxbindings
Failed to build soxbindings
ERROR: Could not build wheels for soxbindings, which is required to install pyproject.toml-based projects

macOS Ventura 13.4
Python 3.11.7

@MATTYGILO
Copy link

@Lilibar-s Did you fix this by any chance?

@MATTYGILO
Copy link

I fixed it by creating a condo env

brew install ffmpeg
conda install -c conda-forge sox
pip install scaper

@marco-giordano
Copy link

I'm having the same problem on Mac osx 11.7.10

@marco-giordano
Copy link

I fixed it by creating a condo env

brew install ffmpeg
conda install -c conda-forge sox
pip install scaper

This actually worked for me.

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