Pyzmq: fails to install with Python 3.8.0b3

Created on 1 Aug 2019  路  4Comments  路  Source: zeromq/pyzmq

I stumbled on this while testing pipx for python 3.8 compatibility and wanted to report it here.

python --version
Python 3.8.0b3
pip install pyzmq
...
    In file included from /home/csmith/Downloads/Python-3.8.0b3/Include/compile.h:5:0,
                     from /home/csmith/Downloads/Python-3.8.0b3/Include/Python.h:138,
                     from zmq/backend/cython/_device.c:4:
    /home/csmith/Downloads/Python-3.8.0b3/Include/code.h:122:28: note: declared here
     PyAPI_FUNC(PyCodeObject *) PyCode_New(
                                ^~~~~~~~~~
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /tmp/pvenv/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6mnvkxwv/pyzmq/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6mnvkxwv/pyzmq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-57y2pv8f/install-record.txt --single-version-externally-managed --compile --install-headers /tmp/pvenv/include/site/python3.8/pyzmq Check the logs for full command output.

Full log: https://gist.github.com/cs01/174f417c0857e11d9beffa4d17e600ac

Most helpful comment

Published 18.1 with latest cython, so this should work on 3.8b3

All 4 comments

I believe the sdist may contain rendered Cython sources. Installing from the repo using latest cython work for me either way as workaround for now.

Building from sources with python 3.8.0b3 and latest cython also working for me. Issue only when using pip.

Yes, I need to publish another release with latest Cython, then I think it should be okay. I'll try to do that this week.

Published 18.1 with latest cython, so this should work on 3.8b3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hrunting picture hrunting  路  4Comments

AnthonyTheKoala picture AnthonyTheKoala  路  17Comments

paulm17 picture paulm17  路  5Comments

fabian-paul picture fabian-paul  路  13Comments

mirceaulinic picture mirceaulinic  路  9Comments