graphserver icon indicating copy to clipboard operation
graphserver copied to clipboard

pygs does not find C library under Cygwin

Open abyrd opened this issue 16 years ago • 1 comments

Under Cygwin, pygs doesn't correctly find the standard C library.

The culprit is the following line in pygs/graphserver/gsdll.py: libc = cdll.LoadLibrary(find_library('c'))

A more general solution would be to replace the above line with something like:

# Adapted from ctypes.test.test_loading
# Find and load the c runtime library

libc_name = None
if sys.platform == "cygwin":
  libc_name = "cygwin1.dll"
else:
  libc_name = find_library("c")
if not libc_name:
  raise ImportError('could not determine which c runtime library to
  use')
libc = cdll.LoadLibrary(libc_name)

abyrd avatar Aug 07 '09 18:08 abyrd

Fixed in andrewbyrd/graphserver.

abyrd avatar Aug 09 '09 18:08 abyrd