Build Python bind

#Python #Caché

I'm testing with an application I'm writing in python.
But I noticed that the pythonbind3 library will only work on the same machine where the cache is running. Is there really such a dependency?

I'm trying to run the examples that are in the / dev / python / samples3 folder, but they only work if I set "LD_LIBRARY_PATH" with the path to the cache installation folder.

But... I have this error when LD_LIBRARY_PATH is empty:

[root@cache2018 samples3]# python CPTest2.py -user _SYSTEM -password xxxxxx
Traceback (most recent call last):
File "CPTest2.py", line 3, in <module>
import intersys.pythonbind3
File "/usr/local/lib64/python3.6/site-packages/pythonbind3-1.0-py3.6-linux-x86_64.egg/intersys/pythonbind3.py", line 1, in <module>
import intersys.pythonbind31
ImportError: libcbind.so: cannot open shared object file: No such file or directory

  • 00
  • 0
  • 54
  • 1

Replies

It has been a while since I've looked at the Python binding, but my recollection is that it is based on the C binding (not to be confused with the C callin API), which is based on the C++ binding, which does not have to be on the same system as the Caché server. However, you do need to satisfy those dependencies on the client.