1

I need to import VIX api libs in ubuntu using ctypes module. When I do:

 vix = CDLL('libvix.so')

It fails: "cannot open..."

what´s the problem??? libvix.so and python module are in the same directory

thanks!!

igferne
  • 319
  • 1
  • 5
  • 11
  • Not a direct answer to your question, but may give you some other help: http://stackoverflow.com/questions/3687762/use-of-ctypes-module – PaulMcG Nov 25 '10 at 23:52

1 Answers1

0

If the rest of the error is something like

OSError: libvix.so: cannot open shared object file: No such file or directory

Then you probably need to put the location of the libvix.so in the LD_LIBRARY_PATH environment variable.

mjhm
  • 16,497
  • 10
  • 44
  • 55