Error building pyzmq with python 3.11
Hello, the cli doesn't seem to work with Python 3.11
I've run into issues while it was trying to build pyzmq
even though it first caught my cached version:
Collecting pyzmq==22.1.0 (from aicrowd-cli)
Using cached pyzmq-22.1.0.tar.gz (1.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
....
Building wheels for collected packages: pyzmq
Building wheel for pyzmq (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyzmq (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [184 lines of output]
...
/Users/mariana/miniconda3/envs/meltingpot/include -fPIC -O2 -isystem /Users/mariana/miniconda3/envs/meltingpot/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/mariana/miniconda3/envs/meltingpot/include -D_FORTIFY_SOURCE=2 -isystem /Users/mariana/miniconda3/envs/meltingpot/include -DHAVE_SYS_UN_H=1 -I/usr/local/Cellar/zeromq/4.3.4/include -I/usr/local/Cellar/libsodium/1.0.18_1/include -Izmq/utils -I/Users/mariana/miniconda3/envs/meltingpot/include/python3.11 -c zmq/backend/cython/_device.c -o build/temp.macosx-10.9-x86_64-cpython-311/zmq/backend/cython/_device.o
zmq/backend/cython/_device.c:215:12: fatal error: 'longintrepr.h' file not found
#include "longintrepr.h"
^~~~~~~~~~~~~~~
1 error generated.
************************************************
************************************************
error: command '/Users/mariana/miniconda3/envs/meltingpot/bin/x86_64-apple-darwin13.4.0-clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyzmq
Failed to build pyzmq
ERROR: Could not build wheels for pyzmq, which is required to install pyproject.toml-based projects
I'm not sure exactly what did it but once I've downgraded to python 3.10.12 within the conda ecosystem everything started working again!