Closed beebeed closed 8 years ago
Could you please provide us with additional details on Python and numpy version in your setup?
I failed to reproduce the issue in my Python 3.4 environment:
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32
OS Name: Microsoft Windows 8.1 Pro
OS Version: 6.3.9600 N/A Build 9600
Numpy (installed with pip
from Unofficial Windows Binaries for Python Extension Packages):
numpy-1.9.2+mkl-cp34-none-win_amd64
Code has been executed against kdb+ versions:
w32/ KDB+ 3.1 2014.07.01 Copyright (C) 1993-2014 Kx Systems
l64/ KDB+ 3.2 2014.08.22 Copyright (C) 1993-2014 Kx Systems
Reported error indicates that the function parameter 10
has been serialized into IPC protocol as a non-integer value.
Thanks for looking into this for me
I am using
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32
OS Name: Microsoft Windows 7 Pro
OS Version: Version 6.1.7601
Numpy (also installed with pip from Unofficial Windows Binaries for Python Extension Packages):
numpy-1.9.2+mkl-cp34-none-win_amd64
The code was excuted against an older version of 64 bit KDB
w64/ KDB+ 2.7 2011.11.18 Copyright (C) 1993-2011 Kx Systems
Kind regards
David
FYI ...
I just tried the trial version of kdb+ w32/ KDB+ 3.3 2015.07.09 and it works.
To summarize all the findings:
long
and thus serialized to kdb+ long,til
function argument to be 32 bit integer,type
error is thrown (while using Python 3) as argument to the call is 64 bit integer.You can force the qpython
to serialize this parameter to 32 bit with following syntax:
print(q.sync('{til x}', numpy.int32(10)))
Thanks Maciej,
That now works with kdb 2.7+
Regards
David
Running qPython 1.1 dev fails when running
print q.sync('{til x}', 10)
it generates the following error
Environment: Windows 7 64 bit, Python 3.4, qpython 1.1 dev
This query works for Python 2.7, qpython 1.0
Kind regard
David Bieber