Repository: zama-ai/concrete (language: python)

Issue:
docs(frontend): adding a section for most common errors
Adding a list of most common errors with CP. If ever you have other issues you would like to add, don't hesitate to do it or ask me to do it

closes #https://github.com/zama-ai/concrete-internal/issues/719
closes #https://github.com/zama-ai/concrete-internal/issues/508



Discussion / hints:
CC @umut-sahin and @youben11 , for when you're back. Certainly we'll have merged but it may be interesting to have your review when you are available
Would be nice to merge that not too late, for Yuxi being able to review it
@umut-sahin @youben11 : as you are the people with the best knowledge of the frontend (no offense for the others!), could you have a look when you're back and maybe improve / add new typical errors, please?

Fix patch:
diff --git a/docker/Dockerfile.concrete-python b/docker/Dockerfile.concrete-python
index a0246e9b36..ca293a317a 100644
--- a/docker/Dockerfile.concrete-python
+++ b/docker/Dockerfile.concrete-python
@@ -5,4 +5,4 @@ ARG version
 # provide the `ld` binary required by the compiler
 RUN apt update && apt install -y binutils graphviz
 
-RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.zama.ai concrete-python==${version}
+RUN pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu --extra-index-url https://pypi.zama.ai/cpu/ concrete-python==${version}
diff --git a/docs/compilation/common_errors.md b/docs/compilation/common_errors.md
index 33cba273f8..430515f009 100644
--- a/docs/compilation/common_errors.md
+++ b/docs/compilation/common_errors.md
@@ -11,7 +11,7 @@ In this document, we list the most common errors, and mention how the user can f
 **Possible solutions**:
 - Be sure that you use a supported Python version (currently from 3.8 to 3.11, included)
 - Check you have done `pip install -U pip wheel setuptools` before
-- Consider adding a `--extra-index-url https://pypi.zama.ai`
+- Consider adding a `--extra-index-url https://pypi.zama.ai/cpu/`
 - Concrete requires glibc>=2.28, be sure to have a sufficiently recent version
 
 ## 2. Only integers are supported
diff --git a/docs/get-started/installing.md b/docs/get-started/installing.md
index 0c7d6cc580..8f065a038e 100644
--- a/docs/get-started/installing.md
+++ b/docs/get-started/installing.md
@@ -13,7 +13,7 @@ pip install -U pip wheel setuptools
 pip install concrete-python
 ```
 {% hint style="info" %}
-Not all versions are available on PyPI. If you need a version that is not on PyPI (including nightly releases), you can install it from our package index by adding `--extra-index-url https://pypi.zama.ai`.
+Not all versions are available on PyPI. If you need a version that is not on PyPI (including nightly releases), you can install it from our package index by adding `--extra-index-url https://pypi.zama.ai/cpu/`. GPU wheels are also available under `https://pypi.zama.ai/gpu/` (check `https://pypi.zama.ai/` for all available platforms).
 {% endhint %}
 
 To enable all the optional features, install the `full` version of **Concrete**:
diff --git a/frontends/concrete-python/README.md b/frontends/concrete-python/README.md
index 9bc18ccc29..9a8bc67577 100644
--- a/frontends/concrete-python/README.md
+++ b/frontends/concrete-python/README.md
@@ -8,7 +8,7 @@ End-users should install `concrete-python` using `pip`:
 pip install concrete-python
 ```
 
-**Note:** Not all versions are available on PyPI. If you need a version that is not on PyPI (including nightly releases), you can install it from our package index by adding `--extra-index-url https://pypi.zama.ai`.
+**Note:** Not all versions are available on PyPI. If you need a version that is not on PyPI (including nightly releases), you can install it from our package index by adding `--extra-index-url https://pypi.zama.ai/cpu/`. GPU wheels are also available under `https://pypi.zama.ai/gpu/` (check `https://pypi.zama.ai/` for all available platforms).
 
 ## Setup for development
 


Test patch:
diff --git a/ci/scripts/test_cml.sh b/ci/scripts/test_cml.sh
index 3d6fcfcc9d..466f0d5cb6 100755
--- a/ci/scripts/test_cml.sh
+++ b/ci/scripts/test_cml.sh
@@ -181,7 +181,7 @@ echo "Installing CP version"
 
 if [ "$CP_VERSION" == "last" ]
 then
-    poetry run python -m pip install -U --index-url https://pypi.zama.ai --pre "concrete-python"
+    poetry run python -m pip install -U --index-url https://pypi.zama.ai/cpu/ --pre "concrete-python"
 elif [ "$CP_VERSION" == "wheel" ]
 then
     poetry run python -m pip install ${WHEEL}
@@ -191,7 +191,7 @@ then
     echo "That must be some: pip -e ."
     exit 255
 else
-    poetry run python -m pip install -U --index-url https://pypi.zama.ai --pre "concrete-python==${CP_VERSION}"
+    poetry run python -m pip install -U --index-url https://pypi.zama.ai/cpu/ --pre "concrete-python==${CP_VERSION}"
 fi
 
 INSTALLED_CP=`pip freeze | grep "concrete-python"`