KxSystems / pyq

PyQ — Python for kdb+
http://code.kx.com/q/interfaces
Apache License 2.0
190 stars 49 forks source link

Cannot open pyq #89

Closed unix9999 closed 5 years ago

unix9999 commented 5 years ago

Questions

Steps to reproduce the issue

$pyq

Expected result

Normal pyq

Actual result

'2018.09.13T07:47:07.900 p.so: cannot open shared object file: No such file or directory [4] /home/robert/Downloads/kdb/p.k:3: (p 2:(p_init;1))python_dll

Workaround

If you know workaround, please provide it here.

sashkab commented 5 years ago

@unix9999 what flavor of 64-bit linux are you using? What version of Python? Did you install Python's shared library?

unix9999 commented 5 years ago

Thanks for the reply. I am using a Ubuntu 16.04; python 2.7.14; not sure about shared library. My q is running normally.

sashkab commented 5 years ago

@unix9999 Make sure you following installation guide on Ubuntu for Python 2.7. For PyQ to work you need to install few additional packages on Ubuntu, due to the way they provide Python.

unix9999 commented 5 years ago

It seems to work now. But is there a way to permanently set QHOME path?

sashkab commented 5 years ago

Yes, you can add following line to the end of into your $VIRTUAL_ENV/bin/activate script.

export QHOME=/path/to/your/qhome