Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • graph-tool graph-tool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 48
    • Issues 48
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the web forum at https://forum.skewed.de/c/graph-tool.


(If unsure, use the forum first.)


IMPORTANT: When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #84
Closed
Open
Issue created Aug 06, 2014 by Tiago Peixoto@count0Owner

graph-tool cannot find gvc library when it's installed in a non-standard location

The problem occurred when another, older version of gvc was found in a standard location, while the version I was looking for was installed into a custom folder, specified in LD_LIBRARY_PATH.

My solution to this, which unfortunately isn't elegant, was to hardcode the library name into draw/ init .py instead of using ctypes.util.find_library. The problem with find_library is that it doesn't consult LD_LIBRARY_PATH, making the search algorithm rather inflexible.

libgv = ctypes.CDLL("libgvc.so.6.0.0")

libname = ctypes.util.find_library("gvc")

if libname is None:

raise OSError()

libgv = ctypes.CDLL(libname)

Hopefully, something more robust can be done about this. Thanks!

Assignee
Assign to
Time tracking