Not able to install rasa-plus because of error in building python-crfsuite

Apple M1 Pro, ventura 13.6 (22G120)

Python 3.9 pip 24.0

I also installed crfsuite using conda install -c conda-forge python-crfsuite and tried installing rasa-plus again but ended up with same error.

Getting following error: Building wheel for python-crfsuite (pyproject.toml) … error error: subprocess-exited-with-error

× Building wheel for python-crfsuite (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [42872 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-12.6-arm64-cpython-310 creating build/lib.macosx-12.6-arm64-cpython-310/pycrfsuite copying pycrfsuite/_dumpparser.py → build/lib.macosx-12.6-arm64-cpython-310/pycrfsuite copying pycrfsuite/_logparser.py → build/lib.macosx-12.6-arm64-cpython-310/pycrfsuite copying pycrfsuite/init.py → build/lib.macosx-12.6-arm64-cpython-310/pycrfsuite running build_ext building ‘pycrfsuite._pycrfsuite’ extension creating build/temp.macosx-12.6-arm64-cpython-310 creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite/lib creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite/lib/cqdb creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite/lib/cqdb/src creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite/lib/crf creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite/lib/crf/src creating build/temp.macosx-12.6-arm64-cpython-310/crfsuite/swig creating build/temp.macosx-12.6-arm64-cpython-310/liblbfgs creating build/temp.macosx-12.6-arm64-cpython-310/liblbfgs/lib creating build/temp.macosx-12.6-arm64-cpython-310/pycrfsuite clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/Users/sm607x/.pyenv/versions/3.10.0/include/python3.10 -c crfsuite/lib/cqdb/src/cqdb.c -o build/temp.macosx-12.6-arm64-cpython-310/crfsuite/lib/cqdb/src/cqdb.o In file included from crfsuite/lib/cqdb/src/cqdb.c:34: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h:64: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] unsigned char *_base; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert ‘_Nullable’ if the pointer may be null unsigned char *_base; ^ _Nullable /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:93:16: note: insert ‘_Nonnull’ if the pointer should never be null unsigned char _base; ^ _Nonnull /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: warning: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness] int ( _Nullable _read) (void *, char , int); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: note: insert ‘_Nullable’ if the pointer may be null int ( _Nullable _read) (void *, char , int); ^ _Nullable /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_stdio.h:138:32: note: insert ‘_Nonnull’ if the pointer should never be null int ( _Nullable _read) (void *, char *, int); ^

On my M2 macbook I’m able to install into a venv with this command:

uv pip install --prerelease=allow --upgrade \
  --extra-index-url https://europe-west3-python.pkg.dev/rasa-releases/rasa-plus-py/simple \
   'rasa-pro==3.8.0pre2' python-crfsuite