jakaskerl Certainly! Here the result.

Thanks,
Paolo

(base) paolopastorino@zet ~ % bash -c "$(curl -fL https://docs.luxonis.com/install_depthai.sh)"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 7965 100 7965 0 0 4308 0 0:00:01 0:00:01 --:--:-- 0
mkdir: /Users/paolopastorino/Luxonis: File exists

ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.

Using default installation path: /Users/paolopastorino/Luxonis
Directory: /Users/paolopastorino/Luxonis is OK

Python version: Python 3.10.9 found.
If you want to use it for installation, press ANY key, otherwise input path to python binary.
Press any key to continue


Calling macOS_installer.sh


Running macOS installer.
Installing global dependencies.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 5671 100 5671 0 0 3131 0 0:00:01 0:00:01 --:--:-- 4209k
During Homebrew install, certain commands need 'sudo'. Requesting access...
Password:

Installing Homebrew from https://raw.githubusercontent.com/Homebrew/install/master/install.sh
Warning: Running in non-interactive mode because $CI is set.
==> Checking for sudo access (which may request your password)...
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> /usr/bin/sudo /usr/sbin/chown -R paolopastorino:admin /usr/local/Homebrew
==> Downloading and installing Homebrew...
remote: Enumerating objects: 51, done.
remote: Counting objects: 100% (51/51), done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 51 (delta 18), reused 45 (delta 16), pack-reused 0
Unpacking objects: 100% (51/51), 38.45 KiB | 937.00 KiB/s, done.
From https://github.com/Homebrew/brew
040762fc1..1b7f3a7f1 master -> origin/master
HEAD is now at 1b7f3a7f1 Merge pull request #15673 from Homebrew/sponsors-maintainers-man-completions
Updated 1 tap (homebrew/core).
==> 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:
https://github.com/Homebrew/brew#donations

