Error Was No Module Named Cairo
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 285 Star 3,219 Fork 937 graphite-project/graphite-web Code Issues 252 Pull requests 32 Projects 0 Pulse Graphs New issue Unable importerror: no module named cairo cairosvg to import cairo when installed by pip #825 Closed obfuscurity opened this Issue python install cairo Aug 10, 2014 · 23 comments Projects None yet Labels packaging Milestone 0.9.13 Assignees No one meld importerror: no module named cairo assigned 6 participants Graphite Project member obfuscurity commented Aug 10, 2014 It appears that simply pre-installing libcairo2-dev (as per #555) is insufficient for getting a working pycairo when installing via pip. I've
Pip Install Cairo
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 no module named cairo python Ubuntu's python-cairo in parallel. Wondering if anyone else has stumbled across this and how we should adjust our pip instructions. obfuscurity added this to the 0.9.13 milestone Aug 10, 2014 pcn commented Aug 10, 2014 The easiest suggestion is to fail if libcairo.so.2 can't be loaded. Adding cdll.LoadLibrary('libcairo.so.2') as a test should determine whether it's installed correctly, failure can be dealt with by printing the instructions for the specific distro/platform. ryneeverett commented Aug 15, 2014 I ran into the same issue and solution a month ago. Arch's python-cairo also works fine. Graphite Project member brutasse commented Aug 18, 2014 The easiest way to have working cairo bindings is to use cairocffi. It's pip-installable (requires libcairo2 of course) and works with modern python versions. We should recommend that instead of the py2cairo / pycairo bindings. That's also the approach we currently use for travis. Graphite Project member drawks commented Aug 18, 2014 both cairocffi and py2cairo have identical (at least for our purpose) API. py2cairo is notoriously hard to build install from source, but is available from upstream distro maintainers on more platforms. Cairocffi is typically easier to install but has an additional non-python depen
here for a quick overview of the site Help Center Detailed answers to any questions you might have py2cairo Meta Discuss the workings and policies of this site About Us
Importerror No Module Named _cairo
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads
Install Pycairo Mac
with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, https://github.com/graphite-project/graphite-web/issues/825 just like you, helping each other. Join them; it only takes a minute: Sign up When a python module (cairo) is installed successfully but fails to import in python, what could be the issue? up vote 0 down vote favorite When a python module is installed successfully but fails to import in python (via PyCharm IDE), http://stackoverflow.com/questions/24346472/when-a-python-module-cairo-is-installed-successfully-but-fails-to-import-in-py what could be the issue? What checklist should I follow to diagnose the problem in this case and in the future when a module installs but later fails to import? For this specific case, I installed a vector graphics module for Python called cairo. http://cairographics.org/releases/pycairo-1.8.8.tar.gz See the successful install below: sudo python setup.py install cairo >= 1.8.8 detected creating pycairo.pc creating src/config.h running install running build running build_ext running install_lib creating /Library/Python/2.7/site-packages/cairo copying build/lib.macosx-10.9-intel-2.7/cairo/_cairo.so -> /Library/Python/2.7/site-packages/cairo running install_data creating /System/Library/Frameworks/Python.framework/Versions/2.7/include/pycairo copying src/pycairo.h -> /System/Library/Frameworks/Python.framework/Versions/2.7/include/pycairo copying pycairo.pc -> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig running install_egg_info Writing /Library/Python/2.7/site-packages/pycairo-1.8.8-py2.7.egg-info Everything seemed to proceed smoothly, but later this module failed to import when called for in Python: ImportError: No module named cairo. One possibility is that it was installed in the wrong directory - /Library/Python/2.7/site-packages/. Another possibility is that I should be somehow telling python the location of the module explicitly. i.e.: /Library/Python/2.7/site-packages/cairo, based on the output of the install script found above. It is quite odd, because cairo is present in /Library/Python/2.7/site-package
Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Software ImportError: No module named http://www.linuxquestions.org/questions/linux-software-2/importerror-no-module-named-cairo-599350/ cairo User Name Remember Me? Password Linux - Software This forum is http://askubuntu.com/questions/388029/gedit-and-ssh-importerror-no-module-named-cairo for Software issues. Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. Notices Welcome to LinuxQuestions.org, a friendly and active Linux Community. You are currently viewing LQ as a guest. By joining our community you no module will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: Site Howto no module named | Site FAQ | Sitemap | Register Now If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here. Having a problem logging in? Please visit this page to clear all LQ-related cookies. Introduction to Linux - A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own. Click Here to receive this Complete Guide absolutely free. Search this Thread 11-13-2007, 11:47 AM #1 ma
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top gedit and ssh “ImportError: No module named 'cairo'” up vote 1 down vote favorite Short description: I want to run an instance of gedit, provided by my Ubuntu 13.10 "Server" on another Computer. It works via ssh -X, but some plugins cannot be installed (in my case it is 'Snippets'). After installing gedit and gedit-plugins none of the plugins worked. I installed dbus-x11 and most of them worked - "Snippets", unfortunately, still doesn't. Bash says: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/gedit/plugins/snippets/__init__.py", line 18, in