Closed alexzhang2010 closed 6 years ago
You might want to try code changes from #29.
We are working on improving the situation for conda users. Meanwhile, the workaround is to add a setup.cfg
file to the root of the source tree with the following contents:
[config]
python_dll=libpython3.6m.so
See Installing from source code for details on how to obtain PyQ source code.
I tried to install via source by having this setup.cfg. But I got some other error message
[root@MiWiFi-R2D-srv ~]# python
Python 3.6.3 |Anaconda, Inc.| (default, Oct 13 2017, 14:21:34)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyq
Traceback (most recent call last):
File "/root/miniconda3/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: /root/miniconda3/lib/python3.6/site-packages/pyq/_k.cpython-36m-i386-linux-gnu.so: undefined symbol: dot
I'm using Miniconda3 (x86) on CentOS 6.9 (x64). kdb+ binary is 32 bit.
This is odd. What version of kdb+ do you use? What do you see when you enter the following command?
nm $QHOME/l32/q | grep dot
Please note that we recently started using Miniconda in the Travis CI builds. You can follow the steps from the log or from .travis.yml.
@abalkin if I simply run nm $QHOME/l32/q
, it returns 080633e0 t _sn
.
Second I also see this message when I try to import pyq
in Python. ImportError: Importing pyq from stock python is not supported. Use pyq executable.
So if I run pyq
, it will launch another Python shell, which is able to run import pyq
.
Starting with release, 4.1.4 use
conda install -c kx -c enlnt pyq
to install both kdb+ and PyQ.
I tried to install pyq with python 3.6 under anaconda 5.0. I got the following error:
I took a look at setup.py, looks like pyq installer is looking for python shared library libpython3.6m.so by using ldd But in this case, the share lib has been statically compiled into python3.6 executable. How do I get around this issue?