Annonce

Réduire
Aucune annonce.

ORTHO4XP: Install impossible sur MAC M1 SONOMA

Réduire
X
 
  • Filtre
  • Heure
  • Afficher
Tout nettoyer
nouveaux messages

  • ORTHO4XP: Install impossible sur MAC M1 SONOMA

    Bonjour a tous,
    de retour sur XP12 après 2 ans d'abandon, je repars sur une clean install et je souhaite ré-installer des tuiles photos avec Ortho4xp.
    Mais voilà que je n'arrive pas à l'installer: message d'erreur immédiat 404 dès le premier copier coller de l'instruction dans le terminal:
    curl: (22) The requested URL returned error: 404
    ​Du coup, j'ai essayé de l'installer sur un pc mais c'est pire.
    Où ai-je raté un épisode ?
    Merci de vos lumières...
    ​
    XPLANE 12
    MacBook Pro M3 Max 16'
    Ios SONOMA

    Joystick TCA Airbus

  • #1
    Re,
    j'ai un peu avancé, après la lecture de différents posts (merci les spécialistes...).
    La ligne 1 de code me retourne un message d'erreur.
    Les lignes suivantes fonctionnent, installent divers "trucs" et la derniere ligne de commande pour lancer Ortho4XP affiche le message d'erreur suivant:

    Traceback (most recent call last):
    File "/Applications/Ortho4XP/Ortho4XP_v130.py", line 9, in <module>
    import O4_Imagery_Utils as IMG
    File "/Applications/Ortho4XP/./src/O4_Imagery_Utils.py", line 6, in <module>
    import pyproj
    ModuleNotFoundError: No module named 'pyproj'

    Je suppose que l'erreur de la ligne 1 à son importance ?
    Si quelqu'un a une solution...

    ​
    XPLANE 12
    MacBook Pro M3 Max 16'
    Ios SONOMA

    Joystick TCA Airbus

    Commentaire


    • #1
      Salut Hhourk2,

      Il serait intéressant que tu précises quel message d'erreur "la ligne 1 de code [te] retourne"
      L'installation nécessite de bien suivre le mode d'emploi
      OS X
      ----
      1) In a Terminal window, install Homebrew (brew.sh), a package manager
      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

      2) Go to the Ortho4XP folder
      cd /path/to/Ortho4XP --> Évidemment remplacer ici "/path/to/ Ortho4XP" par le vrai chemin sur ton installation

      3) Execute the install script (you may have to run "chmod +x ./install_mac.sh" first)
      ./install_mac.sh

      4) Launch Ortho4XP
      python3 Ortho4XP_v130.py
      ​
      Par ailleurs il existe des problème avec les architectures M2 (et peut-être M1) sous macOS Sonoma.
      Regarde ce post -fermé- mais qui t'aiguillera peut-être sur de nouvelles pistes :
      Disclaimer: I am not well versed in Python/Brew/Terminal. I am only an X-Plane hobbyist. I have followed all the instructions included in the latest build of Ortho4XP, but I get the following error...


      Par chance pour toi il existe des spécialistes d'Ortho4XP sur le forum qui ne tarderont sans doute pas à prendre un relais plus efficace...

      Bon courage à toi
      Mac Flight1 : X-Plane 12.4.4-b1 - macOS Sequoia 15.8
      iMac 27" - i9-9900K - 32 Go - SSD 1 To
      AMD Radeon Pro Vega 48 8 Go

      SSD externe 4 To (Orthophotos)
      8BitDo SN30 Pro v2 - Winwing FCU+EFIS-L
      Mac Flight2 : X-Plane 12.4.4-b1 - macOS Golden Gate 27.0
      MBP 16" - M3 Max 16/40 - 48 Go - SSD 512 Go
      8BitDo SN30 Pro v2

      Hangar LFFA : A20N-A321-A339-A346-A359
      B748-B767-B777-EPIC-EVOT

      Commentaire


      • #1
        Le message d'erreur initial est le suivant:

        curl: (22) The requested URL returned error: 404
        XPLANE 12
        MacBook Pro M3 Max 16'
        Ios SONOMA

        Joystick TCA Airbus

        Commentaire


        • #1
          Pour récapituler, voilà l'intégralité du process:

          Ligne 1: Erreur suivante

          curl: (22) The requested URL returned error: 404

          Ligne 2: OK
          Ligne 3.1: OK
          Ligne 3.2: Erreur suivante :

          ./install_mac.sh: line 2: brew: command not found
          xcode-select: note: No developer tools were found, requesting install.
          If developer tools are located at a non-default location on disk, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
          See `man xcode-select` for more details.
          xcode-select: note: No developer tools were found, requesting install.
          If developer tools are located at a non-default location on disk, use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
          See `man xcode-select` for more details.


          Ligne 4: Erreur suivante:

          Traceback (most recent call last):
          File "/Applications/Ortho4XP/Ortho4XP_v130.py", line 9, in <module>
          import O4_Imagery_Utils as IMG
          File "/Applications/Ortho4XP/./src/O4_Imagery_Utils.py", line 6, in <module>
          import pyproj
          ModuleNotFoundError: No module named 'pyproj'

          ​
          ​
          XPLANE 12
          MacBook Pro M3 Max 16'
          Ios SONOMA

          Joystick TCA Airbus

          Commentaire


          • #1
            Brew n'est pas installé. Du coup tout le reste ne s'est pas installé non plus.
            Les instruction d'installation de Ortho4Xp sont partialement obsolètes.
            Sur un Mac, brew s'installe avec cette ligne de code:

            /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"​

            Tu rentres le code du mac à l'aveugle puis entré.
            Quand il te le demande tu fais entré.

            Une fois brew installé, et pour t'éviter de batailler toute la journée avec les modules qui ne sont plus compatible, je te conseil de suivre jusqu'au bout ce qui s'est déjà dit ici:
            Xplane 11.53

            NEW: MacBook Pro 15'' mi-2019 / Intel Core i9 8 cœurs de 9e génération à 2,4 GHz (Turbo 5 GHz) / 32 Go RAM DDR4 à 2 400 MHz / GPU Radeon Pro Vega 20 avec 4 Go de mémoire HBM2 / SSD 4To / OSX Mojave
            OLD: Mac Book Pro 13'' début 2011 / Intel Core I7 2,7 Ghz / 8Gb RAM / Intel Hd Graphics 3000 512 Mo remplacée en 2019 par Intel Hd Graphics 2Go / DD 1To / OSX High Sierra

            Membre/développeur chez XPFR (http://xpfr.org/)

            Commentaire


            • #1
              Merci pour ces explications.
              La nouvelle première ligne "passe" sans erreur.
              J'ai pu terminer l'instal comme indiqué sur les lignes suivantes et, lors du lancement, j'ai une fenêtre noire Ortho4XP qui s'ouvre mais c'est tout.
              J'ai bien compris qu'il y avait des correctifs à appliquer mais j'avoue ne rien connaitre au terminal... et c'est là que ça coince: comment appliquer les lignes décrites:

              Pour Python j'utilise la version 3.10 -> brew install python@3.10
              On ajoute l'interface python pour cette version -> brew install python-tk@3.10
              gdal spatialindex p7zip proj peu importe la version -> brew install gdal spatialindex p7zip proj

              Vient les choses sérieuses, les dépendances de python 3.10.
              Pour éviter les erreurs, je les installe dans l’environnement python 3.10 avec la commande de pip3.10
              Pour ne pas faire la liste, je te donne la commande d'installation complète que tu peux balancer dans le terminal tel quel:

              pip3.10 install cython certifi==2021.5.30 chardet==4.0.0 idna==2.10 numpy==1.23.5 Pillow==10.0.1 pyproj==3.3.0 requests==2.25.1 Rtree==0.9.7 Shapely==1.7.1 urllib3==1.26.6 GDAL==3.6.0​
              XPLANE 12
              MacBook Pro M3 Max 16'
              Ios SONOMA

              Joystick TCA Airbus

              Commentaire


              • #1
                Dans le terminal tu envoies ça puis entré:

                brew install python@3.10

                Une fois fini tu fais ça puis entré (ça devrait régler le problème de fenêtre noir):

                brew install python-tk@3.10

                une fois fini , ça puis entré:

                brew install gdal spatialindex p7zip proj

                une fois fini , ça puis entré:​

                pip3.10 install cython certifi==2021.5.30 chardet==4.0.0 idna==2.10 numpy==1.23.5 Pillow==10.0.1 pyproj==3.3.0 requests==2.25.1 Rtree==0.9.7 Shapely==1.7.1 urllib3==1.26.6 GDAL==3.6.0


                Une fois fini et si tout est bien installé, tu ouvres le fichier Ortho4Xp.py avec un éditeur de texte et tu remplaces la première ligne par:

                #!/usr/bin/env python3.10

                Puis tu peux lancer ortho4xp comme d'habitude.
                Il faut impérativement donner les autorisations au terminal et à ortho4xp, car OSX va te le demander, tu lui dit "oui".
                Si tu rencontres quand même des soucis dans le fonctionnement de ortho4xp , tu fais ce qu'expliques MontyMars dans le post mentionné plus haut.

                Xplane 11.53

                NEW: MacBook Pro 15'' mi-2019 / Intel Core i9 8 cœurs de 9e génération à 2,4 GHz (Turbo 5 GHz) / 32 Go RAM DDR4 à 2 400 MHz / GPU Radeon Pro Vega 20 avec 4 Go de mémoire HBM2 / SSD 4To / OSX Mojave
                OLD: Mac Book Pro 13'' début 2011 / Intel Core I7 2,7 Ghz / 8Gb RAM / Intel Hd Graphics 3000 512 Mo remplacée en 2019 par Intel Hd Graphics 2Go / DD 1To / OSX High Sierra

                Membre/développeur chez XPFR (http://xpfr.org/)

                Commentaire


                • #1
                  Mon terminal ne comprends pas les instructions commençant par brew !! aucune ligne avec "brew" ne passe.
                  Comme je ne savais pas quoi faire, j'ai avancé dans le post et j'ai suivi les instructions de w8sl, suppression de fichiers unix, suppression de suffixes app, modification des paramètres de sécurité...
                  Le lancement m'affiche toujours la fenêtre noire Python nommée Ortho4xp avec ce message dans le terminal qui se bloque:

                  /Users/henri/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
                  warnings.warn(
                  DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
                  2023-10-23 17:10:54.207 Python[3087:114009] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRes torableState:.

                  ​​
                  XPLANE 12
                  MacBook Pro M3 Max 16'
                  Ios SONOMA

                  Joystick TCA Airbus

                  Commentaire


                  • #1
                    Désolé de ne pas y arriver, c'est bien la premiere fois que j'installe un logiciel aussi complexe sur un Mac...
                    Peut être vaut il mieux que je redémarre tout depuis le debut ?
                    XPLANE 12
                    MacBook Pro M3 Max 16'
                    Ios SONOMA

                    Joystick TCA Airbus

                    Commentaire


                    • #1
                      Ok donc si aucune lignes avec brew ne passe, le problème est là.
                      Essaies de le réinstaller et recommences.

                      /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"​

                      Après l'installation, tu fermes la fenêtre du terminal et tu en ouvres une autre vierge pour faire le reste

                      Dernière modification par jojo64, 23 octobre 2023, 16h42.
                      Xplane 11.53

                      NEW: MacBook Pro 15'' mi-2019 / Intel Core i9 8 cœurs de 9e génération à 2,4 GHz (Turbo 5 GHz) / 32 Go RAM DDR4 à 2 400 MHz / GPU Radeon Pro Vega 20 avec 4 Go de mémoire HBM2 / SSD 4To / OSX Mojave
                      OLD: Mac Book Pro 13'' début 2011 / Intel Core I7 2,7 Ghz / 8Gb RAM / Intel Hd Graphics 3000 512 Mo remplacée en 2019 par Intel Hd Graphics 2Go / DD 1To / OSX High Sierra

                      Membre/développeur chez XPFR (http://xpfr.org/)

                      Commentaire


                      • #1
                        Ok, je fais çà tout de suite.
                        Pour être sur, tes lignes de codes avec brew...., je les rentre à la fin ou juste après la 1ere ligne de code ?
                        XPLANE 12
                        MacBook Pro M3 Max 16'
                        Ios SONOMA

                        Joystick TCA Airbus

                        Commentaire


                        • #1
                          Les lignes se rentrent une par une.
                          Tu en rentres une, entré, et tu attends que ce soit fini.
                          Une fois terminé, tu rentres la suivante, ect...
                          Xplane 11.53

                          NEW: MacBook Pro 15'' mi-2019 / Intel Core i9 8 cœurs de 9e génération à 2,4 GHz (Turbo 5 GHz) / 32 Go RAM DDR4 à 2 400 MHz / GPU Radeon Pro Vega 20 avec 4 Go de mémoire HBM2 / SSD 4To / OSX Mojave
                          OLD: Mac Book Pro 13'' début 2011 / Intel Core I7 2,7 Ghz / 8Gb RAM / Intel Hd Graphics 3000 512 Mo remplacée en 2019 par Intel Hd Graphics 2Go / DD 1To / OSX High Sierra

                          Membre/développeur chez XPFR (http://xpfr.org/)

                          Commentaire


                          • #1
                            Voilà qui est fait.
                            La 1ere ligne est bien passée:

                            ==> Checking for `sudo` access (which may request your password)...
                            Password:
                            ==> This script will install:
                            /opt/homebrew/bin/brew
                            /opt/homebrew/share/doc/homebrew
                            /opt/homebrew/share/man/man1/brew.1
                            /opt/homebrew/share/zsh/site-functions/_brew
                            /opt/homebrew/etc/bash_completion.d/brew
                            /opt/homebrew
                            Press RETURN/ENTER to continue or any other key to abort:
                            ==> /usr/bin/sudo /usr/sbin/chown -R henri:admin /opt/homebrew
                            ==> Downloading and installing Homebrew...
                            HEAD is now at 35746e0a6 Merge pull request
                            [WarBird - Waco CG-4A] Simulateur de planeur from apainintheneck/rescue-formula-spec-errors-in-parser
                            Warning: /opt/homebrew/bin is not in your PATH.
                            Instructions on how to configure your shell for Homebrew
                            can be found in the 'Next steps' section below.
                            ==> Installation successful!
                            ==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
                            Read the analytics documentation (and how to opt-out) here:
                            https://docs.brew.sh/Analytics
                            No analytics data has been sent yet (nor will any be during this install run).
                            ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
                            ? The Package Manager for Everywhere. Contribute to Homebrew/brew development by creating an account on GitHub.

                            ==> Next steps:
                            - Run these two commands in your terminal to add Homebrew to your PATH:
                            (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/henri/.zprofile
                            eval "$(/opt/homebrew/bin/brew shellenv)"
                            - Run brew help to get started
                            - Further documentation:
                            https://docs.brew.sh


                            mais la commande brew ne passe toujours pas...

                            henri@MBP-de-Henri ~ % brew install python@3.10
                            zsh: command not found: brew

                            ​
                            ​
                            XPLANE 12
                            MacBook Pro M3 Max 16'
                            Ios SONOMA

                            Joystick TCA Airbus

                            Commentaire


                            • #1
                              Peut être il te manque les modules Xcode de OSX, si ça se trouve sur Sonoma il ne sont plus installé d'office.
                              Essais de rentrer cette ligne de code
                              xcode-select --install​
                              Ou sinon installes XCode depuis l'appStore, c'est toi qui vois.

                              Une fois fini, essaies de refaire une installation de brew.
                              Puis refais une tentative pour le reste


                              ​
                              Dernière modification par jojo64, 23 octobre 2023, 17h29.
                              Xplane 11.53

                              NEW: MacBook Pro 15'' mi-2019 / Intel Core i9 8 cœurs de 9e génération à 2,4 GHz (Turbo 5 GHz) / 32 Go RAM DDR4 à 2 400 MHz / GPU Radeon Pro Vega 20 avec 4 Go de mémoire HBM2 / SSD 4To / OSX Mojave
                              OLD: Mac Book Pro 13'' début 2011 / Intel Core I7 2,7 Ghz / 8Gb RAM / Intel Hd Graphics 3000 512 Mo remplacée en 2019 par Intel Hd Graphics 2Go / DD 1To / OSX High Sierra

                              Membre/développeur chez XPFR (http://xpfr.org/)

                              Commentaire

                              Chargement...
                              X