KxSystems / pyq

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

[Windows] pyq shell error #125

Closed jmitek closed 4 years ago

jmitek commented 4 years ago

When I install pyq on Windows in a venv, and then run 'q.exe python.q' i get loaded into the shell. At this point, as per instructions, i do ^Z and Enter. At this point, the prompt keeps printing ")" continuously until I abort.

Eg.

(venv_32) c:\Users\jmitek\eFx\scripts\venv_32\q\w32>q python.q
KDB+ 3.6 2019.04.02 Copyright (C) 1993-2019 Kx Systems
w32/ 8()core 4095MB jmitek sydw1mx1qm2 10.16.203.24 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
To exit, type \\
To remove this startup msg, edit q.q
'
  [4]  C:\Users\jmitek\apps\q\p.k:2: (`:./pyq 2:(`p_init;1)).pyq.python_dll
                                     ^
  [0]  (<load>)

  )^Z
  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
)  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
 )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
)  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
 )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
)  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
 )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
)  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
 )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
)  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
 )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
)  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )
 )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )  )

Questions

(venv_32) c:\Users\jmitek\eFx\scripts\venv_32\q\w32>pip list pyq
Package            Version
------------------ -------
atomicwrites       1.3.0
attrs              19.3.0
colorama           0.4.3
importlib-metadata 1.5.0
more-itertools     8.2.0
packaging          20.1
pip                20.0.2
pluggy             0.13.1
py                 1.8.1
pyparsing          2.4.6
pyq                4.2.1
pyq-kernel         1.2
pytest             5.3.5
pytest-pyq         1.1
qPython            2.0.0
setuptools         45.1.0
six                1.14.0
wcwidth            0.1.8
zipp               2.1.0

Steps to reproduce the issue

cd C:\Users\jmitek\eFx\scripts\venv_32\q\w32 q.exe python.q then ^Z + Enter

Expected result

See python shell

Actual result

Repeating )))))

Workaround

If you know workaround, please provide it here.

jmitek commented 4 years ago

Still not sure what the issue was, but getting a bit further using Conda env directly.