Search code examples
pythonkdbpyq

How can I install 32 bit pyq on Mac OS 64 bit, for python 3.6-32


I have 32 bit kdb on my Mac OS, and want to use pyq with Python3.6 32 bit version. Currently, I have it working perfectly for 32 bit Python2.7 after installing it as below.

./python2.7-32 pip install -i https://pyq.enlnt.com --no-binary pyq pyq

Now I need to use with Python3.6 and try similarly to install the 32 bit via:

 ./python3.6-32 pip install -i https://pyq.enlnt.com --no-binary pyq pyq

It does install it but when I try to run in after something happens and It gives me an error:

~$:/Library/Frameworks/Python.framework/Versions/3.6/bin> ./pyq
'2017.05.02T21:14:50.022 dlopen(libpython3.6m.dylib, 10): image not found
@
"q"
"r:py[`pyq^`$getenv`PYTHONEXECUTABLE;args;lib]"

Solution

  • From the error message

    dlopen(libpython3.6m.dylib, 10): image not found
    

    it looks like you've built a statically linked python and used the --with-pymalloc config option. Please make sure that you configure your python with --enable-shared. Better yet, use a universal built from brew:

    brew install sashkab/python/python36 --universal
    

    Finally, if you are going to use multiple versions of python, consider using virtual environments.

    For detailed instructions, see "Installing PyQ on macOS".