Error installing concrete-python on M2

I am installing on Apple Silicon M2 with python version 3.13.2

$ pip3 install concrete-python

ERROR: Could not find a version that satisfies the requirement concrete-python (from versions: none)

ERROR: No matching distribution found for concrete-python

Bump. Can anyone help with this?

Hello @agol,

There no yet a support for python 3.13, we currently support from 3.8 to 3.12.

Thanks @yundsi . That mostly worked but with one issue. Everytime I run an example program from the documentation, I see the error.

OMP: Error #15: Initializing libomp.dylib, but found libomp.dylib already initialized.

I worked around by setting KMP_DUPLICATE_LIB_OK=TRUE but now it crashes with the message:

libc++abi: Pure virtual function called!
Abort trap: 6

Hey

I used to have problems with libomp as well. They are conflicting libomp libraries (the one in Concrete and the one in torch), this a known issue, you can check this links for more context:

The current best fix (that we also apply in our CI) is to remove other packages’ libomp libraries, and symlink them to Concrete’s libomp

In particular, concrete-ml/script/make_utils/fix_omp_issues_for_intel_mac.sh at main · zama-ai/concrete-ml · GitHub shows a bit how to do that: don’t run that straight (your config is not ours) but get some inspiration here, to be able to replace your libomp.dylib by others.

Cheers