These are chat archives for ipython/ipython

Feb 2019
Feb 13 16:36
hi, I'm trying to build ipykernel on a system with python3.7 built from source.
I do not have root .. so most of the dependencies are built from source
including pyzmq
building ipykernel gave me this error:
massimods@r740-5hdn2s2-bb-gcompute:~/src/ipykernel$ /home/massimods/local/bin/python3.7 build
Traceback (most recent call last):
  File "", line 115, in <module>
    from ipykernel.kernelspec import write_kernel_spec, make_ipkernel_cmd, KERNEL_NAME
  File "/home/massimods/src/ipykernel/ipykernel/", line 2, in <module>
    from .connect import *
  File "/home/massimods/src/ipykernel/ipykernel/", line 18, in <module>
    import jupyter_client
  File "/home/massimods/local/lib/python3.7/site-packages/jupyter_client/", line 4, in <module>
    from .connect import *
  File "/home/massimods/local/lib/python3.7/site-packages/jupyter_client/", line 23, in <module>
    import zmq
  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
do you have any hints on what could be the cause ?
Min RK
Feb 13 17:13
That looks like pyzmq itself just doesn't work.
Can you run python -c 'import zmq'?