No module named 'skfmm

Télémac

Membre expert
Club iGen
1 Février 2001
2 902
31
xplanepilotecontrole.nexgate.ch
Bonjour

j'ai le message suivant dans le terminal lorsque je lance Ortho4XP (désolé encore ce truc :D)

import skfmm
ModuleNotFoundError: No module named 'skfmm


Question
En cherchant sur le web skfmm je ne trouve que

pip install scikit-fmm

c'est la bonne commande pour installer skfmm?

Merci
 
J’avais répondu déjà ici.

 
La barbe :mad::dead::meh:

J'avais omis celle-la. Je présente mes excuses. Merci:up:

en utilisant la commande : % pip install scikit-fmm

j'ai ceci comme résultat.
-----------------------------
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
If you wish to install a non-brew-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-brew packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

-----------------------------
et si j'utilise celle la
brew install scikit-fmm

j'ai ceci
-----------------------------
rl@Ypsos ~ % brew install scikit-fmm
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask_tap_migrations.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/formula_tap_migrations.jws.json
######################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
######################################################################### 100.0%
Warning: No available formula with the name "scikit-fmm". Did you mean scikit-image?
==> Searching for similarly named formulae and casks...
==> Formulae
scikit-image
To install scikit-image, run:

brew install scikit-image
-----------------------------
et si je complète par
brew install scikit-image
j'ai ceci
-----------------------------
rl@Ypsos ~ % brew install scikit-image
==> Downloading https://ghcr.io/v2/homebrew/core/scikit-image/manifests/0.22.0_1
######################################################################### 100.0%
==> Fetching scikit-image
==> Downloading https://ghcr.io/v2/homebrew/core/scikit-image/blobs/sha256:bd1db
######################################################################### 100.0%
==> Pouring scikit-image--0.22.0_1.arm64_sonoma.bottle.1.tar.gz
/opt/homebrew/Cellar/scikit-image/0.22.0_1: 585 files, 27.5MB
==> Running brew cleanup scikit-image...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.

Hide these hints with HOMEBREW_NO_ENV_HINTS (see man brew).
-----------------------------
Si je lance ORTHO4XP après ces installations
import skfmm
ModuleNotFoundError: No module named 'skfmm'


Bon faut espérer une mise à jour.

Merci
 
Dernière édition par un modérateur:
Salut

pip3 install scikit-fmm
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
xyz, where xyz is the package you are trying to
install.
If you wish to install a non-brew-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip.
If you wish to install a non-brew packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.

hint: See PEP 668 for the detailed specification.
 
Dernière édition par un modérateur:
Nom de zeus

Ortho4XP fonctionne à nouveau avec Pytyhon 3.11 pas avec 3.12 et je n'ai plus ce message d'erreur qu'il manque le module skfmm.

J'ai décoouverts que le dossier python est absent dnas le dossier application.

Pourquoi ce dossier Python dans le dossier application est absent?

Erreur du non sachant( moi) du monde python.

Partant des informations issues du Web et d'Apple lui même qu'il n'y a plus de pré-installation de Python depuis Catalina,

Considérant logiquement que dans s le terminal avec install Python3.11ou Brew install python3.11 est installé quelque part.

J'ai pris acte de ces informations lors du ménage, et j'avais trouvé un dossier Python 2.7 obsolète par rapport à python 3.11,.

J' ai mis donc à la poubelle avec la méthode Apple (Glisser le dossier sur la corbeille) cr vieux dossier python 2.7 venant des migrations successives .

J'ai donc installé python 3.11 directement en le téléchargeant sur le site python la verion 3.11.
 
J'ai décoouverts que le dossier python est absent dnas le dossier application.
C’est normal…

Tu as installé python, c’est quelque chose qui s’utilise en command-line via le terminal. Pas depuis le dossier application.


Considérant logiquement que dans s le terminal avec install Python3.11ou Brew install python3.11 est installé quelque part.
C’est installé dans le fameux PATH qu’il t’es demander d’ajouter à la fin d’installation de homebrew

J'ai donc installé python 3.11 directement en le téléchargeant sur le site python la verion 3.11.
Mais pourquoi?????
Brew install python 3.11 fait le job.
C’est écrit dans la commande ! BREW installe python 3.11.

Pourquoi vouloir mélanger tout?
 
Mais pourquoi?????
Brew install python 3.11 fait le job.
C’est écrit dans la commande ! BREW installe python 3.11.

Pourquoi vouloir mélanger tout?
Pourquoi

Ceci est la bonne question?

Moins il y a de mélange, de présence d'anciens fichiers restant des différentes migrations, ou de désinstallation d'ancienne applications, plus un système est stable.

Aussi je me débarrasse de toutes ces anciennetés.

Pareil pour les dossiers python 2.7 et 3 présents dans le dossier application.

La 2.7 installée il y a des années pour faire fonctionner Ortho sur Mac Intel; et la 3 depuis la nouvelle version ORTHO1.40

But : bébé propre me basant sur les faits :

1) qu' Apple ne pré-installant plus depuis Catalina python, on peut donc supprimer ces anciens dossiers,( dans mon contexte de non utilisateur python Hors ORTHO)
2) avec la commande BREW install python 3.11 , Python est installé

oui mais

le pourquoi est maintenant à se poser dans le contexte suivant.

Sans le téléchargement et l'installation de Python 3.11 à ce lien en lançant Ortho 4XP dans le terminal j'ai le message d'erreur
mport skfmm
ModuleNotFoundError: No module named 'skfmm'


et lors de l'installation des modules avec la commande suivante :

pip3 install numpy shapely rtree pillow requests pyproj scikit-fmm

message terminal : erreur il lui manque quelque chose

Or comme nous venons de le voir, après avoir installé python3.11 qui se met dans le dossier application :

-ORTHO se lance sans message d'erreur dans le terminal

- la commande : pip3 install numpy shapely rtree pillow requests pyproj scikit-fmm fonctionne sans message d'erreur

Conclusion de ce témoignage
Pourquoi sans python dans le dossier applications j'ai des messages d'erreur cités?
Pourquoi avec python dans le dossier applications je n'ai plus ces messages d'erreur et ORTHO fonctionne?