Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
graph-tool
graph-tool
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards

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 mailing list at https://graph-tool.skewed.de/mailing
(If unsure, use the mailing list first.)



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
Opened Aug 06, 2014 by Tiago Peixoto@count0Maintainer

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
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: count0/graph-tool#84