KxSystems / pyq

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

Unable to "import pyq" or "q python.q" #94

Closed sean185 closed 5 years ago

sean185 commented 5 years ago

Questions

Steps to reproduce the issue

Have Visual Studio C++ 2015 Build Tools installed.

Tried it with python 2.7

set CONDA_FORCE_32BIT=1
conda create -n py27_32 python=2.7
set CONDA_FORCE_32BIT=0
activate py27_32
pip install pyq
python
>>> import pyq

Tried it with python 3.6

set CONDA_FORCE_32BIT=1
conda create -n py36_32 python=2.7
set CONDA_FORCE_32BIT=0
activate py36_32
pip install pyq
python
>>> import pyq

Expected result

pyq should be able to import

Actual result

python exits immediately without completing the import

Workaround

-

sashkab commented 5 years ago

Please follow instructions in the user guide.

Importing PyQ in vanilla python is not supported.

Launch PyQ by running

c:\q\w32\q python.q

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