Some days ago I downloaded the (on demand) version of KDB+ 4. 0 and wanted to test embedPy but got problems.
I've followed the instructions from https://github.com/KxSystems/embedPy and have tested both by compiling from source (Git version ) and also downloaded the
embedPy_linux-1.3.7.tgz from https://github.com/KxSystems/embedPy/releases/tag/1.3.7.
And after that:
- copying p.q and p.k to $HOME/q
- copying p.so to $HOME/q/l64
However, when trying run test.q the following error occurs:
$ taskset --cpu-list 0-15 ~/q/l64/q test.q
"""
KDB+ 4.0 2020.05.04 Copyright (C) 1993-2020 Kx Systems
l64/ 16(16)core 64092MB hakank jaco 127.0.1.1 EXPIRE 2021.07.23 hakank@gmail.com
'libpython
[5] /home/hakank/k/kx/git/KxSystems/embedPy/p.q:12:
`L`M`H set'@[system"python3 ",;c;{system"python ",c}];if[count M;if[k~key k:`$":",M;L::M]];
.p:(`:./p 2:(`init;2))[L;H]]
^
q.p))
"""
The same message occurs when just loading p.k
q)\l p.q
"""
'libpython
[3] /home/hakank/k/kx/q64_20200504/p.q:12:
`L`M`H set'@[system"python3 ",;c;{system"python ",c}];if[count M;if[k~key k:`$":",M;L::M]];
.p:(`:./p 2:(`init;2))[L;H]]
^
q.p))
"""
Note: My $HOME/q directory is a symbolic link from /home/hakank/k/kx/q64_20200504/ , hence the perhaps strange directory in the above message.
My Linux version is Ubuntu 18.04.4LTS.
My Python versions are:
- python: v2.7.17
- python3: v3.7.6
According to apt the python-dev packages are installed from python 2.7 and python 3.7.
I've also tested PyQ and it seems to work, but I uninstalled it since it have a p.k which conflicts with embedPy (as mentioned on the embedPy page).
Is there something I have missed to install or set up? I'm not proficient in q to interpret the error messages...