graphite-web: Unable to import cairo when installed by pip
It appears that simply pre-installing libcairo2-dev (as per #555) is insufficient for getting a working pycairo when installing via pip.
I’ve been upgrading Synthesize to use Ubuntu 14.04 and to pip install dependencies for carbon and graphite-web. Although pip install -r requirements.txt doesn’t complain about installing py2cairo, import cairo fails both in graphite-web and from the Python console. According to this post, py2cairo is intended to be installed with waf as is known to not work when installed via pip.
My current workaround is to also install Ubuntu’s python-cairo in parallel. Wondering if anyone else has stumbled across this and how we should adjust our pip instructions.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 23 (21 by maintainers)
Getting this in
0.9.xon Ubuntu 14.04: