These are chat archives for ipython/ipython

Feb 2019
Feb 14 11:13
@minrk you are correct. this the output
massimods@r740-5hdn2s2-bb-gcompute:~/src/ipykernel$ python
Python 3.7.0a0 (default, Feb 13 2019, 14:24:05) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)] on linux
Type "help", "copyright", "credits" or "license" for more information.
massimods@r740-5hdn2s2-bb-gcompute:~/src/ipykernel$ python -c 'import zmq'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/massimods/.local/lib/python3.7/site-packages/zmq/", line 49, in <module>
    from zmq import sugar
  File "/home/massimods/.local/lib/python3.7/site-packages/zmq/sugar/", line 7, in <module>
    from zmq.sugar import (
  File "/home/massimods/.local/lib/python3.7/site-packages/zmq/sugar/", line 35, in <module>
    DRAFT_API = bool(has('draft') and constants.DRAFT_API)
  File "zmq/backend/cython/utils.pyx", line 38, in zmq.backend.cython.utils.has
SystemError: Python/getargs.c:2048: bad argument to internal function
note this is a custom build of python, from this branch
and I built it using this configuration: ./configure --prefix=/home/massimods/local --enable-optimizations --with-lto
Feb 14 11:42
i used git master for both libzmq and pyzmq, I'll try to switch to latest released version of both
Feb 14 11:48
ouch .. segfault while compiling pyzmq
Feb 14 12:06
removing the files left by my attempt to build from src and using: pip install pyzmq --install-option="--zmq=bundled" gave me a working kernel ..
Min RK
Feb 14 12:18
Do you have any LIBRARY_PATH env variables set?
It's a bit worrying that you get a segfault during compilation. That could mean there's something wrong in the Python build itself.