exxeleron / qPython

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

Unable to run a query if the start of the .q file has a comment. #74

Open ghost opened 4 years ago

ghost commented 4 years ago

An example query to reproduce the issue, assuming that you are attempting to connect to a running q process on a particular host/port, and referencing a query to run in a .q file via qPython:

/ Here is a comment at the beginning of example.q
tables[]

For context, this is running on a RedHat 7.6 box, with version 1.3.0 of qPython, Python version 2.7.5, and provides an exception without much information.

Curious to know if this is a bug, or just intended behavior? In general, I know we should be using Python 3, but figured it wouldn't hurt to raise the issue if this is something that we would like to fix.