Skip to content

Instantly share code, notes, and snippets.

@lambdamusic
Created November 20, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lambdamusic/b685596d492335838098 to your computer and use it in GitHub Desktop.
Save lambdamusic/b685596d492335838098 to your computer and use it in GitHub Desktop.
Error installing pypoppler
>sudo pip install pypoppler
Collecting pypoppler
Downloading pypoppler-0.12.2.tar.gz
Complete output from command python setup.py egg_info:
Package pygobject-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `pygobject-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pygobject-2.0' found
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/tmp/pip-build-quTj5x/pypoppler/setup.py", line 80, in <module>
sources = ['poppler.c', 'popplermodule.c'],
File "/private/tmp/pip-build-quTj5x/pypoppler/setup.py", line 38, in __init__
for item, value in pkgconfig(*PACKAGES).items():
File "/private/tmp/pip-build-quTj5x/pypoppler/setup.py", line 30, in pkgconfig
for token in subprocess.check_output(['pkg-config', '--libs', '--cflags', ' '.join(packages)]).split():
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['pkg-config', '--libs', '--cflags', 'poppler-glib pygobject-2.0 pycairo']' returned non-zero exit status 1
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-quTj5x/pypoppler
@xilopaint
Copy link

I have the same problem! Have you found a solution?

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