# Pas la bonne version de numpy pour bCNC.py

**URL:** <https://www.debian-fr.org/t/pas-la-bonne-version-de-numpy-pour-bcnc-py/90248>\
**Category:** Programmation\
**Created:** [Août 3, 2024, 7:43 UTC](https://www.debian-fr.org/t/pas-la-bonne-version-de-numpy-pour-bcnc-py/90248 "2024-08-03T07:43:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Papy\_Octet](https://www.debian-fr.org/user_avatar/www.debian-fr.org/papy_octet/32/8503_2.png) [@Papy\_Octet](https://www.debian-fr.org/u/Papy_Octet)\
**Post date:** [Août 3, 2024, 7:43 UTC](https://www.debian-fr.org/t/pas-la-bonne-version-de-numpy-pour-bcnc-py/90248/1 "2024-08-03T07:43:17Z")

</div>

Bonjour.  
J’utilise le logiciel de GRBL (Gravure CNC) bCNC [sur GitHub.](https://github.com/vlachoudis/bCNC)  
Celui-ci est compilé à partir de Python.  
Mais quand je le lance en console, il démarre et fonctionne correctement (pour moi 😁), mais me retourne un message d’erreur :

`$ python -m bCNC`  
`WARNING: bCNC was recently ported to only support python3.8 and newer.`  
`Most things seem to work reasonably well.`  
`Please report any issues to: https://github.com/vlachoudis/bCNC/issues new-config bCNC <configparser.ConfigParser object at 0x7f1496887250 `  
`RuntimeError: module compiled against ABI version 0x1000009 but this version of numpy is 0x2000000 `  
`G2Core loaded`  
`self.canvas.winfo_id(): 10485852`  
`Not Loading 6 axis displays`  
`Not Loading 6 axis displays`

Je vérifie ma version Python :

`python -V Python 3.10.10`

Puis la version de numpy :

`python3 -c "import numpy; print(numpy. __version__ )" 2.0.0`

Est-il possible de faire cohabiter deux versions différentes de Python dont celle qui contient Numpy 0x1000009 ?  
Je n’ai pas envie de m’essayer à la compilation. J’ai de trop mauvais souvenirs 😝

Merci.

---

<div class="post-metadata">

**Author:** ![MPython\_Alaplancha](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mpython_alaplancha/32/14038_2.png) [@MPython\_Alaplancha](https://www.debian-fr.org/u/MPython_Alaplancha)\
**Post date:** [Août 4, 2024, 5:44 UTC](https://www.debian-fr.org/t/pas-la-bonne-version-de-numpy-pour-bcnc-py/90248/2 "2024-08-04T05:44:09Z")

</div>

> [@Papy\_Octet](#):
>
> Est-il possible de faire cohabiter deux versions différentes de Python dont celle qui contient Numpy 0x1000009 ?

Bonjour.  
Pour cela il te faut utiliser un environnement virtuel [venv --- Creation of virtual environments — Documentation Python 3.15.1](https://docs.python.org/fr/3/library/venv.html#creating-virtual-environments) :

```auto
fab@fabien:/tmp$ python3 -m venv venv_bcnc #création d'un environnement virtuel
fab@fabien:/tmp$ cd venv_bcnc/
fab@fabien:/tmp/venv_bcnc$ source bin/activate # active l'environnement
(venv_bcnc) fab@fabien:/tmp/venv_bcnc$

```

Dans cet environnement, installe tes dépendances bcnc et la version de Numpy souhaitée:  
` pip install numpy==1.19.5 #exemple`

---

<div class="post-metadata">

**Author:** ![Papy\_Octet](https://www.debian-fr.org/user_avatar/www.debian-fr.org/papy_octet/32/8503_2.png) [@Papy\_Octet](https://www.debian-fr.org/u/Papy_Octet)\
**Post date:** [Août 4, 2024, 3:42 UTC](https://www.debian-fr.org/t/pas-la-bonne-version-de-numpy-pour-bcnc-py/90248/3 "2024-08-04T15:42:05Z")

</div>

M Python\_Alaplancha :  
Merci pour l’info, mais … la dernière commande me retourne 900 lignes de warnings et stoppe l’installation.  
`~/venv_bcnc$ pip install numpy==1.19.5`  
`Collecting numpy==1.19.5`  
` Downloading numpy-1.19.5.zip (7.3 MB)`  
` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 7.2 MB/s eta 0:00:00`  
` Installing build dependencies ... done`  
` Getting requirements to build wheel ... done`  
` Preparing metadata (pyproject.toml) ... done`  
`Building wheels for collected packages: numpy`  
` Building wheel for numpy (pyproject.toml) ... error`  
` error: subprocess-exited-with-error`

` × Building wheel for numpy (pyproject.toml) did not run successfully.`  
` │ exit code: 1`  
` ╰─> [923 lines of output]`  
` setup.py:67: RuntimeWarning: NumPy 1.19.5 may not yet support Python 3.10.`  
` warnings.warn(`  
[Warnings à l’install NumPy puis stop.txt](https://www.debian-fr.org/uploads/short-url/eGNK9TbzG9GL3cWQOcOkXIeuWC3.txt) (72,4 Ko)

Je joins la liste de tous ces warnings qui ont conduit à l’arrêt de la tentative d’installation de numpy.

Que faire ?  
Merci.

---

<div class="post-metadata">

**Author:** ![MPython\_Alaplancha](https://www.debian-fr.org/user_avatar/www.debian-fr.org/mpython_alaplancha/32/14038_2.png) [@MPython\_Alaplancha](https://www.debian-fr.org/u/MPython_Alaplancha)\
**Post date:** [Août 5, 2024, 5:48 UTC](https://www.debian-fr.org/t/pas-la-bonne-version-de-numpy-pour-bcnc-py/90248/4 "2024-08-05T05:48:15Z")

</div>

Bonjour. Manifestement cette version de Numpy n’est pas compatible avec la version de ton interpréteur python. Le mieux est de rester sur la doc! Pour installer bcnc, essaie : ```

```auto
python -m pip install --upgrade bCNC
python -m bCNC

```
