These are chat archives for ipython/ipython

13th
Feb 2019
epifanio
@epifanio
Feb 13 16:36 UTC
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 setup.py build
Traceback (most recent call last):
  File "setup.py", line 115, in <module>
    from ipykernel.kernelspec import write_kernel_spec, make_ipkernel_cmd, KERNEL_NAME
  File "/home/massimods/src/ipykernel/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/home/massimods/src/ipykernel/ipykernel/connect.py", line 18, in <module>
    import jupyter_client
  File "/home/massimods/local/lib/python3.7/site-packages/jupyter_client/__init__.py", line 4, in <module>
    from .connect import *
  File "/home/massimods/local/lib/python3.7/site-packages/jupyter_client/connect.py", line 23, in <module>
    import zmq
  File "/home/massimods/.local/lib/python3.7/site-packages/zmq/__init__.py", line 49, in <module>
    from zmq import sugar
  File "/home/massimods/.local/lib/python3.7/site-packages/zmq/sugar/__init__.py", line 7, in <module>
    from zmq.sugar import (
  File "/home/massimods/.local/lib/python3.7/site-packages/zmq/sugar/constants.py", 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
@minrk
Feb 13 17:13 UTC
That looks like pyzmq itself just doesn't work.
Can you run python -c 'import zmq'?