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

Why need setting `LD_LIBRARY_PATH` with conda python? #42

Closed lwshang closed 6 years ago

lwshang commented 6 years ago

To have embedPy work with conda python on Linux, we have to set LD_LIBRARY_PATH. This looks like a temporary work around and may cause several issue when we using other softwares.

Why this setting is needed? Which part of embedPy request it?

I'm asking this question because I want to help solve it. embedPy may not be good enough to be used in production with this issue.

jhanna-kx commented 6 years ago

This is an issue as anaconda packages libraries which may conflict with the (system) versions loaded by q at startup (e.g. libssl or libz). There is an conda packaged version of q which doesn't require this now, if you are already using anaconda then you can install it with

conda install -c kx kdb

lwshang commented 6 years ago

Got it. I've started using conda to install kdb and embedPy since kx25. It's really convenient.