Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6116735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:14:26+00:00 2026-05-23T15:14:26+00:00

I installed igraph for python in my mac but I can’t import it. First

  • 0

I installed igraph for python in my mac but I can’t import it. First I installed C core library, then I proceeded with the instalation for python, by doing:

python setup.py build
python setup.py install

Everything seemed to work fine but I can’t import igraph from python shell. Just to clear up, I’m not inside igraph source code’s folder. And I got this error:

import igraph
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "build/bdist.macosx-10.3-fat/egg/igraph/__init__.py", line 30, in <module>

  File "build/bdist.macosx-10.3-fat/egg/igraph/core.py", line 7, in <module>
  File "build/bdist.macosx-10.3-fat/egg/igraph/core.py", line 6, in __bootstrap__
ImportError: dlopen(/Users/*****/.python-eggs/python_igraph-0.5.4-py2.7-macosx-10.3-fat.egg-tmp/igraph/core.so, 2): Symbol not found: _igraph_vector_destroy
  Referenced from: /Users/*****/.python-eggs/python_igraph-0.5.4-py2.7-macosx-10.3-fat.egg-tmp/igraph/core.so
  Expected in: dynamic lookup

I replaced my folder’s name for *, so don’t consider it.

I’m running python 2.7 over OS 10.6.7. So there’s no pre-compiled version of igraph avaliable (2.5 and 2.6 only). Has this error anything to do with the python version I’m running?
If possible, how can I work this out?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:14:26+00:00Added an answer on May 23, 2026 at 3:14 pm

    I think the problem is that igraph is installed in /usr/local/lib/libigraph.dylib, but the linker cannot find it when Python tries to load the C core of the igraph module because /usr/local/lib is not on the default library path in Mac OS X. (At least I think so).

    First, please check whether libigraph.dylib is really in /usr/local/lib – it should be there. After that, try this:

    DYLD_LIBRARY_PATH=/usr/local/lib python -m igraph.test.__init__
    

    This should instruct the linker to look around in /usr/local/lib as well as the default places, and then run Python with the entire igraph test suite.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apparently libigraph and python-igraph are the only packages on earth that can't be installed
I installed Python Mock module using PIP. When I try to import mock running
I installed the plugin for python and it detects the python code, but how
I installed Python 2.7 on my mac from source. Before, I could use the
I installed Python 3.0 and now I can't get my code to work. Does
I installed win32api and can import and make calls to it from the command
I installed subclipse in eclipse, but I get an error message Expected format '3'
Installed the IronPython tools for VS 2010 but it didn't associate the *.py files
I installed PyScript to try it out but it just wont start. It only
I Installed Microsoft's Asp.net MVC 2 using the Web PI (on Windows XP) but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.