I installed pyq and getting importError

Hi,

Need some guidance Installed pyq using pip for python 2.7 and I am getting the following error

when i try to import.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff}span.s1 {font-variant-ligatures: no-common-ligatures}

Python 2.7.12 |Anaconda custom (x86_64)| (default, Jul  2 2016, 17:43:17) 

[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)] on darwin

Type “help”, “copyright”, “credits” or “license” for more information.

Anaconda is brought to you by Continuum Analytics.

Please check out: http://continuum.io/thanks and https://anaconda.org

>>> from pyq import q

Traceback (most recent call last):

  File “<stdin>”, line 1, in <module>

  File “/Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/__init__.py”, line 21, in <module>

    from . import _k

ImportError: dlopen(/Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/_k.so, 2): Symbol not found: _b9

  Referenced from: /Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/_k.so

  Expected in: flat namespace

 in /Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/_k.so

Any ideas here?

On Monday, May 29, 2017 at 7:52:31 PM UTC-4, Bmack wrote:
..

ImportError: dlopen(/Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/_k.so, 2): Symbol not found: _b9

  Referenced from: /Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/_k.so

  Expected in: flat namespace

 in /Users/mthulisimatiwaza/anaconda2/lib/python2.7/site-packages/pyq/_k.so

In the earlier versions, we had a more informative message in this case. We should probably restore it.  Apparently, you are trying to import pyq in a regular python interpreter.  This is not how pyq works.  Since q is not distributed as a shared library, in order to have both q and python running in the same process, we must load python into q.  We provide a convenience executable, “pyq” that gives an illusion of q running inside python, but in reality it runs “q python.q”.

TL;DR: Run pyq, not python.