==> Next steps:

  • Run these two commands in your terminal to add Homebrew to your PATH:
    (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/paolopastorino/.zprofile
    eval "$(/usr/local/bin/brew shellenv)"
  • Run brew help to get started
  • Further documentation:
    https://docs.brew.sh

brew install git
Warning: git 2.41.0_2 is already installed and up-to-date.
To reinstall 2.41.0_2, run:
brew reinstall git

=== Installed successfully! IMPORTANT: For changes to take effect,
please close and reopen the terminal window, or run: exec $SHELL
Finished installing global libraries.
Upgrading brew.
Already up-to-date.
Demo app already downloaded. Checking out main and updating.
remote: Enumerating objects: 40, done.
remote: Counting objects: 100% (40/40), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 40 (delta 34), reused 40 (delta 34), pack-reused 0
Decompressione degli oggetti in corso: 100% (40/40), 14.94 KiB | 51.00 KiB/s, fatto.
Da https://github.com/luxonis/depthai
152b60dd..86dfed77 refactor_xout -> origin/refactor_xout
c23d5312..c83a341d stereo_use_correct_cam_ids -> origin/stereo_use_correct_cam_ids
Si è già su 'main'
Il tuo branch è aggiornato rispetto a 'origin/main'.
Già aggiornato.
Already up-to-date.
Creating python virtual environment in /Users/paolopastorino/Luxonis/venv
/Users/paolopastorino/anaconda3/bin/python3
Requirement already satisfied: pip in /Users/paolopastorino/Luxonis/venv/lib/python3.10/site-packages (23.1.2)
Collecting pyqt5
Using cached PyQt5-5.15.9.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... -bash: line 239: 7645 Killed: 9 pip install pyqt5

Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 137 at line 239

(base) paolopastorino@zet ~ %

    Hi Paolo
    Looks like the script is unable to install pyqt5 inside your environment.

    1. Try updating pip and setuptools first:
      pip3 install --upgrade pip setuptools

    2. Manually install pyqt5 pip3 install PyQt5

    Let me know if this helps.

    Thanks,
    Jaka

      Ok, i Will try It on next monday.
      Thanks for now.
      Paolo

      a month later

      jakaskerl
      Hi,
      i formatted my mac and i'm reinstalling everything.
      I installed python and now I'm trying to install depthAi with the following command "bash -c "$(curl -fL https://docs.luxonis.com/install_depthai.sh)" but I get an error which I report below:

       >> Installing Homebrew from https://raw.githubusercontent.com/Homebrew/install/master/install.sh
      Warning: Running in non-interactive mode because `$CI` is set.
      ==> Checking for `sudo` access (which may request your password)...
      ==> This script will install:
      /usr/local/bin/brew
      /usr/local/share/doc/homebrew
      /usr/local/share/man/man1/brew.1
      /usr/local/share/zsh/site-functions/_brew
      /usr/local/etc/bash_completion.d/brew
      /usr/local/Homebrew
      ==> HOMEBREW_BREW_GIT_REMOTE is set to a non-default URL:
      ... will be used as the Homebrew/brew Git remote.
      ==> /usr/bin/sudo /usr/sbin/chown -R paolopastorino:admin /usr/local/Homebrew
      ==> Downloading and installing Homebrew...
      fatal: '...' does not appear to be a git repository
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      Failed during: /usr/bin/git fetch --force origin
      
      Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 164 
      
      
      Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 239 
      
      (base) paolopastorino@MBP-di-Paolo Desktop % 

        Hi Paolo
        Looks like there is an error when installing homebrew.
        Do you already have an instance of homebrew present on the machine? Try manually updating it yourself then rerun the script.

        Thanks,
        Jaka

          jakaskerl
          It is already installed.

          Last login: Tue Aug 22 23:02:04 on ttys000
          (base) paolopastorino@MBP-di-Paolo ~ % brew --version
          Homebrew 4.1.6

          Run this command, then rerun the script:
          unset HOMEBREW_BREW_GIT_REMOTE HOMEBREW_CORE_GIT_REMOTE

          Source

          Hope it helps,
          Jaka

            jakaskerl
            Sorry, now i get another error. Is it possible that there is some block by the operating system (MacOs Ventura 13.5.1)?

            (base) paolopastorino@MBP-di-Paolo ~ % bash -c "$(curl -fL https://docs.luxonis.com/install_depthai.sh)"
              % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                             Dload  Upload   Total   Spent    Left  Speed
              0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
            100  7975  100  7975    0     0   7212      0  0:00:01  0:00:01 --:--:--  7212
            mkdir: /Users/paolopastorino/Luxonis: File exists
            
            ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.
            
            
            Using default installation path: /Users/paolopastorino/Luxonis
            Directory: /Users/paolopastorino/Luxonis is OK
            
            Python version: Python 3.11.4 found.
            If you want to use it for installation, press ENTER key, otherwise input path to python binary.
            Press ENTER key to continue
            
            _____________________________
            Calling macOS_installer.sh
            _____________________________
            Running macOS installer.
            Installing global dependencies.
              % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                             Dload  Upload   Total   Spent    Left  Speed
              0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
            100  5671  100  5671    0     0   3985      0  0:00:01  0:00:01 --:--:--     0
            During Homebrew install, certain commands need 'sudo'. Requesting access...
            
             >> Installing Homebrew from https://raw.githubusercontent.com/Homebrew/install/master/install.sh
            Warning: Running in non-interactive mode because `$CI` is set.
            ==> Checking for `sudo` access (which may request your password)...
            ==> This script will install:
            /usr/local/bin/brew
            /usr/local/share/doc/homebrew
            /usr/local/share/man/man1/brew.1
            /usr/local/share/zsh/site-functions/_brew
            /usr/local/etc/bash_completion.d/brew
            /usr/local/Homebrew
            ==> /usr/bin/sudo /usr/sbin/chown -R paolopastorino:admin /usr/local/Homebrew
            ==> Downloading and installing Homebrew...
            HEAD is now at 3c8b4949b Merge pull request #15900 from clint-stripe/clint/homebrew-curlrc-vendor-install
            ==> 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:
              https://github.com/Homebrew/brew#donations
            
            ==> Next steps:
            - Run these two commands in your terminal to add Homebrew to your PATH:
                (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/paolopastorino/.zprofile
                eval "$(/usr/local/bin/brew shellenv)"
            - Run brew help to get started
            - Further documentation:
                https://docs.brew.sh
            
            
             >> brew install git
            Warning: git 2.42.0 is already installed and up-to-date.
            To reinstall 2.42.0, run:
              brew reinstall git
            
            === Installed successfully!  IMPORTANT: For changes to take effect,
            please close and reopen the terminal window, or run:  exec $SHELL
            Finished installing global libraries.
            Upgrading brew.
            fatal: '...' does not appear to be a git repository
            fatal: Could not read from remote repository.
            
            Please make sure you have the correct access rights
            and the repository exists.
            Error: Fetching /opt/homebrew failed!
            
            Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 239 

              Hi Paolo
              I don't think this is an issue with the OS or the depthai script. I believe that if you ran homebrew update, you would get the same error, meaning the homebrew has likely not been installed correctly.

              Could you try and debug this first?
              Thanks,
              Jaka

                Hi jakaskerl
                Problem solved with homebrew but now there is another problem:

                (base) paolopastorino@MBP-di-Paolo ~ % bash -c "$(curl -fL https://docs.luxonis.com/install_depthai.sh)"
                  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                 Dload  Upload   Total   Spent    Left  Speed
                  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                100  7975  100  7975    0     0   8933      0 --:--:-- --:--:-- --:--:--  8933
                mkdir: /Users/paolopastorino/Luxonis: File exists
                
                ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.
                
                
                Using default installation path: /Users/paolopastorino/Luxonis
                Directory: /Users/paolopastorino/Luxonis is OK
                
                Python version: Python 3.10.9 found.
                If you want to use it for installation, press ENTER key, otherwise input path to python binary.
                Press ENTER key to continue
                
                _____________________________
                Calling macOS_installer.sh
                _____________________________
                Running macOS installer.
                Installing global dependencies.
                  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                 Dload  Upload   Total   Spent    Left  Speed
                  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                100  5671  100  5671    0     0   7786      0 --:--:-- --:--:-- --:--:--  7786
                During Homebrew install, certain commands need 'sudo'. Requesting access...
                
                 >> Installing Homebrew from https://raw.githubusercontent.com/Homebrew/install/master/install.sh
                Warning: Running in non-interactive mode because `$CI` is set.
                ==> Checking for `sudo` access (which may request your password)...
                ==> This script will install:
                /usr/local/bin/brew
                /usr/local/share/doc/homebrew
                /usr/local/share/man/man1/brew.1
                /usr/local/share/zsh/site-functions/_brew
                /usr/local/etc/bash_completion.d/brew
                /usr/local/Homebrew
                ==> HOMEBREW_NO_INSTALL_FROM_API is set.
                Homebrew/homebrew-core will be tapped during this install run.
                ==> /usr/bin/sudo /usr/sbin/chown -R paolopastorino:admin /usr/local/Homebrew
                ==> Downloading and installing Homebrew...
                HEAD is now at 3c8b4949b Merge pull request #15900 from clint-stripe/clint/homebrew-curlrc-vendor-install
                ==> Tapping homebrew/core because `$HOMEBREW_NO_INSTALL_FROM_API` is set.
                remote: Enumerating objects: 1587975, done.
                remote: Counting objects: 100% (473/473), done.
                remote: Compressing objects: 100% (223/223), done.
                remote: Total 1587975 (delta 306), reused 367 (delta 250), pack-reused 1587502
                Receiving objects: 100% (1587975/1587975), 415.94 MiB | 10.92 MiB/s, done.
                Resolving deltas: 100% (1116019/1116019), done.
                From https://github.com/Homebrew/homebrew-core
                 * [new branch]              master     -> origin/master
                HEAD is now at 2c615667d83 Merge pull request #140303 from chenrui333/triage-update-20230823-p2
                ==> 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:
                  https://github.com/Homebrew/brew#donations
                
                ==> Next steps:
                - Run these two commands in your terminal to add Homebrew to your PATH:
                    (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/paolopastorino/.zprofile
                    eval "$(/usr/local/bin/brew shellenv)"
                - Run brew help to get started
                - Further documentation:
                    https://docs.brew.sh
                
                
                 >> brew install git
                ==> Tapping homebrew/core
                Cloning into '/opt/homebrew/Library/Taps/homebrew/homebrew-core'...
                remote: Enumerating objects: 1588001, done.
                remote: Counting objects: 100% (499/499), done.
                remote: Compressing objects: 100% (241/241), done.
                remote: Total 1588001 (delta 324), reused 381 (delta 258), pack-reused 1587502
                Receiving objects: 100% (1588001/1588001), 415.95 MiB | 9.99 MiB/s, done.
                Resolving deltas: 100% (1116037/1116037), done.
                Tapped 3 commands and 6713 formulae (7,082 files, 481.6MB).
                Warning: git 2.42.0 is already installed and up-to-date.
                To reinstall 2.42.0, run:
                  brew reinstall git
                
                === Installed successfully!  IMPORTANT: For changes to take effect,
                please close and reopen the terminal window, or run:  exec $SHELL
                Finished installing global libraries.
                Upgrading brew.
                Already up-to-date.
                Demo app already downloaded. Checking out main and updating.
                Si è già su 'main'
                Il tuo branch è aggiornato rispetto a 'origin/main'.
                Già aggiornato.
                Already up-to-date.
                Creating python virtual environment in /Users/paolopastorino/Luxonis/venv
                /Users/paolopastorino/anaconda3/bin/python3
                Requirement already satisfied: pip in /Users/paolopastorino/Luxonis/venv/lib/python3.10/site-packages (22.3.1)
                Collecting pip
                  Using cached pip-23.2.1-py3-none-any.whl (2.1 MB)
                Installing collected packages: pip
                  Attempting uninstall: pip
                    Found existing installation: pip 22.3.1
                    Uninstalling pip-22.3.1:
                      Successfully uninstalled pip-22.3.1
                Successfully installed pip-23.2.1
                Collecting pyqt5
                  Using cached PyQt5-5.15.9.tar.gz (3.2 MB)
                  Installing build dependencies ... done
                  Getting requirements to build wheel ... done
                  Preparing metadata (pyproject.toml) ... -bash: line 239: 28565 Killed: 9               pip install pyqt5
                
                Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 137 at line 239 

                  Hi Paolo
                  Could you provide some more information on your system. I believe that apple silicone macs should install pyqt5 using homebrew. Are you using m1/m2 or are you using a mac with intel?

                  Thanks,
                  Jaka

                    Hi Paolo
                    I did some digging around. Looks like the code 9 and 137 both refer to a memory issue. It would mean the process is likely being killed for consuming too much memory. Since you have stated you are using a mbp (16gb+ ram) I find it strange to run out of memory unless you have heavy processes running in the background. Can you confirm it's a memory issue - monitor your memory usage (both ram and swap) using something like top or htop.
                    Also I would advise you to perhaps install pyqt using homebrew manually.

                    Thoughts?
                    Jaka

                      Hi jakaskerl
                      indeed the finder reports an excessive memory usage problem but i checked the ram and processor usage values and these seem to be normal.
                      I tried to install pyqt5 with manually and successfully but now the terminal gives different error.

                      (base) paolopastorino@MBP-di-Paolo ~ % bash -c "$(curl -fL https://docs.luxonis.com/install_depthai.sh)"
                        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                       Dload  Upload   Total   Spent    Left  Speed
                        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                      100  7975  100  7975    0     0  10107      0 --:--:-- --:--:-- --:--:-- 10107
                      
                      ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.
                      
                      
                      Using default installation path: /Users/paolopastorino/Luxonis
                      Directory: /Users/paolopastorino/Luxonis is OK
                      
                      Python version: Python 3.11.5 found.
                      If you want to use it for installation, press ENTER key, otherwise input path to python binary.
                      Press ENTER key to continue
                      
                      _____________________________
                      Calling macOS_installer.sh
                      _____________________________
                      Running macOS installer.
                      Installing global dependencies.
                        % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                       Dload  Upload   Total   Spent    Left  Speed
                        0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                      100  5671  100  5671    0     0   7660      0 --:--:-- --:--:-- --:--:--  7660
                      During Homebrew install, certain commands need 'sudo'. Requesting access...
                      
                       >> Installing Homebrew from https://raw.githubusercontent.com/Homebrew/install/master/install.sh
                      Warning: Running in non-interactive mode because `$CI` is set.
                      ==> Checking for `sudo` access (which may request your password)...
                      ==> This script will install:
                      /usr/local/bin/brew
                      /usr/local/share/doc/homebrew
                      /usr/local/share/man/man1/brew.1
                      /usr/local/share/zsh/site-functions/_brew
                      /usr/local/etc/bash_completion.d/brew
                      /usr/local/Homebrew
                      ==> /usr/bin/sudo /usr/sbin/chown -R paolopastorino:admin /usr/local/Homebrew
                      ==> Downloading and installing Homebrew...
                      HEAD is now at 3c8b4949b Merge pull request #15900 from clint-stripe/clint/homebrew-curlrc-vendor-install
                      Installing from the API is now the default behaviour!
                      You can save space and time by running:
                        brew untap homebrew/core
                      ==> 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:
                        https://github.com/Homebrew/brew#donations
                      
                      ==> Next steps:
                      - Run these two commands in your terminal to add Homebrew to your PATH:
                          (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/paolopastorino/.zprofile
                          eval "$(/usr/local/bin/brew shellenv)"
                      - Run brew help to get started
                      - Further documentation:
                          https://docs.brew.sh
                      
                      
                       >> brew install git
                      Warning: git 2.42.0 is already installed and up-to-date.
                      To reinstall 2.42.0, run:
                        brew reinstall git
                      
                      === Installed successfully!  IMPORTANT: For changes to take effect,
                      please close and reopen the terminal window, or run:  exec $SHELL
                      Finished installing global libraries.
                      Upgrading brew.
                      Already up-to-date.
                      Downloading demo app.
                      Clone in '/Users/paolopastorino/Luxonis/depthai' in corso...
                      remote: Enumerating objects: 20801, done.
                      remote: Counting objects: 100% (6336/6336), done.
                      remote: Compressing objects: 100% (2267/2267), done.
                      remote: Total 20801 (delta 4285), reused 5868 (delta 4023), pack-reused 14465
                      Ricezione degli oggetti: 100% (20801/20801), 247.96 MiB | 11.41 MiB/s, fatto.
                      Risoluzione dei delta: 100% (13710/13710), fatto.
                      Si è già su 'main'
                      Il tuo branch è aggiornato rispetto a 'origin/main'.
                      Già aggiornato.
                      Already up-to-date.
                      Creating python virtual environment in /Users/paolopastorino/Luxonis/venv
                      /opt/homebrew/bin/python3
                      Requirement already satisfied: pip in /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages (23.2.1)
                      Collecting pyqt5
                        Using cached PyQt5-5.15.9.tar.gz (3.2 MB)
                        Installing build dependencies ... done
                        Getting requirements to build wheel ... done
                        Preparing metadata (pyproject.toml) ... error
                        error: subprocess-exited-with-error
                        
                        × Preparing metadata (pyproject.toml) did not run successfully.
                        │ exit code: 1
                        ╰─> [20 lines of output]
                            Querying qmake about your Qt installation...
                            Traceback (most recent call last):
                              File "/Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                                main()
                              File "/Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
                                json_out['return_val'] = hook(**hook_input['kwargs'])
                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                              File "/Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
                                whl_basename = backend.build_wheel(metadata_directory, config_settings)
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                              File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-build-env-w730m3vl/overlay/lib/python3.11/site-packages/sipbuild/api.py", line 46, in build_wheel
                                project = AbstractProject.bootstrap('wheel',
                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                              File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-build-env-w730m3vl/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
                                project.setup(pyproject, tool, tool_description)
                              File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-build-env-w730m3vl/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 602, in setup
                                self.update(tool)
                              File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-install-t443rqh1/pyqt5_2b209c1220c24527b03cdc19a4696905/project.py", line 165, in update
                                raise UserException(
                            sipbuild.exceptions.UserException
                            [end of output]
                        
                        note: This error originates from a subprocess, and is likely not a problem with pip.
                      error: metadata-generation-failed
                      
                      × Encountered error while generating package metadata.
                      ╰─> See above for output.
                      
                      note: This is an issue with the package mentioned above, not pip.
                      hint: See above for details.
                      
                      Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 239 
                      
                      (base) paolopastorino@MBP-di-Paolo ~ % 

                      I believe installing qt on macos is a known challenge. I'd try using rosetta (so x86 instead of arm).

                        erik i set the terminal with rosetta but nothing changes.

                        • erik replied to this.

                          Paolo Could you share the terminal output when running with rosetta?

                            erik Hi! Here the output:

                            Last login: Tue Aug 29 10:55:15 on ttys000
                            (base) paolopastorino@MBP-di-Paolo ~ % bash -c "$(curl -fL https://docs.luxonis.com/install_depthai.sh)"
                              % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                             Dload  Upload   Total   Spent    Left  Speed
                              0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                            100  7975  100  7975    0     0   6328      0  0:00:01  0:00:01 --:--:-- 6459k
                            mkdir: /Users/paolopastorino/Luxonis: File exists
                            
                            ENTER absolute installation path for depthai or leave empty and default path: $HOME will be used.
                            
                            
                            Using default installation path: /Users/paolopastorino/Luxonis
                            Directory: /Users/paolopastorino/Luxonis is OK
                            
                            Python version: Python 3.11.5 found.
                            If you want to use it for installation, press ENTER key, otherwise input path to python binary.
                            Press ENTER key to continue
                            
                            _____________________________
                            Calling macOS_installer.sh
                            _____________________________
                            Running macOS installer.
                            Installing global dependencies.
                              % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                                             Dload  Upload   Total   Spent    Left  Speed
                              0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
                            100  5671  100  5671    0     0   4260      0  0:00:01  0:00:01 --:--:--  4260
                            During Homebrew install, certain commands need 'sudo'. Requesting access...
                            Password:
                            
                             >> Installing Homebrew from https://raw.githubusercontent.com/Homebrew/install/master/install.sh
                            Warning: Running in non-interactive mode because `$CI` is set.
                            ==> Checking for `sudo` access (which may request your password)...
                            ==> This script will install:
                            /usr/local/bin/brew
                            /usr/local/share/doc/homebrew
                            /usr/local/share/man/man1/brew.1
                            /usr/local/share/zsh/site-functions/_brew
                            /usr/local/etc/bash_completion.d/brew
                            /usr/local/Homebrew
                            ==> /usr/bin/sudo /usr/sbin/chown -R paolopastorino:admin /usr/local/Homebrew
                            ==> Downloading and installing Homebrew...
                            remote: Enumerating objects: 7, done.
                            remote: Counting objects: 100% (7/7), done.
                            remote: Compressing objects: 100% (3/3), done.
                            remote: Total 7 (delta 4), reused 7 (delta 4), pack-reused 0
                            Unpacking objects: 100% (7/7), 1.91 KiB | 177.00 KiB/s, done.
                            From https://github.com/Homebrew/brew
                               d4444b563..1d136be22  master     -> origin/master
                            HEAD is now at 1d136be22 Merge pull request #15919 from EricFromCanada/macos-deps-caching
                            Installing from the API is now the default behaviour!
                            You can save space and time by running:
                              brew untap homebrew/core
                            ==> 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:
                              https://github.com/Homebrew/brew#donations
                            
                            ==> Next steps:
                            - Run these two commands in your terminal to add Homebrew to your PATH:
                                (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/paolopastorino/.zprofile
                                eval "$(/usr/local/bin/brew shellenv)"
                            - Run brew help to get started
                            - Further documentation:
                                https://docs.brew.sh
                            
                            
                             >> brew install git
                            Warning: git 2.42.0 is already installed and up-to-date.
                            To reinstall 2.42.0, run:
                              brew reinstall git
                            
                            === Installed successfully!  IMPORTANT: For changes to take effect,
                            please close and reopen the terminal window, or run:  exec $SHELL
                            Finished installing global libraries.
                            Upgrading brew.
                            Installing from the API is now the default behaviour!
                            You can save space and time by running:
                              brew untap homebrew/core
                            Already up-to-date.
                            Demo app already downloaded. Checking out main and updating.
                            La precedente posizione di HEAD era 32879ee5 Merge pull request #937 from luxonis/fix/demo_deps
                            Si è passati al branch 'main'
                            Il tuo branch è aggiornato rispetto a 'origin/main'.
                            Già aggiornato.
                            Already up-to-date.
                            Creating python virtual environment in /Users/paolopastorino/Luxonis/venv
                            /opt/homebrew/bin/python3
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6-6.5.2.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_DataVisualization-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_Charts-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_3D-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_WebEngine-6.5.0.dist-info due to invalid metadata entry 'name'
                            Requirement already satisfied: pip in /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages (23.2.1)
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6-6.5.2.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_DataVisualization-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_Charts-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_3D-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_WebEngine-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6-6.5.2.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_DataVisualization-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_Charts-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_3D-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_WebEngine-6.5.0.dist-info due to invalid metadata entry 'name'
                            Collecting pyqt5
                              Using cached PyQt5-5.15.9.tar.gz (3.2 MB)
                              Installing build dependencies ... done
                              Getting requirements to build wheel ... done
                              Preparing metadata (pyproject.toml) ... error
                              error: subprocess-exited-with-error
                              
                              × Preparing metadata (pyproject.toml) did not run successfully.
                              │ exit code: 1
                              ╰─> [20 lines of output]
                                  Querying qmake about your Qt installation...
                                  Traceback (most recent call last):
                                    File "/Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
                                      main()
                                    File "/Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
                                      json_out['return_val'] = hook(**hook_input['kwargs'])
                                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                    File "/Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
                                      whl_basename = backend.build_wheel(metadata_directory, config_settings)
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                    File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-build-env-zbb0rhff/overlay/lib/python3.11/site-packages/sipbuild/api.py", line 46, in build_wheel
                                      project = AbstractProject.bootstrap('wheel',
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                    File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-build-env-zbb0rhff/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
                                      project.setup(pyproject, tool, tool_description)
                                    File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-build-env-zbb0rhff/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 602, in setup
                                      self.update(tool)
                                    File "/private/var/folders/yv/hd2dj2l56qjfl460631rv9h80000gn/T/pip-install-rk102izr/pyqt5_6083e9492806412390fb0b40c7e99865/project.py", line 165, in update
                                      raise UserException(
                                  sipbuild.exceptions.UserException
                                  [end of output]
                              
                              note: This error originates from a subprocess, and is likely not a problem with pip.
                            error: metadata-generation-failed
                            
                            × Encountered error while generating package metadata.
                            ╰─> See above for output.
                            
                            note: This is an issue with the package mentioned above, not pip.
                            hint: See above for details.
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_NetworkAuth-6.5.0.dist-info due to invalid metadata entry 'name'
                            WARNING: Skipping /Users/paolopastorino/Luxonis/venv/lib/python3.11/site-packages/PyQt6_sip-13.5.2-py3.11.egg-info due to invalid metadata entry 'name'
                            
                            Failed installing dependencies. Could be a bug in the installer or unsupported platform. Open a bug report over at https://github.com/luxonis/depthai - exited with status 1 at line 239 
                            
                            (base) paolopastorino@MBP-di-Paolo ~ %