KxSystems / pyq

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

Cannot launch PyQ with 32bit kdb+ on OSX #63

Closed antipisa closed 6 years ago

antipisa commented 6 years ago

Questions

Steps to reproduce the issue

I was able to install PyQ by cloning the repository and using the workaround in this issue

https://github.com/KxSystems/pyq/issues/32#issuecomment-346160696. I ran

git clone https://github.com/kxsystems/pyq.git

added a setup.cfg file in root [config] python_dll=libpython2.7m.so

It built fine:

Successfully built pyq
Installing collected packages: pyq
Successfully installed pyq-4.1.3

However when launching I get the error

$:~/q$ pyq
'2018.05.14T00:01:11.050 dlopen(/Users/q/m32/p.so, 2): no suitable image found.  Did find:
    /Users/q/m32/p.so: mach-o, but wrong architecture
  [4]  /Users/q/p.k:3: (`p 2:(`p_init;1))python_dll
abalkin commented 6 years ago

In order to install 32-bit pyq, you need to have a 32-bit (or universal) python. For detailed instructions, please see Installing with 32-bit kdb+ on macOS.