PyQ runtime issues

Hello,

Has anyone ever experienced issues after building PyQ? Such as the following:

>>> q.show(_)
Traceback (most recent call last):
  File “<stdin>”, line 1, in <module>
NameError: name ‘q’ is not defined

I have build PyQ from

python setup.py install

It seems starting normal until I call any Q command:

tom-desktop q # rlwrap l32/q python.q “$@”
KDB+ 3.2 2015.04.07 Copyright (C) 1993-2015 Kx Systems
l32/ 1()core 497MB root tom-desktop 127.0.1.1 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 2.7.9 (default, Apr 19 2015, 00:58:03)
[GCC 4.4.3] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>>

I use Linuxmint 32bit image for vmware.

Any guidance will be much appreciated.

Thanks
olal

It’s a random shot in the dark…but you ran “import q” first, right?

Hi Ryan,

You were right. Something was missing. The following import has helped:

from pyq import *

Thanks
olal