Installing on OSX 10.9
Created by: todicus
Hello, I'm trying to install this library on Mavricks. Using pip install av, I get the following error:
octopro:PyAV octotod$ pip install av Downloading/unpacking av Downloading av-0.1.0.tar.gz (601kB): 601kB downloaded Running setup.py (path:/private/var/folders/vf/hvj8p44d0ln7tszd1jd4ynl00000gn/T/pip_build_octotod/av/setup.py) egg_info for package av Traceback (most recent call last): File "", line 17, in File "/private/var/folders/vf/hvj8p44d0ln7tszd1jd4ynl00000gn/T/pip_build_octotod/av/setup.py", line 84, in config = pkg_config(name) File "/private/var/folders/vf/hvj8p44d0ln7tszd1jd4ynl00000gn/T/pip_build_octotod/av/setup.py", line 15, in pkg_config proc = Popen(['pkg-config', '--cflags', '--libs', name], stdout=PIPE, stderr=PIPE) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Complete output from command python setup.py egg_info: Traceback (most recent call last):
File "", line 17, in
File "/private/var/folders/vf/hvj8p44d0ln7tszd1jd4ynl00000gn/T/pip_build_octotod/av/setup.py", line 84, in
config = pkg_config(name)
File "/private/var/folders/vf/hvj8p44d0ln7tszd1jd4ynl00000gn/T/pip_build_octotod/av/setup.py", line 15, in pkg_config
proc = Popen(['pkg-config', '--cflags', '--libs', name], stdout=PIPE, stderr=PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I tried building from source, and had to alter the line:
pip install cython pil
to:
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install cython --allow-external pil
However, make gives a similar error to the pip method:
(venv)octopro:PyAV octotod$ make CFLAGS=-O0 python setup.py build_ext --inplace --debug Traceback (most recent call last): File "setup.py", line 51, in config = pkg_config(name) File "setup.py", line 30, in pkg_config proc = Popen(['pkg-config', '--cflags', '--libs', name], stdout=PIPE, stderr=PIPE) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 711, in init errread, errwrite) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1308, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory