KxSystems / pyq

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

PyQ unresponsive after starting #95

Closed grokpronoia closed 5 years ago

grokpronoia commented 5 years ago

Questions

Steps to reproduce the issue

start pyq using the following command... c:\q\w32\q.exe python.q

then import q object from pyq... from pyq import q

Expected result

Import the object and allow me to enter additional commands

Actual result

C:\Users\a\q\q\w32>q.exe python.q
KDB+ 3.6 2018.05.17 Copyright (C) 1993-2018 Kx Systems
w32/ 2()core 4095MB NONEXPIRE

Welcome to kdb+ 32bit edition
For support please see http://groups.google.com/d/forum/personal-kdbplus
Tutorials can be found at http://code.kx.com/wiki/Tutorials
To exit, type \\
To remove this startup msg, edit q.q
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyq import q

Input will move to a blank line and nothing happens. Can't exit out of python without fully closing command prompt. Other commands produce the same behavior. Not sure if it has any affect, but should be noted that I'm using a work machine with a pre-approved version of python installed. Also, Microsoft Build Tools for Visual Studio 2017 have been installed.

Workaround

If you know workaround, please provide it here.

sashkab commented 5 years ago

Known issue as explained in the installation instructions.

Note, you will have to press ^Z and then Enter key in order to get into the Python REPL.