41768

No module named cairo - Mac

Question:

Why is it so effin' hard? Seems to be an ever-present issue..solved unclearly.

<ol><li>

Searched on multiple github <a href="https://github.com/graphite-project/graphite-web/issues/825" rel="nofollow">pages</a>, advised to use import cairocffi as cairo instead, not working for me.

</li> <li>

Some more on Stackoverflow, to add sys.path.insert(0, "//anaconda/pkgs/cairo-1.14.10-0") or something. But in fact, sys.path returns the directory anyway.

</li> </ol>

Quite sure installation done correctly as I can see under conda list.

<a href="https://i.stack.imgur.com/mpL00.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/mpL00.png" data-original="https://i.stack.imgur.com/mpL00.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Bad feeling this is gonna take a whole lot longer due to my little understanding of the os environment.

Can someone save me, all I want is to test igraph.plot

<strong>Update</strong> brew install py2cairo somehow helped PYTOHNPATH on the terminal to figure out the library location, but it still fails to locate it in eclipse.

Of course added on Preference manually..why can't it import?

Answer1:

import cairocffi as cairo did it at the end.

Had to install cairocffi, on top of all the manual reinstall. (I had brew install, Mac still accepted the install)

If you want to plot using igraph, no need to hassle with importing any of these libraries explicitly.

Related thread on superuser. Posted some useful references some may come across.

Recommend

  • Error When Starting Wildfly 10 on Linux FileNotFoundException
  • R— repeating linear regression in a large dataset
  • Installing Pytorch on Windows 10
  • conda update failed in windows 10
  • Cannot get table data - HTML
  • Can an EJB be called from a desktop application?
  • Hosting web app bundled with webpack
  • Ensure Ruby version in Nix Dev Environment when using latest version
  • Python kernel dies when importing tensorflow 1.7
  • Opening a corrupted PyTables HDF5 file
  • Installing Python modules with Anaconda or Canopy
  • CUDA NSight is not installed with CUDA 5.0 installation file on Windows 8? [closed]
  • Add Windows Feature from C#
  • Regex for Specific Tag
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • How can we prepend rows to a react native list-view?
  • Web.config system.webserver errors
  • What's the purpose of QString?
  • zope_i18n_compile_mo_files doesn't work on a Zeo configuration
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • How to suppress a dialog
  • Jackson Parser: ignore deserializing for type mismatch
  • Checking free space on FTP server
  • Change Inet root folder for iis 7
  • What is the “return” in scheme?
  • PHP - How to update data to MySQL when click a radio button
  • script to move all files from one location to another location
  • Fill an image in a square container while keeping aspect ratio
  • ILMerge & Keep Assembly Name
  • Join two tables and save into third-sql
  • How to handle AllServersUnavailable Exception
  • Updated Ionic CLI but shows previous version (Windows)
  • Symfony2: How to get request parameter
  • Rearranging Cells in UITableView Bug & Saving Changes
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • using conditional logic : check if record exists; if it does, update it, if not, create it
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • What are the advantages and disadvantages of reading an entire file into a single String as opposed
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • Reading document lines to the user (python)