Closed gtataranni closed 6 years ago
Which version of pyq do you have?
pip list | grep pyq
What do you see when you run following command?
QHOME=$VIRTUAL_ENV/q $VIRTUAL_ENV/q/l64/q
Thanks.
Please see my comment on issue #32. You can also look at the build logs for the installation of PyQ with Miniconda2.
I'm using pyq (4.1.2)
. By running QHOME=$VIRTUAL_ENV/q $VIRTUAL_ENV/q/l64/q
I received a Permission denied
error, which made me realise that the q binary had no execute permission.
After setting it, I was able to run pyq. Yet, I am not able to import pyq
in python:
(krypton_env_64) giovanni@mymachine ~$ python
Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyq
Traceback (most recent call last):
File "/home/giovanni/workspace/krypton_env_64/lib/python3.6/site-packages/pyq/__init__.py", line 22, in <module>
from ._k import K as _K, error as kerr, Q_VERSION, Q_DATE, Q_OS
ImportError: /home/giovanni/workspace/krypton_env_64/lib/python3.6/site-packages/pyq/_k.cpython-36m-x86_64-linux-gnu.so: undefined symbol: k
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/giovanni/workspace/krypton_env_64/lib/python3.6/site-packages/pyq/__init__.py", line 31, in <module>
raise ImportError(message)
ImportError: Importing pyq from stock python is not supported. Use pyq executable.
>>>
Is this an intended behaviour? If not, could you suggest a solution?
@gtataranni Unfortunately you excluding commands you running. This makes troubleshooting hard.
How did you start Python? Did you use python
or pyq
command?
I used python
(updated previous comment).
Than the error message you received is expected. You should use pyq
instead of python
to start Python interpreter for use with PyQ.
Ok. Is this expected for the interpreter only or also when running a script (no interactivity)?
You always need to use pyq
when you import pyq
in your script.
Starting with release, 4.1.4 use
conda install -c kx -c enlnt pyq
to install both kdb+ and PyQ.
Hello all,
if I start python interpreter using pyq, I do not see python prompt shown here [1], when the first code example starts with import (from pyq import q). What am I missing? Here is what I do:
bash-4.2$ echo ${QHOME} /home/nynfs01/remkamal/q/ bash-4.2$ pyq '2019.11.12T17:30:53.816 cores bash-4.2$
please let me know if I should post it to a different thread, but the point is the same, running jupyter I get the same "nothing happens" action:
bash-4.2$ pyq -m notebook '2019.11.12T18:53:33.332 cores
Following message suggests that you have more cores on system than in your license.
bash-4.2$ pyq
'2019.11.12T17:30:53.816 cores
Generally, you should always open new issue for a new problem. But in this case -- it's not PyQ's issue.
Following message suggests that you have more cores on system than in your license.
bash-4.2$ pyq '2019.11.12T17:30:53.816 cores
Generally, you should always open new issue for a new problem. But in this case -- it's not PyQ's issue.
thanks, sashkab, I have indeed only 1 core for 64-bit version. But I still should be able to run PyQ, right? How to force it work and not just get the date timestamp with a message about cores?
Try following:
CPUS=0 pyq
thanks a lot, sashkab!
Hi, I am trying to install pyq in a python virtualenv, following the instructions here, with a licensed copy of kdb (64bit). Installation goes fine, but when I try to run pyq I get the following error:
Although, as you can see, the q binary is there:
Could you please advise on how to handle this issue? I’m using
Python 3.6.1 |Continuum Analytics, Inc.| (default, May 11 2017, 13:09:58) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux