exxeleron / qPython

interprocess communication between Python and kdb+
http://www.devnet.de
Apache License 2.0
152 stars 89 forks source link

not an api call error with python 3.6.0 #78

Closed nayangoswami-liquidnet closed 2 years ago

nayangoswami-liquidnet commented 2 years ago

I have this simple script


q = qconnection.QConnection(host = 'host', port = 789)
q.open()
print(q)
print('IPC version: %s. Is connected: %s' % (q.protocol_version, q.is_connected()))
data = q('{`int$ til x}', 10)

which ends up with this exception qpython.qtype.QException: b'not an api call'

nayangoswami-liquidnet commented 2 years ago

turns out the server was not allowing raw queries. See https://stackoverflow.com/questions/68936089/query-kdb-using-qpython-and-python3-6/68936941#68936941