KxSystems / embedPy

Allows the kdb+ interpreter to call Python functions
https://code.kx.com/q/interfaces
Apache License 2.0
89 stars 42 forks source link

Install fails on redhat 2.6 x86_64 #39

Closed MaxHoefl closed 6 years ago

MaxHoefl commented 6 years ago

Hi,

I followed the installation steps here (using embedPy release 1.1 for linux) but when I load p.q I get an error

{"'",x,"'.join([__import__('sysconfig').get_config_var(v)for v in",ssr[.j.j y;"\"";"'"],"])"}
'.j.j

I am using anaconda 4.5.0, have copied p.q and p.k into $QHOME/ and p.so into $QHOME/l64/ and set the environment variable LD_LIBRARY_PATH (to /home/hoeflm/anaconda3/lib)

jhanna-kx commented 6 years ago

Hello, Which version of q are you using (.z.K and .z.k), embedPy requires kdb+ 64-bit v3.5 or newer. Thanks

MaxHoefl commented 6 years ago

I am using KDB+ 3.0 2012.05.29. Ah v.3.5 required I see. I will try again with that version. Thanks

jhanna-kx commented 6 years ago

Hi, You'll need to use at least version 3.5 (64-bit only) in order to use embedPy, can you try upgrading to see if that resolves the issue ? Thanks

MaxHoefl commented 6 years ago

yes that resolved the issue, thanks. Another catch is that embedPy was probably built for RHEL 7, so RHEL 6 users have to install glibc-2.14 manually, see here